AI Content API
Production-grade AI Content Generation API powered by OpenAI GPT-4o & DALL-E 3. Generate articles, social media posts, emails, ad copy, product descriptions, translations, summaries, SEO optimization, code, and images. All content is REAL \u2014 generated live by AI, no mock data.
AI Content API endpoints
| Method | Endpoint | Description |
|---|---|---|
| Health | ||
| GET |
health_check_health_get /health |
Health check endpoint. Returns API status, version, and OpenAI connectivity status. |
| Content Generation | ||
| POST |
generate_social_post_api_v1_generate_social_post /api/v1/generate/social |
Generate platform-specific social media posts. Real AI-generated content optimized for each platform's best practices. - **topic**: What to post about - **platform**: twitter,… |
| POST |
generate_product_description_api_v1_generate_product_description_post /api/v1/generate/product-description |
Generate compelling e-commerce product descriptions. Real AI-written descriptions with features, benefits, and SEO optimization. - **product_name**: Product name - **category**:… |
| POST |
generate_ad_copy_api_v1_generate_ad_copy_post /api/v1/generate/ad-copy |
Generate high-converting ad copy with A/B testing variations. Real AI-crafted ads for Google, Facebook, and landing pages. - **product**: Product or service to advertise -… |
| POST |
generate_email_api_v1_generate_email_post /api/v1/generate/email |
Generate professional emails with subject lines and CTAs. Real AI-written emails — cold outreach, marketing, follow-ups, newsletters. - **purpose**: Email purpose/goal -… |
| POST |
generate_article_api_v1_generate_article_post /api/v1/generate/article |
Generate a full blog/article with title, headings, body, and SEO metadata. All content is generated LIVE by OpenAI — no templates, no mock data. - **topic**: Article topic or… |
| Content Enhancement | ||
| POST |
grammar_check_api_v1_grammar_check_post /api/v1/grammar/check |
Check grammar and style with detailed corrections. Real AI grammar checking — errors, corrections, explanations, and quality score. - **content**: Text to check (max 50,000… |
| POST |
summarize_content_api_v1_summarize_post /api/v1/summarize |
Summarize long content into concise formats. Real AI summarization — bullet points, TL;DR, executive summary, key takeaways. - **content**: Text to summarize (max 100,000 chars)… |
| POST |
seo_optimize_api_v1_seo_optimize_post /api/v1/seo/optimize |
Analyze and optimize content for SEO. Real AI-powered SEO analysis — meta tags, keywords, title suggestions, readability score, and optimized content. - **content**: Content to… |
| POST |
rewrite_content_api_v1_rewrite_post /api/v1/rewrite |
Rewrite/paraphrase content with tone control. Real AI-powered rewriting — preserves meaning while adapting tone and style. - **content**: Text to rewrite (max 50,000 chars) -… |
| Translation | ||
| POST |
translate_content_api_v1_translate_post /api/v1/translate |
Translate content between 30+ languages using AI. Real AI translation — preserves formatting, tone, and nuance. Auto-detects source language if not specified. - **content**: Text… |
| GET |
list_supported_languages_api_v1_translate_languages_get /api/v1/translate/languages |
List all supported translation languages. |
| Chat | ||
| POST |
chat_completions_api_v1_chat_completions_post /api/v1/chat/completions |
General-purpose chat completions powered by OpenAI GPT. Real ChatGPT API wrapper — supports system prompts, conversation history, and all GPT models. - **messages**: List of chat… |
| Image Generation | ||
| POST |
generate_image_api_v1_image_generate_post /api/v1/image/generate |
Generate images using DALL-E 3. Real AI image generation — unique images from text prompts. |
| Code Generation | ||
| POST |
generate_code_api_v1_code_generate_post /api/v1/code/generate |
Generate code with explanations using AI. Real AI code generation — production-ready code in any language. |
| Text Analysis | ||
| POST |
extract_entities_api_v1_analyze_extract_post /api/v1/analyze/extract |
Extract keywords, entities, and key phrases from text. Real AI extraction — named entities, topics, and statistics. |
| POST |
analyze_sentiment_api_v1_analyze_sentiment_post /api/v1/analyze/sentiment |
Analyze sentiment of text — positive/negative/neutral with confidence scores. Real AI sentiment analysis with emotion detection. |
| Models | ||
| GET |
list_models_api_v1_models_get /api/v1/models |
List available AI models and their capabilities. |
| Admin | ||
| GET |
get_stats_api_v1_admin_stats_get /api/v1/admin/stats |
Get API usage statistics (admin only). Requires X-Admin-Key header. |
| Root | ||
| GET |
root__get / |
API root — Welcome message. |
AI Content API pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | 5 / minute |
|
| PRO | $25 / month | 20 / minute |
|
| ULTRA | $100 / month | 50 / minute |
|
| MEGA | $200 / month | 100 / minute |
|