/api/blog/generateGenerates a complete SEO-optimized blog post from a topic. Streams the response via SSE. Includes blog HTML, images, and SEO metadata.
| Parameter | Type | Required | Description |
|---|---|---|---|
| topic | string | Required | Blog topic or title. Min 5 chars, max 200 chars. |
| country | string | Required | Target country for SEO. e.g. "india", "usa". |
| tone | string | Optional | Writing tone. Default: professional |
| wordCount | number | Optional | Target word count. Range: 300-5000. Default: 1500 |
| outputFormat | string | Optional | Output file format. Default: html |
| llmProvider | string | Required | AI provider to use. |
| apiKey | string | Required | Provider API key (if BYOK mode). |
| includeAiImages | boolean | Optional | Whether to generate AI-sourced images. Default: |
| includeThumbnail | boolean | Optional | Whether to create a blog thumbnail. Default: |
How to fix: Re-enter in Settings
How to fix: Wait 60 seconds
How to fix: Buy credits
Response will appear here