Pricing
Compare models →| Billable Characters | Price |
|---|---|
| 100 | $0.05 |
| 1,000 | $0.05 |
| 5,000 | $0.25 |
For single-speaker generation, billable characters include:
textstyle_instructions
For dialogue generation, billable characters include:
- Text from all
turns - Per-turn
style_instructions - Global
style_instructions
Input schema
| Parameter | Type | Description |
|---|---|---|
text | string | Text to speak. For dialogue, leave text empty and provide speakers and turns. Delivery directions belong in style_instructions.Characters: 1–8000JSON schema{
"x-placeholder": "Single speaker: enter the words to speak. Dialogue: leave this empty.",
"x-rows": 6
} |
voice | string | Prebuilt voice for single-speaker speech.AchernarAchirdAlgenibAlgiebaAlnilamAoedeAutonoeCallirrhoeCharonDespinaEnceladusErinomeFenrirGacruxIapetusKoreLaomedeiaLedaOrusPuckPulcherrimaRasalgethiSadachbiaSadaltagerSchedarSulafatUmbrielVindemiatrixZephyrZubenelgenubi"Kore" |
style_instructions | string | Optional delivery style, tone, pacing, or accent. Included in billable character count.Characters: 0–2000 |
speakers | array | Optional dialogue setup: add exactly two distinct speaker IDs and their voices, then add turns and leave text empty. Omit for single-speaker speech.Items: 0–2JSON schema{
"items": {
"additionalProperties": false,
"properties": {
"speaker_id": {
"minLength": 1,
"type": "string",
"x-placeholder": "Required: Alice or Bob"
},
"voice": {
"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-placeholder": "Required: select a voice",
"x-ui-component": "command"
}
},
"required": [
"speaker_id",
"voice"
],
"type": "object",
"x-order-properties": [
"speaker_id",
"voice"
]
}
} |
turns | array | Optional dialogue turns: add at least one turn and match each speaker_id to the two configured speakers. Leave text empty when using dialogue. Total input must fit 8192 tokens.Items: 0–100JSON schema{
"items": {
"additionalProperties": false,
"properties": {
"speaker_id": {
"minLength": 1,
"type": "string",
"x-placeholder": "Required: matching speaker_id"
},
"style_instructions": {
"maxLength": 2000,
"type": "string",
"x-placeholder": "Optional: tone or pacing"
},
"text": {
"maxLength": 8000,
"minLength": 1,
"type": "string",
"x-placeholder": "Required: words this speaker says"
}
},
"required": [
"speaker_id",
"text"
],
"type": "object",
"x-order-properties": [
"speaker_id",
"text",
"style_instructions"
]
}
} |
README
Gemini 3.8 Flash Text-to-Speech
Gemini 3.8 Flash Text-to-Speech generates expressive speech from text with 30 preset voices and natural-language control over delivery. Use style instructions to guide tone, pacing, accent, and emotion without embedding delivery directions into the spoken text.
The endpoint supports both standard single-speaker narration and API-based two-speaker dialogue, making it suitable for voiceovers, conversations, character dialogue, narration, and other speech-generation workflows.
Why Choose This?
- Expressive text-to-speech
Generate natural speech from text with control over tone, pacing, accent, and emotional delivery.
- 30 preset voices
Choose from a broad set of built-in voices for different narration and character styles.
- Natural-language style control
Describe how the speech should be delivered through style_instructions.
- Single-speaker narration
Generate voiceovers, narration, explanations, and other single-speaker speech.
- Per-turn delivery control
Dialogue turns can include their own style_instructions for different emotions or speaking styles.
- WAV output
Receive the generated speech as a downloadable WAV audio file.
Parameters
| Parameter | Required | Description |
|---|---|---|
| text | Conditional | Text to speak for single-speaker generation. Supports up to 8000 characters. Omit when using dialogue mode. |
| voice | No | Preset voice for single-speaker speech. Default: Kore. |
| style_instructions | No | Optional natural-language instructions for tone, pacing, accent, emotion, or other delivery characteristics. Supports up to 2000 characters. |
| speakers | Conditional | Define exactly 2 speakers with distinct speaker_id values and their selected voices. |
| turns | Conditional | Each turn contains a speaker_id, text, and optional style_instructions. |
How to Use
Single-Speaker Speech
- Enter the text — Provide the content you want spoken.
- Choose a voice optional — Select one of the available preset voices or keep the default
Kore.
- Add style instructions optional — Describe the desired tone, pacing, accent, emotion, or delivery.
- Submit — Generate the speech and retrieve the WAV audio.
Two-Speaker Dialogue
- Configure two speakers — Define exactly two distinct
speaker_idvalues and assign a voice to each.
- Create ordered turns — Add each speaker's dialogue in the order it should be spoken.
- Add per-turn style optional — Give individual turns their own delivery instructions when needed.
- Add global style optional — Use
style_instructionsfor overall delivery guidance.
- Submit — Generate the complete two-speaker dialogue as audio.
Pricing
| Billable Characters | Price |
|---|---|
| 100 | $0.05 |
| 1,000 | $0.05 |
| 5,000 | $0.25 |
For single-speaker generation, billable characters include:
text
style_instructions
For dialogue generation, billable characters include:
- Text from all
turns
- Per-turn
style_instructions
- Global
style_instructions
Best Use Cases
- Narration and voiceovers — Generate expressive speech for videos, presentations, explainers, and other media.
- Two-speaker conversations — Create API-driven dialogue between two configured voices.
- Character dialogue — Give different speakers distinct voices and delivery styles.
- Audiobook and storytelling workflows — Control pacing, emotion, and narration style through natural-language instructions.
- Educational content — Generate clear spoken explanations, lessons, and instructional audio.
- Localized voice content — Guide accent, tone, and delivery through style instructions.
- Conversational prototypes — Create spoken interactions for assistants, characters, demos, and dialogue experiences.
Pro Tips
- Keep the spoken content in
textorturnsand put delivery directions instyle_instructions.
- Use short, specific style instructions for more consistent delivery.
- Describe concrete characteristics such as pace, emotional tone, energy, or accent instead of vague style requests.
- In dialogue mode, make sure every
speaker_idused inturnshas been configured inspeakers.
- Use per-turn style instructions when a speaker's emotion or delivery changes during the conversation.
- Keep the total request within the
8192-token input limit.
- Inline vocal events such as
<laugh>or<sigh>can be used when they are part of the intended performance.
Related Models
- Gemini 3.8 Flash Lite Text-to-Speech — Generate speech with the lighter Gemini 3.8 Flash Lite text-to-speech endpoint.
- Gemini 3.8 Flash Text-to-Speech — Generate expressive single-speaker or two-speaker speech with preset voices and natural-language delivery control.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Gemini 3.8 Flash Text-to-Speech API example
The catalog lists POST https://api.opensi.com.ai/api/v3/google/gemini-3.8-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",
"voice": "Kore",
"style_instructions": "example",
"speakers": [],
"turns": []
}Gemini 3.8 Flash Text-to-Speech API — Frequently asked questions
What is the Gemini 3.8 Flash Text To Speech API?
Gemini 3.8 Flash Text To Speech is a Google model for speech synthesis, exposed as a REST API on OpenSIAI. Gemini 3.8 Flash Text-to-Speech generates expressive speech from text with configurable voice and delivery-style controls for narration, dialogue, localization, virtual assistants, and voice production 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.8 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.8-flash/text-to-speech.
How much does Gemini 3.8 Flash Text To Speech cost per run or per second?
Gemini 3.8 Flash Text To Speech starts at $0.05 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.8 Flash Text To Speech accept?
Key inputs: 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.8-flash/text-to-speech.
How long does Gemini 3.8 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.8 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.