Skip to main content
POST
/
v1
/
characters
/
{id}
/
tts
Synthesize a character's voice
curl --request POST \
  --url https://api.alakazam.gg/v1/characters/{id}/tts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "text": "<string>",
  "token": "<string>",
  "style": 123
}
'
"<string>"

Authorizations

Authorization
string
header
required

The scoped runtime session JWT from POST /v1/sessions/token. The embed's browser presents it (Authorization: Bearer, or a token body field) to the runtime exchange routes. Not an API key.

Path Parameters

id
string<uuid>
required

Body

application/json
text
string
required
token
string
style
number

0–1 expressiveness.

Response

The synthesized audio.

The response is of type file.