GET

/v1/schemas/cartesia/audio/infill/bytes

kind inputactivity audiohash acdf5f38…extracted Oct 30, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
a9ce21d0a3b28a57ef89ece81b676ac90c24bd222b3d9e2a9c10d00b53fe8205
{
  "fetchedAt": 1793337635,
  "extractorVersion": "1",
  "verifiedAt": null
}

Request body

10 properties · 0 required · 3 $defs
propertytypedescriptionconstraints
left_audiostringAudio clip that comes before the infill transcript: `left_audio` -> `transcript` -> `right_audio`format: binary
right_audiostringAudio clip that comes after the infill transcript: `left_audio` -> `transcript` -> `right_audio`format: binary
model_idenumThe ID of the model to use for generating audiosonic-3 | sonic-3-2026-01-12
languageenumThe language of the transcripten | fr | de | es | pt | zh · +38 more
transcriptstringThe infill text to generate. For best results, use longer transcripts to give the model more flexibility to adapt to the rest of the audio.
voice_idstringThe ID of the voice to use for generating audio
output_format[container]enumThe format of the output audioraw | wav | mp3
output_format[sample_rate]enumThe sample rate of the output audio8000 | 16000 | 22050 | 24000 | 44100 | 48000
output_format[encoding]enumRequired for `raw` and `wav` containers.pcm_f32le | pcm_s16le | pcm_mulaw | pcm_alaw
output_format[bit_rate]integerRequired for `mp3` containers.

Types

3 $defs

OutputFormatContainerenum

raw | wav | mp3

RawEncodingenum

The encoding format for output audio. See [TTS Output Audio Format](/build-with-cartesia/capability-guides/tts-output-audio-format) if you're unsure what to use.

pcm_f32le | pcm_s16le | pcm_mulaw | pcm_alaw

SupportedLanguageenum

The language that the given voice should speak the transcript in. This may depend on the model you're using. See [Models](/build-with-cartesia/tts-models/latest) for details.

en | fr | de | es | pt | zh · +38 more

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"cartesia","endpointId":"infill/bytes","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}