Skip to main content
POST
/
ai
/
summarize
Summarize text
curl --request POST \
  --url https://api.octaviatech.app/cms/ai/summarize \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "text": "<p>Long HTML/text…</p>",
  "maxWords": 120
}'
{
  "success": true,
  "statusCode": 200,
  "message": "Text summarized successfully",
  "data": {
    "summary": "Concise summary…",
    "tokens": {
      "used": 123,
      "remaining": 9877,
      "limit": 10000
    }
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
text
string
required

Raw text or HTML

maxWords
integer

Target max words

Example:

120

Response

OK (summarized)

The response is of type any.