# Google Gemini 2.5 Flash Preview TTS — Text To Audio > Gemini 2.5 Flash Preview TTS (Text To Audio) on GPTProto — model-specific API access. Use the endpoint, authentication and response format below. ## Overview - **Guide status: available** - **Catalog model ID**: `gemini-2.5-flash-preview-tts` - **Lifecycle**: listed (source: model-scene.releaseStatus/preRelease/isShow; not an inference availability test) - **max_input_tokens**: unknown - **platform_max_input_tokens**: unknown (source missing or nonpositive; not parsed from marketing text) - **provider_context_tokens**: unknown (source: Data API models.context_length, uniquely matched provider SKU; separate from platform input limits) - **Context source**: model-scene.maxInTokenNumber, tokens; platform-published input limit, not an independently verified provider maximum - **Editorial facts**: marketing summaries are excluded; use the structured context, pricing and request fields below - **API availability**: not tested; available means a model-specific request is documented - **Base URL**: use the full Endpoint URL below; no shared SDK base URL is asserted - **Endpoint**: `POST https://gptproto.com/api/v3/audio/speech` - **Model ID**: `gemini-2.5-flash-preview-tts` - **Request model value**: `google/gemini-2.5-flash-preview-tts` (from the published request example) - **Vendor**: Google - **Scene**: `text-to-audio` - **Category**: text-to-audio - **Modalities**: input text → output audio - **Model page**: https://gptproto.com/model/google/gemini-2.5-flash-preview-tts - **API documentation**: https://docs.gptproto.com Send API requests to the absolute Endpoint URL in this guide. The website address used to read documentation, including localhost, is not an inference base URL. ## Authentication Every request needs a GPTProto API key. Create one at https://gptproto.com/dashboard/api-key, then export it: ```bash export GPTPROTO_API_KEY="your-api-key" ``` Header: `Authorization: Bearer $GPTPROTO_API_KEY`. ## Pricing Billing shape: `per_token_text`. Platform USD quotes already include the discount. Run rows are complete request totals for their listed parameters. Second/token rows are unit rates. Pricing controls describe billing, not the server's accepted API parameters. ### Token rates (2 published rows) - **Input** — $0.4 per 1M tokens; USD; unit rate - **Output** — $8 per 1M tokens; USD; unit rate Prices may change. The model page always shows the live price: https://gptproto.com/model/google/gemini-2.5-flash-preview-tts ## API Information The examples below use this model's published request format. Export your API key and supply any example inputs required by the request. ### Input Schema The JSON below is a published request example. Complete server parameter ranges/defaults are not independently confirmed here: **Full Example**: ```json { "model": "google/gemini-2.5-flash-preview-tts", "input": "Hello from GPTProto.", "voice": "" } ``` Replace `` with a voice supported by this model. ## Usage Examples ### 1. Submit a request ```bash curl --request POST "https://gptproto.com/api/v3/audio/speech" \ --header "Authorization: Bearer $GPTPROTO_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "model": "google/gemini-2.5-flash-preview-tts", "input": "Hello from GPTProto.", "voice": "" }' ``` ```python import os import requests url = "https://gptproto.com/api/v3/audio/speech" headers = { "Authorization": f"Bearer {os.environ['GPTPROTO_API_KEY']}", "Content-Type": "application/json" } payload = { "model": "google/gemini-2.5-flash-preview-tts", "input": "Hello from GPTProto.", "voice": "" } response = requests.request("POST", url, headers=headers, json=payload) print(response.json()) ``` ```typescript const response = await fetch("https://gptproto.com/api/v3/audio/speech", { method: "POST", headers: { "Authorization": `Bearer ${process.env.GPTPROTO_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ model: "google/gemini-2.5-flash-preview-tts", input: "Hello from GPTProto.", voice: "", }), }); const data = await response.json(); console.log(data); ``` ## HTTP Status Codes - `400` — malformed body, a parameter or value this model does not accept, or input blocked by the provider's content moderation - `401` — missing or invalid API key - `403` — insufficient credits - `413` — request body too large - `429` — rate limited; retry with backoff - `500` — An internal server error occurred - `502` — An internal server error occurred - `504` — Gateway timeout — upstream service did not respond in time; retry later ## Additional Resources - [Model page](https://gptproto.com/model/google/gemini-2.5-flash-preview-tts) - [API documentation](https://docs.gptproto.com) - [All models](https://gptproto.com/model) - [API keys](https://gptproto.com/dashboard/api-key) - [Platform overview for LLMs](https://gptproto.com/llms-full.txt) - Any other model: `https://gptproto.com/model/{vendor}/{model}/{scene}/llms.txt`