text-to-speech returns a hosted audio_url. A caller can pass that URL to a player, save it with a record, or hand it to a later step without decoding audio bytes.

{
  "text": "Your account report is ready.",
  "voice": "af_sky",
  "format": "mp3"
}

The response includes audio_url, file_size_bytes, content_type, format, voice, model, speed, and input_chars. Text can contain up to 4,000 characters. The default voice is af_sky; onyx maps to the compatible Kokoro voice ID for the default model.

For narration or IVR, keep the text in your own workflow and make one call per clip. Choose wav, opus, aac, or flac when your target needs a format other than MP3.