Skip to main content
POST
Text to speech

Authorizations

chariotai-api-key
string
header
required

Your Chariot API key, generated from the dashboard. Send it in the chariotai-api-key header on every request.

Body

application/json
voice_id
string<uuid>
required

The voice to synthesize with. Get valid ids from GET /v1/voices.

Example:

"bac7d666-094d-4698-91fa-741d60fce662"

text
string
required

Text to synthesize, with at least one character after trimming surrounding whitespace. For chariot-v0, sync accepts up to 700 characters and HTTP streaming up to 500. For chariot-multilingual-v1, both accept up to 1,000.

Required string length: 1 - 1000
Example:

"Hello from Chariot."

model_type
enum<string>
default:chariot-v0

TTS model to use. Defaults to chariot-v0. The legacy spelling v0 remains accepted for compatibility. Select a model supported by the voice.

Available options:
chariot-v0,
chariot-multilingual-v1
speed
number
default:1

Speaking rate. Choose a value from the selected voice model entry's speeds list. chariot-v0 supports only 1.0. Other rates depend on the voice and model; an unavailable rate returns 422.

Required range: 0.5 <= x <= 2
optimize_streaming_latency
integer
default:0

Latency-optimization level. 0 applies all quality passes. Higher values trade quality passes for lower latency and may reduce output quality.

Required range: 0 <= x <= 4

Response

The synthesized speech as a WAV file.

The response is of type file.