Model
Parameters
Multi-Speaker Dialogue
Generate a conversation between up to 2 voices in one request. Two equivalent forms are accepted. Form 1 —dialogue array. Each line carries its own voice; lines are spoken in order:
speaker is optional — lines sharing a voice are treated as the same speaker automatically. If every line uses the same voice, the result is ordinary single-voice speech.
Form 2 — script plus speakers map. Write the script in input with speaker names, and map each name to a voice:
input exactly. Both forms are limited to 2 distinct voices — a third voice is rejected with a 400.
Voices
30 prebuilt voices. Use either the Gemini name or the OpenAI-style alias invoice and speakers[].voice:
Languages
Language is auto-detected frominput (70+ languages). Set language only to force a specific locale:
Output Formats
Pricing
Billed per second of generated audio, verified from provider usage after each generation — you pay for the audio actually delivered.Resources
List voices and languages from the Resources API:Example
Response
Completed Response
PollGET /v1/tasks/{task_id} until status is completed:
