SeslendirmeGoogle
Gemini 3.8 Flash TTS
Google’s Gemini 3.8 Flash TTS: text to speech in thirty voices and many languages, with instructions for style, or in a voice copied from a recording of the speaker.
- Model kimliği
google/gemini-3.8-flash-tts- Endpoint
POST /v1/audio/speech
Fiyat
| Geçerli olduğu durum | Minu | Resmi fiyat | resmi fiyata göre |
|---|---|---|---|
| Her istekdakika başına | $0.01 | — | — |
Seslendirme, her yanıttan sonra üretilen sesin süresine göre faturalandırılır. Ses üretmeyen bir istek için ücret alınmaz.
İstek örneği
Resmi OpenAI SDK’ları olduğu gibi çalışır: baseURL değerini https://api.minu.ai/v1 yapın ve Minu anahtarınızı kullanın. Yanıt, ses dosyasının kendisidir.
curl https://api.minu.ai/v1/audio/speech \
-H "Authorization: Bearer $MINU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-3.8-flash-tts",
"voice": "alloy",
"input": "Your order has shipped and will arrive on Friday."
}' \
--output speech.mp3import fs from 'node:fs';
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env.MINU_API_KEY,
baseURL: 'https://api.minu.ai/v1',
});
const speech = await client.audio.speech.create({
model: 'google/gemini-3.8-flash-tts',
voice: 'alloy',
input: 'Your order has shipped and will arrive on Friday.',
});
await fs.promises.writeFile('speech.mp3', Buffer.from(await speech.arrayBuffer()));import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["MINU_API_KEY"],
base_url="https://api.minu.ai/v1",
)
speech = client.audio.speech.create(
model="google/gemini-3.8-flash-tts",
voice="alloy",
input="Your order has shipped and will arrive on Friday.",
)
speech.write_to_file("speech.mp3")Girdi parametreleri
model, input (metin) ve voice içeren bir JSON gövdesi gönderin. voice şunlardan biri olmalıdır: alloy, ash, ballad, coral, echo, fable, nova, onyx, sage, shimmer, verse. instructions, response_format ve speed isteğe bağlıdır.