google/gemini-2.5-pro-tts/text-to-speech0.07クレジットから /秒

Gemini 2.5 Pro text-to-speech は、台本を 30 種のボイスで読み上げ、24 kHz モノラルの WAV を返します。アクセント・話し方・テンポは平易な言葉で指示でき、[sighs] などの角括弧の演出も演じられ、対話は 2 ボイスまで使えます。

POST /jobs/createTask でモデル名に google/gemini-2.5-pro-tts/text-to-speech を指定すれば呼び出せます。0.07クレジット/秒から($0.0007)。新規アカウントには 30 クレジットが付くので、まず Playground で無料で試せます。

  • テキスト読み上げ
  • 30種類の声

このガイドは今のところ英語のみです。 →

リクエストパラメーター

パラメーター必須説明
paceいいえRhythm of the reading. Omit it to keep the voice's own rhythm. natural · rapid_fire · the_drift · staccato
textいいえThe words to be spoken, exactly as written. Cues in square brackets such as [sighs] are performed rather than read aloud.
sceneいいえWhere and to whom the words are spoken. Shapes the delivery and is not spoken.
styleいいえあらかじめ用意されたスタイルやジャンル。 whisper · empathetic · vocal_smile · newscaster · promo_hype · deadpan
accentいいえEnglish accent used for the reading. neutral · american_general · american_valley · american_south · british_rp · british_brixton · transatlantic · australian · デフォルト: neutral
dialogueいいえA scripted conversation, used instead of text: each line names a speaker from speakers.
speakersいいえThe cast for dialogue: one or two voices, each with a name the lines refer to.
voice_idいいえ使える声から選びます。 Achernar · Achird · Algenib · Algieba · Alnilam · Aoede · Autonoe · Callirrhoe · Charon · Despina · Enceladus · Erinome · Fenrir · Gacrux · Iapetus · Kore · Laomedeia · Leda · Orus · Puck · Pulcherrima · Rasalgethi · Sadachbia · Sadaltager · Schedar · Sulafat · Umbriel · Vindemiatrix · Zephyr · Zubenelgenubi · デフォルト: Kore
temperatureいいえVariation between takes; higher is less predictable. ≥ 0 · ≤ 2
instructionsいいえHow to read the text: pace, mood, distance from the microphone, who is listening. Shapes the delivery and is not spoken.

料金

料金はクレジットで表示され、サイトで使うクレジットと同じです(1クレジット = $0.01)。タスクの受付時に保留され、完了時に実際の料金で精算されます。失敗したタスクは返金されます。

オプションクレジット /秒≈ USD
標準0.07$0.0007

実行前に正確な金額を知りたいときは、同じボディを POST /jobs/quote に送ってください。

API クイックスタート

Gemini 2.5 Pro TTS API を 3 ステップで呼び出す

  1. API キーを作成する. PopNow にログインし、API コンソールでキーを作成します。キーは sk-popnow- で始まり、サイトと同じクレジットを使います。
  2. リクエストを送る. POST /jobs/createTask に、model を google/gemini-2.5-pro-tts/text-to-speech、input をパラメーター表どおりにして送ります。レスポンスですぐにタスク ID が返ります。
  3. 結果を受け取る. タスク ID で GET /jobs/recordInfo をポーリングするか、callBackUrl を渡せば結果がそこへ送られます。タスクが成功したら出力リンクからダウンロードします。
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{
  "model": "google/gemini-2.5-pro-tts/text-to-speech",
  "input": {
    "text": "Welcome back. Your files finished rendering a minute ago and are ready to download.",
    "voice_id": "Kore",
    "accent": "neutral"
  }
}'

# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

プロンプトとリンクはご自身のものに置き換えてください。API タブにレスポンス、ポーリング、コールバックのリファレンスがあります。

Gemini 2.5 Pro TTS API についての質問

Gemini 2.5 Pro TTS API の料金はいくらですか?

Gemini 2.5 Pro TTSは0.07クレジット($0.0007)/秒です。クレジットはサイトと共通(1クレジット = $0.01)で、新規アカウントには30クレジットが付き、失敗したタスクは返金されます。

API でのGemini 2.5 Pro TTSのモデル名は?

POST /jobs/createTask の model フィールドに テキスト読み上げは google/gemini-2.5-pro-tts/text-to-speech を指定します。

声の雰囲気はどう調整しますか?

voice_id で声を、style で whisper や deadpan などの全体の話し方を、accent で英語のアクセントを、pace でリズムを選びます。instructions と scene には、気分や話しかける相手、場所など、読み方と状況を 1〜2 文で書きます。これらのメモは読み方に反映され、読み上げられません。temperature でテイク間のばらつきを調整します。

実在の人物の声を再現できますか?

できません。使えるのは 30 種類のプリセットボイスだけで、声のクローンや参照音声のアップロードには対応していません。

Gemini 2.5 Pro TTS API の制限は?

テキストの長さ(文字):5,000;ボイス:30。この範囲を超えるリクエストは、課金される前に拒否されます。

コードを書かずにGemini 2.5 Pro TTSを試せますか?

はい。Playground なら API キーなしで、PopNow のクレジットでGemini 2.5 Pro TTSを実行でき、実行ごとに対応するコードが表示されます。

すべての Gemini モデル

Gemini 2.5 Pro TTS についてさらに