Skip to main content
POST
Submission returns a task_id. Use Query Task Status to track completion, or supply callback_url for completion and failure notifications.

Parameters and combinations

Single speaker: supply non-empty text, optional voice (default Kore), and optional style_instructions. Dialogue: omit text and top-level voice; supply exactly two speakers with distinct non-empty speaker_id values and a voice for each. Supply non-empty turns; each turn needs a configured speaker_id, non-empty text, and optional style_instructions. Single-speaker and dialogue inputs are mutually exclusive. Global style_instructions can be used with either mode. The complete input is limited to 8,192 tokens. enable_safety_checker defaults to true. Disabling safety checking can require account authorization. Output is native WAV. There are no output_format, temperature, language_code, or seed parameters. Voices: Achernar, Achird, Algenib, Algieba, Alnilam, Aoede, Autonoe, Callirrhoe, Charon, Despina, Enceladus, Erinome, Fenrir, Gacrux, Iapetus, Kore, Laomedeia, Leda, Orus, Pulcherrima, Puck, Rasalgethi, Sadachbia, Sadaltager, Schedar, Sulafat, Umbriel, Vindemiatrix, Zephyr, Zubenelgenubi.

Examples

Task results

The query response uses the common task structure: task_id, status, progress, files, and error_message. A finished task has status="finished"; each result file has file_url and file_type. Preserve the task ID while polling. Speech appears as file_type="audio"; optional timing JSON appears as file_type="other".

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
enum<string>
required
Available options:
gemini-3.8-flash-tts
input
object
required

Use either text (single speaker) or speakers with turns (dialogue). These modes are mutually exclusive; dialogue cannot include top-level text or voice.

callback_url
string<uri>

Optional completion or failure callback URL.

Response

200 - application/json

Task accepted; query the task for final files.

code
integer
required
Example:

200

data
object
required