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

Google: Gemini 3.8 Flash TTS

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

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

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

パラメータ

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

    例:gemini-3.8-flash-tts

コード例

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

Preview
curl -X POST 'https://toolswitch.dev/v1/tools/google-ai.voice-gen.gemini-3-8-flash-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.05/success です。サービス料を含みます。