Pricing
Compare models →Pricing is $0.20 per 1,000 characters of input text, billed by actual character count of text, with a minimum of $0.01 per request (the price of a 1-character text).
Text Length (text) | Price |
|---|---|
| 10 characters | $0.01 (minimum) |
| 250 characters | $0.05 |
| 1,000 characters | $0.20 |
| 2,000 characters | $0.40 |
| 5,000 characters | $1.00 |
| 10,000 characters | $2.00 |
Input schema
| Parameter | Type | Description |
|---|---|---|
textRequired | string | Script or dialogue to synthesize. Use each speaker name exactly as configured in speakers.JSON schema{
"x-rows": 10
} |
languageRequired | string | Language and locale spoken in the generated audio.Arabic (Egypt)Bangla (Bangladesh)Dutch (Netherlands)English (India)English (United States)French (France)German (Germany)Hindi (India)Indonesian (Indonesia)Italian (Italy)Japanese (Japan)Korean (South Korea)Marathi (India)Polish (Poland)Portuguese (Brazil)Romanian (Romania)Russian (Russia)Spanish (Spain)Tamil (India)Telugu (India)Thai (Thailand)Turkish (Turkey)Ukrainian (Ukraine)Vietnamese (Vietnam)"English (United States)" |
voice | string | Voice for single-speaker synthesis. Ignored when speakers is provided.AchernarAchirdAlgenibAlgiebaAlnilamAoedeAutonoeCallirrhoeCharonDespinaEnceladusErinomeFenrirGacruxIapetusKoreLaomedeiaLedaOrusPuckPulcherrimaRasalgethiSadachbiaSadaltagerSchedarSulafatUmbrielVindemiatrixZephyrZubenelgenubi"Kore" |
speakers | array | Speaker names and voices used by the script. Each speaker name must match the label used in text. Optional: omit for single-speaker synthesis, in which case the voice field is used.Items: 0–2JSON schema{
"items": {
"properties": {
"speaker": {
"description": "Speaker label used in the script, for example Narrator or Alex.",
"type": "string"
},
"voice": {
"description": "Voice preset for this speaker.",
"enum": [
"Achernar",
"Achird",
"Algenib",
"Algieba",
"Alnilam",
"Aoede",
"Autonoe",
"Callirrhoe",
"Charon",
"Despina",
"Enceladus",
"Erinome",
"Fenrir",
"Gacrux",
"Iapetus",
"Kore",
"Laomedeia",
"Leda",
"Orus",
"Puck",
"Pulcherrima",
"Rasalgethi",
"Sadachbia",
"Sadaltager",
"Schedar",
"Sulafat",
"Umbriel",
"Vindemiatrix",
"Zephyr",
"Zubenelgenubi"
],
"type": "string",
"x-ui-component": "command"
}
},
"required": [
"speaker",
"voice"
],
"type": "object",
"x-order-properties": [
"speaker",
"voice"
]
}
} |
README
Gemini 3.1 Flash Text-to-Speech
Gemini 3.1 Flash Text-to-Speech turns scripts and labelled dialogue into expressive spoken audio. Assign a distinct voice to each speaker and generate one natural, multilingual audio track for narration, conversations, and voiceover workflows.
Why Choose This?
- Expressive speech generation
Create natural pacing, tone, and delivery from written scripts.
- Multi-speaker dialogue
Assign different voices to up to two named speakers in one generation.
- Multilingual voice output
Select the language and locale that match the script for stronger pronunciation.
- Voice preset control
Choose from a library of voice presets for narration, dialogue, announcements, and character reads.
- Standard audio output
Generated audio is returned as a URL in the standard OpenSI prediction response.
Parameters
| Parameter | Required | Description |
|---|---|---|
| text | Yes | Script or dialogue to synthesize. Use each speaker name exactly as configured in speakers. |
| language | Yes | Language and locale spoken in the generated audio. |
| speakers | No | Optional. Provide two or more speaker entries (each a speaker name plus a voice) to generate multi-speaker dialogue. Omit it for single-speaker synthesis. |
| voice | No | Voice preset when generating with a single speaker. Ignored if speakers is provided. |
How to Use
- Write your script — Use a consistent
Speaker: dialogueformat, such asNarrator: Welcome to the show.
- Choose a language — Select the language and locale for the spoken audio.
- Choose your voices — for a single narrator, pick a
voice. For dialogue, add onespeakersentry per speaker label used in the script.
- Submit — Generate the spoken audio and retrieve the output URL.
Pricing
Pricing is $0.20 per 1,000 characters of input text, billed by actual character count of text, with a minimum of $0.01 per request (the price of a 1-character text).
Text Length (text) | Price |
|---|---|
| 10 characters | $0.01 (minimum) |
| 250 characters | $0.05 |
| 1,000 characters | $0.20 |
| 2,000 characters | $0.40 |
| 5,000 characters | $1.00 |
| 10,000 characters | $2.00 |
Best Use Cases
- Dialogue generation — Create conversations with different named voices.
- Narration and voiceover — Produce spoken scripts for videos, presentations, and explainers.
- Podcasts and audio stories — Generate host or character dialogue from structured scripts.
- Multilingual content — Create localized speech with language-aware voice output.
- Product demos — Turn scripted product messaging into polished audio.
Pro Tips
- Make every speaker label in the script exactly match the corresponding speaker entry.
- Keep punctuation clear to guide pauses, emphasis, and delivery.
- Use one speaker for narration and two speakers for dialogue.
- Match the selected language to the language used in the script.
- Split long scripts into logical sections for more consistent pacing.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Gemini 3.1 Flash Text-to-Speech API example
The catalog lists POST https://api.opensi.com.ai/api/v3/google/gemini-3.1-flash/text-to-speech for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"text": "A clear example input",
"language": "English (United States)",
"voice": "Kore",
"speakers": []
}Gemini 3.1 Flash Text-to-Speech API — Frequently asked questions
What is the Gemini 3.1 Flash Text To Speech API?
Gemini 3.1 Flash Text To Speech is a Google model for speech synthesis, exposed as a REST API on OpenSIAI. Gemini 3.1 Flash Text to Speech generates expressive multi-speaker audio from text, with natural voices and multilingual language control for dialogue, narration, localization, and AI voice workflows. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Gemini 3.1 Flash Text To Speech API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/google/gemini-3.1-flash/text-to-speech.
How much does Gemini 3.1 Flash Text To Speech cost per run or per second?
Gemini 3.1 Flash Text To Speech starts at $0.2 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Gemini 3.1 Flash Text To Speech accept?
Key inputs: language, speakers, text, voice. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/google/gemini-3.1-flash/text-to-speech.
How long does Gemini 3.1 Flash Text To Speech take to generate?
Reported generation time on OpenSIAI is around 3 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Gemini 3.1 Flash Text To Speech outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (Google). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.