Skip to main content
POST
/
ai
/
generateTitle
Generate a title from text
curl --request POST \
  --url https://api.octaviatech.app/cms/ai/generateTitle \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "text": "Article content about…",
  "maxChars": 60
}'
{
  "success": true,
  "statusCode": 200,
  "message": "OK",
  "data": {
    "title": "Catchy, concise title",
    "tokens": {
      "used": 80,
      "remaining": 9920,
      "limit": 10000
    }
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
text
string
required

Base text/article

maxChars
integer

Hard cap on title length

Example:

60

Response

OK (title)

The response is of type any.