API Reference

Integrate AI content generation into your applications

Authentication

All API requests require authentication using your API key. Include the key in the Authorization header:

Authorization: Api-Key YOUR_API_KEY

You can find your API key in your account settings.

Endpoints

POST /api/generate/

Generate content based on your prompt and settings.

Request Body
{
  "prompt": "Write a blog post about AI",
  "content_type": "blog",
  "tone": "professional",
  "length": "medium",
  "language": "en"
}
Response
{
  "id": "uuid",
  "content": "Generated content...",
  "word_count": 350,
  "tokens_used": 500
}
GET /api/content-types/

List all available content types.

Response
[
  {"slug": "blog", "name": "Blog Post"},
  {"slug": "email", "name": "Email"},
  ...
]

Rate Limits

Plan Requests/Hour Requests/Day
Free - -
Pro 100 1,000
Enterprise Unlimited Unlimited

Error Handling

Code Description
400 Bad Request - Invalid parameters
401 Unauthorized - Invalid API key
429 Too Many Requests - Rate limit exceeded
500 Internal Server Error