Pricing
Compare models →$0.04 per 1,000 characters of input text.
Billing Rules
- Billed by actual character count, prorated (no rounding up to 1,000)
- Minimum charge of $0.01 per request
Input schema
| Parameter | Type | Description |
|---|---|---|
textRequired | string | Styling instructions on how to synthesize the content in the text field.Less than or equal to 8,000 bytesJSON schema{
"x-rows": 10
} |
languageRequired | string | Language spoken in the 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 | Array of terminoogies to use for translation. Optional: omit for single-speaker synthesis, in which case the voice field is used.Items: 0–2JSON schema{
"x-placeholder": "abc"
} |
README
Gemini 2.5 Pro Text-to-Speech
Gemini 2.5 Pro Text-to-Speech is Google's advanced multi-speaker speech synthesis model that turns written dialogue into natural, expressive audio. It supports multiple speakers with distinct voices in a single generation, making it ideal for podcasts, conversations, audiobooks, and any content that needs realistic multi-voice narration.
Why Choose This?
- Multi-speaker dialogue
Assign different voices to different speakers and generate a natural-sounding conversation in one pass — no need to stitch separate audio clips together.
- Expressive, natural voices
Powered by Gemini 2.5 Pro, the voices carry natural intonation, pacing, and emotional range for lifelike results.
- Multi-language support
Supports a wide range of languages including Arabic (Egypt), Bangla (Bangladesh), Dutch (Netherlands), English (India), English (United States), French (France), German (Germany), Hindi (India), Indonesian (Indonesia), and more.
- Flexible speaker setup
Add as many speakers as your script needs, each with their own named voice. Simply write dialogue with speaker labels and the model handles the rest.
Parameters
| Parameter | Required | Description |
|---|---|---|
| text | Yes | The script or dialogue text. Use "Speaker: line" format for multi-speaker content. |
| language | Yes | Language and locale for synthesis (e.g., English (United States), French (France)). |
| 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 in the text field using the "Speaker: dialogue" format (e.g., "Rose: Welcome back to Tech Talk!").
- Select the language from the dropdown.
- Choose your voices — for a single narrator, pick a
voice. For dialogue, add onespeakersentry per character, each with its name and voice.
- Run — the model generates a single audio file with all speakers voiced naturally.
- Download the output audio.
Pricing
$0.04 per 1,000 characters of input text.
Billing Rules
- Billed by actual character count, prorated (no rounding up to 1,000)
- Minimum charge of $0.01 per request
Best Use Cases
- Podcasts & Talk Shows — Generate multi-host audio content with distinct voices for each speaker.
- Audiobooks & Narration — Bring stories to life with different character voices in a single generation.
- E-learning & Training — Create engaging instructional audio with conversational dialogue.
- Content Localization — Produce voiceovers in multiple languages for global audiences.
- Prototyping & Pre-production — Quickly audition dialogue and voice pairings before recording with real talent.
Pro Tips
- Use the "Speaker: dialogue" format consistently throughout your script to ensure correct voice assignment.
- Make sure each speaker name in the text exactly matches the speaker name in the speakers list.
- Keep dialogue natural — the model handles pacing and intonation best with conversational writing.
- For long scripts, break content into logical segments to review quality before generating the full piece.
Notes
- The number of available voices may vary by language. Experiment with different voice options to find the best fit for your content.
- Please ensure your content complies with Google's usage policies.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Gemini 2.5 Pro Text to Speech API example
The catalog lists POST https://api.opensi.com.ai/api/v3/google/gemini-2.5-pro/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 2.5 Pro Text to Speech API — Frequently asked questions
What is the Gemini 2.5 Pro Text To Speech API?
Gemini 2.5 Pro Text To Speech is a Google model for speech synthesis, exposed as a REST API on OpenSIAI. Google Gemini 2.5 Pro Text-to-Speech delivers natural multi-speaker voice synthesis with 30+ voices across 24 languages. Perfect for dialogues, conversations, and multilingual content. 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 2.5 Pro 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-2.5-pro/text-to-speech.
How much does Gemini 2.5 Pro Text To Speech cost per run or per second?
Gemini 2.5 Pro Text To Speech starts at $0.04 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 2.5 Pro 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-2.5-pro/text-to-speech.
How long does Gemini 2.5 Pro Text To Speech take to generate?
Reported generation time on OpenSIAI is around 4 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 2.5 Pro 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.