Cartesia API key
API version header. Must be set to the API version, e.g. '2025-04-16'.
2024-06-10, 2024-11-13, 2025-04-16, 2026-03-01 "2025-04-16"
The ID of the model to use for generating audio. Any model other than the first "sonic" model is supported.
The language of the transcript
The infill text to generate
The ID of the voice to use for generating audio
The format of the output audio
raw, wav, mp3 The sample rate of the output audio
8000, 16000, 22050, 24000, 44100, 48000 Required for raw and wav containers.
pcm_f32le, pcm_s16le, pcm_mulaw, pcm_alaw Required for mp3 containers.