POST
/
tts
/
v1
/
voice
cURL
curl --request POST \
  --url https://api.inworld.ai/tts/v1/voice \
  --header 'Authorization: Basic <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "Hello, world! What a wonderful day to be a text-to-speech model!",
  "voiceId": "Hades",
  "modelId": "inworld-tts-1"
}'
{
  "audioContent": "UklGRiRQAQBXQVZFZm1...",
  "usage": {
    "processedCharactersCount": 64,
    "modelId": "inworld-tts-1"
  }
}

Authorizations

Authorization
string
header
required

Your authentication credentials. For Basic authentication, please populate Basic $INWORLD_RUNTIME_BASE64_CREDENTIAL

Body

application/json

Response

200
application/json

A successful response.

The response is of type object.