Everything you need to integrate AI-powered content generation into your applications.
Welcome to the AI Content Generator API. Our REST API allows you to integrate AI-powered content generation into your applications, websites, or services. All endpoints return JSON responses and require authentication.
https://api.aicontentgen.com/v1
const response = await fetch('https://api.aicontentgen.com/v1/generate', {method:'POST',headers:{'Authorization':'Bearer YOUR_API_KEY','Content-Type':'application/json'},body:JSON.stringify({prompt:'Write a product description',type:'product',tone:'professional'})});
All API requests require authentication using a Bearer token. Include your API key in the Authorization header of every request.
Authorization: Bearer your_api_key_here
You can obtain your API key by contacting our team or through the dashboard once you have an active subscription.
Generate content based on a text prompt. This is the primary endpoint for all content generation tasks.
List available AI models and their capabilities.
Get your current API usage statistics and remaining quota.
| Parameter | Type | Description |
|---|---|---|
| prompt | string | The content description or instruction |
| type | string | Content type: blog, social, email, script, product |
| tone | string | Tone: professional, casual, friendly, formal |
| max_tokens | integer | Maximum length (default: 500, max: 3000) |
{"success":true,"data":{"content":"Generated content text here...","model":"ai-content-v3","tokens_used":342,"processing_time_ms":1250}}| Code | Meaning |
|---|---|
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing API key |
| 429 | Rate limit exceeded |
| 500 | Server error - Try again later |
Official SDKs are available for popular programming languages:
# Python pip install aicontentgen # Node.js npm install aicontentgen-sdk # Ruby gem install aicontentgen