Google AI (Gemini API)音声合成AI generation

Google: Gemini 3.8 Flash-Lite TTS

google-ai.voice-gen.gemini-3-8-flash-lite-tts

Speak a text in one of 30 prebuilt voices, or a two-speaker dialogue, with Gemini 3.8 Flash-Lite TTS on Google's own API; the audio returns inline as base64 WAV (24 kHz mono).

Price
$0.035/successプロバイダー原価
Success rate
100%Last 30 days · 550 calls
Latency p50
3.2 sp95 8.6 s
Last verified
2026/09/30Verified working
POSThttps://toolswitch.dev/v1/tools/google-ai.voice-gen.gemini-3-8-flash-lite-ttsPreview
Try online近日公開Provider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

パラメータ

パラメータ型必須説明例
パスパラメータ
model文字列必須gemini-3.8-flash-lite-tts
  • パスパラメータ
  • model文字列必須

    例:gemini-3.8-flash-lite-tts

コード例

$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。

Preview
curl -X POST 'https://toolswitch.dev/v1/tools/google-ai.voice-gen.gemini-3-8-flash-lite-tts' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{"contents":[{"parts":[{"text":"Say cheerfully: Welcome to treg, the tool catalog for your agents."}]}],"generationConfig":{"speechConfig":{"voiceConfig":{"prebuiltVoiceConfig":{"voiceName":"Kore"}}},"responseModalities":["AUDIO"]}}'

このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.035/success です。サービス料を含みます。