Audio model overview

Available models

Speech synthesis and audio composition select a speech model with the model field in the request body; it defaults to indextts-2. Both models share POST /v1/tts and POST /v1/audio/compositions, and some request fields apply to only one of them.

Model IDLanguageEmotion controlVoice sourcesText limitOutput
indextts-2Follows the voice reference; no language neededEmotion reference audio, or an eight-dimensional emotion vector with emo_alphaPreset voices, saved voices, uploaded voice references2048 charactersWAV
indextts-2.5language is required: ZH, EN or JAemo_text description (up to 200 characters); inferred from the text when omittedPreset voices, saved voices, uploaded voice references (0.5–15 seconds long)2000 characters, including at least one letter or digitWAV
  • indextts-2.5 also supports speed (0.5–2×, default 1). It does not accept emo_asset_id, emo_ref_key, emo_vector or emo_alpha.
  • indextts-2 does not accept language, speed or emo_text.
  • Both models reserve credits from the estimated audio duration and settle against the actual duration after success, returning any excess. The two models have different rates. For audio compositions, check the credits required with the quote endpoint first.
  • A model not listed above returns 422. If a model is temporarily unavailable, the API returns 503; try again later.

Audio capabilities

All audio generation runs as asynchronous jobs: a submission returns 202 with a job ID, and you get the result by polling or through a webhook.

CapabilitySubmit endpointInputOutputBilling
Speech synthesisPOST /v1/ttsText, a model, one voice and optional emotion controlSpeech audioReserved from the estimated duration and settled against the actual duration
Audio compositionPOST /v1/audio/compositionsTimed script lines plus sound effect and music assetsMixed WAVCheck with the quote endpoint first; billed per speech segment
Voice designPOST /v1/voice-designsVoice name, voice description, preview text and languageA candidate voice that can be saved for speech synthesisEach generation is charged at the rate returned by voice design configuration

Voice design does not require choosing a model, so its request has no model field. It supports Chinese (zh) and English (en), descriptions of up to 500 characters and preview text of 15–200 characters. The rate per generation is returned by the voice design configuration endpoint.

Choosing a capability

  • Turn text into speech: use speech synthesis. Choose indextts-2 for fine emotion control with reference audio or an eight-dimensional vector. Choose indextts-2.5 for Chinese, English or Japanese voice-over, speed control or emotion described in words.
  • Produce finished audio with multiple lines, sound effects and music: use audio composition. Quote before submitting. A failed composition can be resumed, and completed speech segments are reused.
  • No suitable voice: use voice design to generate a candidate voice from a text description, save it when you are satisfied, then use it as voice_asset_id for speech synthesis.

See the audio guide for voice selection, emotion control and request examples for each model.

API reference

Create speech · Quote an audio composition · Create an audio composition · Resume an audio composition · Get voice design configuration · Design a voice from a description · Save a designed voice · List preset voices

On this page