Skip to main content
POST
/
ai
/
generateContent
Generate full content (title, slug, summary, body)
curl --request POST \
  --url https://api.octaviatech.app/cms/ai/generateContent \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "text": "Write a beginner-friendly guide to intermittent fasting",
  "wordCount": 1200
}'
{
  "success": true,
  "statusCode": 200,
  "message": "Content generated successfully",
  "data": {
    "title": "Intermittent Fasting: A Beginner’s Guide",
    "slug": "intermittent-fasting-a-beginners-guide",
    "summary": "Short meta summary (<= 180 chars)…",
    "body": "<div>{\"body\":\"<div><p>…</p></div>\"}</div>",
    "tokens": {
      "used": 1600,
      "remaining": 8400,
      "limit": 10000
    }
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
text
string
required

High-level topic or brief; can include structure hints

wordCount
integer

Target words for body (default ~800)

Response

OK (generated)

The response is of type any.