Text-to-Speech (TTS)

post

/tts

Authorizations
Body
textstringrequired
containerstring
sample_ratestring
modelstring · enumrequired
Options: #g1_aura-asteria-en, #g1_aura-hera-en, #g1_aura-luna-en, #g1_aura-stella-en, #g1_aura-athena-en, #g1_aura-zeus-en, #g1_aura-orion-en, #g1_aura-arcas-en, #g1_aura-perseus-en, #g1_aura-angus-en, #g1_aura-orpheus-en, #g1_aura-helios-en
encodingstring · enum · default: linear16
Options: linear16, mulaw, alaw, mp3, opus, flac, aac
Responses
curl -L \
  --request POST \
  --url 'https://api.aimlapi.com/tts' \
  --header 'Authorization: Bearer JWT' \
  --header 'Content-Type: application/json' \
  --data '{"text":"text","model":"#g1_aura-asteria-en","encoding":"linear16"}'
{
  "metadata": {
    "transaction_key": "text",
    "request_id": "text",
    "sha256": "text",
    "created": "2025-02-21T18:02:54.629Z",
    "duration": 1,
    "channels": 1,
    "models": [
      "text"
    ],
    "model_info": {
      "ANY_ADDITIONAL_PROPERTY": {
        "name": "text",
        "version": "text",
        "arch": "text"
      }
    }
  }
}

Last updated

Was this helpful?