Skip to main content
POST
/
voice
/
text-to-speech
Text to Speech
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?",
  "voice": "ame",
  "model": "pawa-tts-v1-20250704",
  "max_tokens": 65536,
  "temperature": 0.5,
  "top_p": 0.95,
  "repetition_penalty": 1.1
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
text
string
required

The text to be converted to speech

Example:

"Hello, how are you?"

model
enum<string>
default:pawa-tts-v1-20250704
required

The model to use for TTS

Available options:
pawa-tts-v1-20250704
Example:

"pawa-tts-v1-20250704"

voice
enum<string>
default:ame

The voice to use for text-to-speech

Available options:
ame,
liora,
ayana
max_tokens
number
default:65536

Maximum number of tokens to generate

temperature
number
default:0.5

Sampling temperature

Required range: -2 <= x <= 2
top_p
number
default:0.95

Top-p nucleus sampling

Required range: 0 <= x <= 1
repetition_penalty
number
default:1.1

Repetition penalty

Response

Audio streamed successfully

The response is of type file.

I