
Gemini 3.1 Flash TTS Preview
About Google Cloud Gemini 3.1 Flash TTS Preview
Trasforma il testo in un discorso dal suono naturale.
Google Cloud Gemini 3.1 Flash TTS Preview è un modello di Google Cloud disponibile su Eden AI tramite la sua API compatibile con OpenAI. Chiamalo con la stessa chiave API di tutti gli altri modelli di Eden AI, inviando il suo ID modello all’endpoint /v3/audio/speech, oppure tramite qualsiasi SDK OpenAI, con elaborazione in Europa.
Tasks and prices
Google Cloud Gemini 3.1 Flash TTS Preview is available on Eden AI for 1 tasks. È servito tramite l’API compatibile con OpenAI di Eden AI: invia il suo ID modello all’endpoint /v3/audio/speech con la tua chiave API di Eden AI.
Parameters
What you send and what you get back when you call Google Cloud Gemini 3.1 Flash TTS Preview through Eden AI. The same fields work with every model of the same task, so you can switch model without changing your code.
Input
- model (obbligatorio): testo. L'ID del modello, nel formato provider/modello.
- input (obbligatorio): testo. Il testo da leggere ad alta voce.
- voice: testo. La voce da usare.
Risposta
- audio
Estimate your monthly cost
Enter your monthly volume for Sintesi vocale to compare Google Cloud Gemini 3.1 Flash TTS Preview with its cheapest alternatives.
Call Google Cloud Gemini 3.1 Flash TTS Preview with Eden AI
Invia l’ID del modello all’endpoint compatibile con OpenAI /v3/audio/speech. Funziona anche qualsiasi SDK OpenAI: imposta il suo URL di base su https://api.edenai.run/v3.
import requests
response = requests.post(
"https://api.edenai.run/v3/audio/speech",
headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
json={
"model": "vertex/gemini-3.1-flash-tts-preview",
"input": "Ciao da Eden AI!",
},
)
with open("speech.mp3", "wb") as f:
f.write(response.content)
curl https://api.edenai.run/v3/audio/speech \
-H "Authorization: Bearer YOUR_EDENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "vertex/gemini-3.1-flash-tts-preview", "input": "Ciao da Eden AI!"}' \
--output speech.mp3
const response = await fetch("https://api.edenai.run/v3/audio/speech", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_EDENAI_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "vertex/gemini-3.1-flash-tts-preview",
input: "Ciao da Eden AI!",
}),
});
const audio = await response.arrayBuffer();
Questions about Google Cloud Gemini 3.1 Flash TTS Preview
On Eden AI, Google Cloud Gemini 3.1 Flash TTS Preview costs for Sintesi vocale. The Tasks and prices table lists the price for each task, and you only pay for what you use.
On Eden AI, Google Cloud Gemini 3.1 Flash TTS Preview is available for: Sintesi vocale. Input: Testo. Output: audio.
Eden AI offers Sintesi vocale from 6 providers, all callable with the same API key. The cheapest models are compared just below.
Alternatives for Sintesi vocale
Other Sintesi vocale models you can call with the same key, cheapest first.
More from Google Cloud
Other Google Cloud models on Eden AI, for every task.



.avif)


