AI Content Generation
Generate platform-optimized social post variants from a topic using the MisarPost AI generation API.
Generate Post Variants
/api/generateGenerates up to 5 platform-optimized post variants per platform from a single topic. Uses the Misar AI engine.
Request body
topicstringbodyrequiredTopic or description for the posts. Min 3, max 500 characters.
platformsstring[]bodyrequiredPlatforms to generate for. Must include at least one. Allowed values: twitter, linkedin, instagram, threads, tiktok, bluesky, youtube.
tonestringbodydefault: professionalWriting tone. One of: professional, casual, technical, inspirational.
countnumberbodydefault: 3Number of variants to generate per platform. Min 1, max 5.
Response fields
variantsarrayOne entry per requested platform.
variants[].platformstringPlatform identifier.
variants[].variantsarrayGenerated variants for this platform. Each has caption (string) and hashtags (string[]).
{
"topic": "We just open-sourced our TypeScript SDK with 100% test coverage",
"platforms": ["twitter", "linkedin"],
"tone": "technical",
"count": 3
}{
"variants": [
{
"platform": "twitter",
"variants": [
{
"caption": "Just open-sourced our TypeScript SDK — 100% test coverage, full types, works in Node, Bun, and Deno. Give it a star ⭐",
"hashtags": ["TypeScript", "OpenSource", "SDK"]
},
{
"caption": "Our TypeScript SDK is now open source. Zero dependencies, strict types, 100% test coverage. Built for production. 🧵",
"hashtags": ["TypeScript", "DevTools"]
}
]
},
{
"platform": "linkedin",
"variants": [
{
"caption": "Excited to announce that our TypeScript SDK is now fully open source...",
"hashtags": ["OpenSource", "TypeScript", "DeveloperTools"]
}
]
}
]
}{
"error": "Monthly generation limit reached. Upgrade to Pro for unlimited generations.",
"limitReached": true
}Rate Limits and Plan Gates
| Tier | Monthly AI generations |
|---|---|
| Free | 10 |
| Pro | Unlimited |
| Growth Suite | Unlimited |
When the free tier limit is reached, the response is 429 with limitReached: true.
Enhance Text
/api/generate/enhanceRewrites existing post content to be more engaging while preserving the core message.
Request body
textstringbodyrequiredThe text to enhance.
platformstringbodyrequiredTarget platform for platform-specific formatting.
tonestringbodydefault: professionalDesired tone after enhancement.
Generate Hashtags
/api/generate/hashtagsGenerates relevant hashtags for a piece of text.
Request body
textstringbodyrequiredPost content to generate hashtags for.
platformstringbodyrequiredTarget platform (affects hashtag count and style).
countnumberbodydefault: 5Number of hashtags to generate.
Optimization Insights
/api/generate/optimizeReturns AI-powered optimization insights derived from the authenticated user's post performance over the last 30 days — best time of day to post, best-performing tone, top hashtags, and platform-specific guidance.
Query parameters
platformstringqueryRestrict the insights to a single platform. Omit to get insights across all platforms.
Response fields
bestTimeOfDaystringRecommended time of day to publish, based on historical engagement.
bestTonestringThe tone that has performed best for this account.
topHashtagsstring[]Highest-performing hashtags from recent posts.
promptSuggestionsstring[]Suggested prompts for the next round of AI generation.
platformInsightsobjectPer-platform optimization notes.