PopNowAPI ドキュメント
本文

ElevenLabs v4 Turbo API リファレンス

同じ 21 の声と 90 以上の言語に対応する、より高速な ElevenLabs v4 の音声

PopNow の API キー 1 つで、ElevenLabs v4 Turbo を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりの料金(USD)、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。

パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。

概要

開発元
ElevenLabs
出力
音声
最安
$0.048 USD 1,000 文字あたり
目安の所要時間
約 7 秒

料金は USD で表示され、PopNow の残高から差し引かれます。受付時に最大料金を確保し、完了後に実際の使用量で精算して差額を返却します。失敗したタスクは課金されません。実行前の正確な見積もりは POST /api/v1/jobs/quote で取得できます。

テキスト読み上げ

elevenlabs/v4-turbo/text-to-speech

料金

オプションUSD
既定$0.048 1,000 文字あたり

パラメーター

フィールド型既定値指定できる値説明
text必須string—10,000 文字までThe words to speak. Audio tags such as [whispers] or [sighs] are performed, not read. Billed per 1,000 characters. Up to 10,000 characters; about 5,000 or fewer keeps a long read from being cut off.
voice_id任意stringRogerAdam, Alice, Bella, Bill, Brian, Callum, Charlie, Chris, Daniel, Eric, George, Harry, Jessica, Laura, … (+7)Preset voice.
language任意stringautoauto, af, am, ar, hy, as, ast, az, be, bn, bs, bg, my, yue, … (+78)Language to enforce, as an ISO code, or auto to detect it from the text.
stability任意number0.50〜1How steady the delivery is, 0 to 1. Lower is more expressive and more variable.
similarity_boost任意number0.750〜1How closely the speech follows the selected voice, 0 to 1.
output_format任意stringmp3_44100_128mp3_44100_128, mp3_44100_64, mp3_22050_32, opus_48000_128, pcm_24000, pcm_16000, wav_44100, ulaw_8000, alaw_8000Audio container, sample rate and bitrate. pcm is raw audio without a file header.
text_normalization_mode任意stringautoauto, on, offWhether numbers, dates and abbreviations are spelled out before reading.
clone_strength任意number—0〜1Strength of a professional voice clone, 0 to 1. Has no effect on preset voices.
seed任意integer—0〜4294967295Random seed for controlled comparisons.

リクエスト例

このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。

POST /api/v1/jobs/createTask?wait=60
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask?wait=60" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "elevenlabs/v4-turbo/text-to-speech",
  "input": {
    "text": "Hi there! This voice was created with the PopNow API in just a few seconds."
  }
}'

レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

次に読む

このページの内容