curl --request POST \
--url https://api.pawa-ai.com/v1/voice/text-to-speech \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "Hello, how are you?",
"model": "pawa-tts-v1-20250704",
"voice": "ame",
"max_tokens": 65536,
"temperature": 0.5,
"top_p": 0.95,
"repetition_penalty": 1.1
}
'"<string>"This endpoint converts text into streaming audio. It does streaming automatically so consider sending request as events streams, Server-Sent Events (SSE) or any other streaming method.
curl --request POST \
--url https://api.pawa-ai.com/v1/voice/text-to-speech \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "Hello, how are you?",
"model": "pawa-tts-v1-20250704",
"voice": "ame",
"max_tokens": 65536,
"temperature": 0.5,
"top_p": 0.95,
"repetition_penalty": 1.1
}
'"<string>"Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The text to be converted to speech
"Hello, how are you?"
The model to use for TTS
pawa-tts-v1-20250704 "pawa-tts-v1-20250704"
The voice to use for text-to-speech
ame, liora, ayana Maximum number of tokens to generate
Sampling temperature
-2 <= x <= 2Top-p nucleus sampling
0 <= x <= 1Repetition penalty
Audio streamed successfully
The response is of type file.