Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Gemini 3.1 Flash Tts

google/gemini-3.1-flash-tts

Gemini 3.1 Flash Tts by Google - convert text to natural-sounding speech with AI. Supports multiple voices, languages, emotions, and speaking styles for content creation and accessibility.

基本料金
$0.05USD / 実行
実行
async
モデルタイプ
audio
入力フィールド
7
本番ルート

モデルを試す

プレイグラウンド

Playground を開く
入力
The text to convert to speech. Gemini 3.1 Flash TTS supports natural-language prompting for style, pace, accent, and emotional expression — include delivery instructions inline with the text (e.g. 'Say cheerfully: Have a wonderful day!'). Supports expressive audio tags like [sigh], [laughing], [whispering], [short pause] for fine-grained control over delivery. For multi-speaker synthesis, prefix lines with speaker aliases defined in the speakers field (e.g. 'Alice: Hello!\nBob: Hi!').
Audio output format. mp3: compressed, small file size (recommended). wav: uncompressed PCM wrapped in WAV (24 kHz, 16-bit mono). ogg_opus: Ogg container with Opus codec, good quality-to-size ratio.
02
Controls the randomness of the speech output. Higher values produce more creative and varied delivery, while lower values make the output more predictable and focused. 範囲: 0 から 2 まで。
Multi-speaker voice configuration. When set, enables multi-speaker synthesis where different parts of the text are spoken by different voices. Each speaker needs a voice and a speaker_id (alias) that matches prefixes in the prompt.
Language for multilingual synthesis. When set, steers the model to speak in the specified language. If not set, the model auto-detects the language from the text.
Voice preset for single-speaker synthesis. 30 distinct voices are available. Ignored when speakers is set. Popular choices: Kore (strong, firm female), Puck (upbeat, lively male), Charon (calm, professional male), Zephyr (bright, clear female), Aoede (warm, melodic female).
Optional style and delivery instructions prepended to the prompt. Controls expressiveness, accent, pace, tone, and emotional expression using natural language. Use this to separate style control from the text content. Examples: 'Speak warmly and slowly', 'Read this as a dramatic newscast', 'Use a British accent with a cheerful tone', 'Whisper mysteriously'.
出力例
  1. 次に何をしますか?

    元のファイルを開く

例

例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。

  • 入力
    {
      "prompt": "I can't believe it worked! [laughing] After all those hours of debugging [sigh] it was just a missing semicolon."
    }
    結果を開く ↗

モデルカード

仕様

料金

基本価格
$0.05 / 実行

コンテキストとモダリティ

入力
スキーマ定義済み
出力
audio

機能

チャット
非対応
ビジョン
非対応
推論
非対応
構造化出力
非対応
関数呼び出し
非対応
音声入力
非対応

アクセス

提供元
Google
モデル ID
google/gemini-3.1-flash-tts
実行
async
ベース URL
https://api.sandbase.ai
API
Unified Run API
エンドポイント
/v1/run

API README

Gemini 3.1 Flash Tts

Gemini 3.1 Flash TTS speaks text in dozens of languages with 30 prebuilt voices, and supports two-speaker dialogue through speakers. Steer tone and pace with style_instructions.

Fields

FieldTypeDefaultNotes
promptstring, required—Text to speak. For dialogue, prefix lines with the speaker names defined in speakers.
output_formatwav / mp3 / ogg_opusmp3Output file format.
temperaturenumber 0–21Higher values give more varied delivery.
speakersobject[]—Optional speaker-to-voice list for multi-speaker dialogue.
language_codeArabic (Egypt) / Bangla (Bangladesh) / Dutch (Netherlands) / English (India) / English (US) / French (France) / German (Germany) / Hindi (India) / Indonesian (Indonesia) / Italian (Italy) / Japanese (Japan) / Korean (South Korea) / Marathi (India) / Polish (Poland) / Portuguese (Brazil) / Romanian (Romania) / Russian (Russia) / Spanish (Spain) / Tamil (India) / Telugu (India) / Thai (Thailand) / Turkish (Turkey) / Ukrainian (Ukraine) / Vietnamese (Vietnam) / Afrikaans (South Africa) / Albanian (Albania) / Amharic (Ethiopia) / Arabic (World) / Armenian (Armenia) / Azerbaijani (Azerbaijan) / Basque (Spain) / Belarusian (Belarus) / Bulgarian (Bulgaria) / Burmese (Myanmar) / Catalan (Spain) / Cebuano (Philippines) / Chinese Mandarin (China) / Chinese Mandarin (Taiwan) / Croatian (Croatia) / Czech (Czech Republic) / Danish (Denmark) / English (Australia) / English (UK) / Estonian (Estonia) / Filipino (Philippines) / Finnish (Finland) / French (Canada) / Galician (Spain) / Georgian (Georgia) / Greek (Greece) / Gujarati (India) / Haitian Creole (Haiti) / Hebrew (Israel) / Hungarian (Hungary) / Icelandic (Iceland) / Javanese (Java) / Kannada (India) / Konkani (India) / Lao (Laos) / Latin (Vatican City) / Latvian (Latvia) / Lithuanian (Lithuania) / Luxembourgish (Luxembourg) / Macedonian (North Macedonia) / Maithili (India) / Malagasy (Madagascar) / Malay (Malaysia) / Malayalam (India) / Mongolian (Mongolia) / Nepali (Nepal) / Norwegian Bokmal (Norway) / Norwegian Nynorsk (Norway) / Odia (India) / Pashto (Afghanistan) / Persian (Iran) / Portuguese (Portugal) / Punjabi (India) / Serbian (Serbia) / Sindhi (India) / Sinhala (Sri Lanka) / Slovak (Slovakia) / Slovenian (Slovenia) / Spanish (Latin America) / Spanish (Mexico) / Swahili (Kenya) / Swedish (Sweden) / Urdu (Pakistan)—Spoken language.
voiceAchernar / Achird / Algenib / Algieba / Alnilam / Aoede / Autonoe / Callirrhoe / Charon / Despina / Enceladus / Erinome / Fenrir / Gacrux / Iapetus / Kore / Laomedeia / Leda / Orus / Pulcherrima / Puck / Rasalgethi / Sadachbia / Sadaltager / Schedar / Sulafat / Umbriel / Vindemiatrix / Zephyr / ZubenelgenubiKorePrebuilt voice for single-speaker requests.
style_instructionsstring—How to say it.

Billing

$0.05 per started 1,000 characters of text.

TextPrice
200 characters$0.05
1,000 characters$0.05
2,500 characters$0.15

Failed runs are not charged.

Prompting

  • For dialogue, write Name: line and map each name to a voice in speakers.

Also on SandBase

Related: google/gemini-3.8-flash-tts (newer, cheaper).

開発を始める

最初のリクエストを送信

統一認証と使用状況の追跡を備えたOpenAI互換エンドポイントです。

本番API
Unified Run APIエンドポイント
https://api.sandbase.ai/v1/run
モデルID
google/gemini-3.1-flash-tts
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "google/gemini-3.1-flash-tts",
  "voice": "Kore",
  "prompt": "I can't believe it worked! [laughing] After all those hours of debugging [sigh] it was just a missing semicolon.",
  "speakers": [
    {
      "voice": "Charon",
      "speaker_id": "Host"
    },
    {
      "voice": "Kore",
      "speaker_id": "DrChen"
    }
  ],
  "temperature": 1,
  "language_code": "English (US)",
  "output_format": "mp3",
  "style_instructions": "Say the following in a warm, conversational tone"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
  status=$(printf '%s' "$result" | jq -r .status)
  case "$status" in completed|failed|timeout) break ;; esac
  sleep 2
  result=$(curl --fail-with-body --silent \
    -H "Authorization: Bearer $SANDBASE_API_KEY" \
    "https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"
01

入力スキーマ

7件のパラメータ · 必須 1件 · 任意 6件

パラメータ型必須説明
promptstring必須The text to convert to speech. Gemini 3.1 Flash TTS supports natural-language prompting for style, pace, accent, and emotional expression — include delivery instructions inline with the text (e.g. 'Say cheerfully: Have a wonderful day!'). Supports expressive audio tags like [sigh], [laughing], [whispering], [short pause] for fine-grained control over delivery. For multi-speaker synthesis, prefix lines with speaker aliases defined in the speakers field (e.g. 'Alice: Hello!\nBob: Hi!'). · 最小長: 1 · 最大長: 50000
voicestring任意Voice preset for single-speaker synthesis. 30 distinct voices are available. Ignored when speakers is set. Popular choices: Kore (strong, firm female), Puck (upbeat, lively male), Charon (calm, professional male), Zephyr (bright, clear female), Aoede (warm, melodic female). · オプション: Achernar, Achird, Algenib, Algieba, Alnilam, Aoede, Autonoe, Callirrhoe, Charon, Despina, Enceladus, Erinome, Fenrir, Gacrux, Iapetus, Kore, Laomedeia, Leda, Orus, Pulcherrima, Puck, Rasalgethi, Sadachbia, Sadaltager, Schedar, Sulafat, Umbriel, Vindemiatrix, Zephyr, Zubenelgenubi · デフォルト: "Kore"
AchernarAchirdAlgenibAlgiebaAlnilamAoedeAutonoeCallirrhoeCharonDespinaEnceladusErinomeFenrirGacruxIapetusKoreLaomedeiaLedaOrusPulcherrimaPuckRasalgethiSadachbiaSadaltagerSchedarSulafatUmbrielVindemiatrixZephyrZubenelgenubi
speakersobject[]任意Multi-speaker voice configuration. When set, enables multi-speaker synthesis where different parts of the text are spoken by different voices. Each speaker needs a voice and a speaker_id (alias) that matches prefixes in the prompt.
temperaturenumber任意Controls the randomness of the speech output. Higher values produce more creative and varied delivery, while lower values make the output more predictable and focused. · 最小: 0 · 最大: 2 · デフォルト: 1
language_codestring任意Language for multilingual synthesis. When set, steers the model to speak in the specified language. If not set, the model auto-detects the language from the text. · オプション: Arabic (Egypt), Bangla (Bangladesh), Dutch (Netherlands), English (India), English (US), French (France), German (Germany), Hindi (India), Indonesian (Indonesia), Italian (Italy), Japanese (Japan), Korean (South Korea), Marathi (India), Polish (Poland), Portuguese (Brazil), Romanian (Romania), Russian (Russia), Spanish (Spain), Tamil (India), Telugu (India), Thai (Thailand), Turkish (Turkey), Ukrainian (Ukraine), Vietnamese (Vietnam), Afrikaans (South Africa), Albanian (Albania), Amharic (Ethiopia), Arabic (World), Armenian (Armenia), Azerbaijani (Azerbaijan), Basque (Spain), Belarusian (Belarus), Bulgarian (Bulgaria), Burmese (Myanmar), Catalan (Spain), Cebuano (Philippines), Chinese Mandarin (China), Chinese Mandarin (Taiwan), Croatian (Croatia), Czech (Czech Republic), Danish (Denmark), English (Australia), English (UK), Estonian (Estonia), Filipino (Philippines), Finnish (Finland), French (Canada), Galician (Spain), Georgian (Georgia), Greek (Greece), Gujarati (India), Haitian Creole (Haiti), Hebrew (Israel), Hungarian (Hungary), Icelandic (Iceland), Javanese (Java), Kannada (India), Konkani (India), Lao (Laos), Latin (Vatican City), Latvian (Latvia), Lithuanian (Lithuania), Luxembourgish (Luxembourg), Macedonian (North Macedonia), Maithili (India), Malagasy (Madagascar), Malay (Malaysia), Malayalam (India), Mongolian (Mongolia), Nepali (Nepal), Norwegian Bokmal (Norway), Norwegian Nynorsk (Norway), Odia (India), Pashto (Afghanistan), Persian (Iran), Portuguese (Portugal), Punjabi (India), Serbian (Serbia), Sindhi (India), Sinhala (Sri Lanka), Slovak (Slovakia), Slovenian (Slovenia), Spanish (Latin America), Spanish (Mexico), Swahili (Kenya), Swedish (Sweden), Urdu (Pakistan)
Arabic (Egypt)Bangla (Bangladesh)Dutch (Netherlands)English (India)English (US)French (France)German (Germany)Hindi (India)Indonesian (Indonesia)Italian (Italy)Japanese (Japan)Korean (South Korea)Marathi (India)Polish (Poland)Portuguese (Brazil)Romanian (Romania)Russian (Russia)Spanish (Spain)Tamil (India)Telugu (India)Thai (Thailand)Turkish (Turkey)Ukrainian (Ukraine)Vietnamese (Vietnam)Afrikaans (South Africa)Albanian (Albania)Amharic (Ethiopia)Arabic (World)Armenian (Armenia)Azerbaijani (Azerbaijan)Basque (Spain)Belarusian (Belarus)Bulgarian (Bulgaria)Burmese (Myanmar)Catalan (Spain)Cebuano (Philippines)Chinese Mandarin (China)Chinese Mandarin (Taiwan)Croatian (Croatia)Czech (Czech Republic)Danish (Denmark)English (Australia)English (UK)Estonian (Estonia)Filipino (Philippines)Finnish (Finland)French (Canada)Galician (Spain)Georgian (Georgia)Greek (Greece)Gujarati (India)Haitian Creole (Haiti)Hebrew (Israel)Hungarian (Hungary)Icelandic (Iceland)Javanese (Java)Kannada (India)Konkani (India)Lao (Laos)Latin (Vatican City)Latvian (Latvia)Lithuanian (Lithuania)Luxembourgish (Luxembourg)Macedonian (North Macedonia)Maithili (India)Malagasy (Madagascar)Malay (Malaysia)Malayalam (India)Mongolian (Mongolia)Nepali (Nepal)Norwegian Bokmal (Norway)Norwegian Nynorsk (Norway)Odia (India)Pashto (Afghanistan)Persian (Iran)Portuguese (Portugal)Punjabi (India)Serbian (Serbia)Sindhi (India)Sinhala (Sri Lanka)Slovak (Slovakia)Slovenian (Slovenia)Spanish (Latin America)Spanish (Mexico)Swahili (Kenya)Swedish (Sweden)Urdu (Pakistan)
output_formatstring任意Audio output format. mp3: compressed, small file size (recommended). wav: uncompressed PCM wrapped in WAV (24 kHz, 16-bit mono). ogg_opus: Ogg container with Opus codec, good quality-to-size ratio. · オプション: wav, mp3, ogg_opus · デフォルト: "mp3"
wavmp3ogg_opus
style_instructionsstring任意Optional style and delivery instructions prepended to the prompt. Controls expressiveness, accent, pace, tone, and emotional expression using natural language. Use this to separate style control from the text content. Examples: 'Speak warmly and slowly', 'Read this as a dramatic newscast', 'Use a British accent with a cheerful tone', 'Whisper mysteriously'. · 最大長: 4000
02

出力スキーマ

フィールド型説明
idstring生成タスクの一意な識別子
statusstringタスクのステータス: pending, running, completed, failed, timeout
modelstring生成に使用されたモデル
outputsarray出力項目の配列
outputs[].urlstring生成された成果物のURL
outputs[].content_typestringMIMEタイプ(例: image/png, video/mp4)
errorobject | null失敗時のエラー詳細。成功時は null
error.typestring機械可読なエラー種別コード
error.messagestring人間が読めるエラー説明

非同期ワークフロー

このモデルは非同期で実行されます。リクエストを送信し、その後結果をポーリングしてください。

  1. 送信:/v1/run に POST し、返された id を読み取ります。
  2. ポーリング:ステータスが completed、failed、または timeout になるまで /v1/run/{id} に GET します。
  3. 取得:完了レスポンスから outputs を読み取ります。

モデルを選ぶ

モデルを比較

すべての画像・動画モデル
モデル種類通常価格公開日
Gemini 3.1 Flash Ttsこのモデル
Google
音声$0.05 / 回2026年4月16日
Google音声$0.04 / 回2026年9月25日
Google音声$0.03 / 回2026年9月25日
Google音声$0.10 / 回2026年9月15日
Google音声$0.08 / 回2026年3月30日
Google音声$0.04 / 回2026年3月30日

質問

FAQ

SandBase 経由で Google Gemini 3.1 Flash Tts を呼び出すにはどうすればよいですか?

SandBase API key を作成し、モデル ID「google/gemini-3.1-flash-tts」を使用して https://api.sandbase.ai の Unified Run API (/v1/run) にリクエストを送信してください。このページのリクエスト例に、正確なペイロードが示されています。

別途 Google アカウントは必要ですか?

いいえ。SandBase の API key と残高が 1つあれば、Google Gemini 3.1 Flash Tts とカタログ内の他のモデルを利用できます。Google に別途登録する必要はありません。