Skip to main content
POST
/
ai
/
translate
Translate text
curl --request POST \
  --url https://api.octaviatech.app/cms/ai/translate \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "text": "text to translate",
  "targetLanguage": "en"
}
'
{
  "success": true,
  "statusCode": 200,
  "message": "OK",
  "data": {
    "content": "Translated content…",
    "tokens": {
      "used": 140,
      "remaining": 9860,
      "limit": 10000
    }
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
text
string
required
targetLanguage
string
required

IETF code (e.g., en, es, fa…)

Example:

"en"

Response

OK (translated)