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任意 | string | Roger | Adam, Alice, Bella, Bill, Brian, Callum, Charlie, Chris, Daniel, Eric, George, Harry, Jessica, Laura, … (+7) | Preset voice. |
language任意 | string | auto | auto, 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任意 | number | 0.5 | 0〜1 | How steady the delivery is, 0 to 1. Lower is more expressive and more variable. |
similarity_boost任意 | number | 0.75 | 0〜1 | How closely the speech follows the selected voice, 0 to 1. |
output_format任意 | string | mp3_44100_128 | mp3_44100_128, mp3_44100_64, mp3_22050_32, opus_48000_128, pcm_24000, pcm_16000, wav_44100, ulaw_8000, alaw_8000 | Audio container, sample rate and bitrate. pcm is raw audio without a file header. |
text_normalization_mode任意 | string | auto | auto, on, off | Whether numbers, dates and abbreviations are spelled out before reading. |
clone_strength任意 | number | — | 0〜1 | Strength of a professional voice clone, 0 to 1. Has no effect on preset voices. |
seed任意 | integer | — | 0〜4294967295 | Random seed for controlled comparisons. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
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 を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
