PopNowAPI ドキュメント
本文

Qwen-Audio 3.1 TTS Flash API リファレンス

70 種類の声で多言語を素早く読み上げ

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

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

概要

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

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

テキスト読み上げ

alibaba/qwen-audio-3.1-tts-flash/text-to-speech

料金

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

パラメーター

フィールド型既定値指定できる値説明
text必須string—10,000 文字までThe words to speak. Billed per 1,000 characters. Turn on enable_ssml to use SSML tags.
voice_id任意stringEmily_v3.1longanhuan_v3.1, longanlingxin_v3.1, longanfengyue_v3.1, xunanchuan_v3.1, Emily_v3.1, Luna_v3.1, Eric_v3.1, Luca_v3.1, Abby_v3.1, Annie_v3.1, Ava_v3.1, Beth_v3.1, Betty_v3.1, Cally_v3.1, … (+56)Preset voice for this model.
instructions任意string—1,000 文字までHow to read the text: emotion, tone, persona, pace or dialect. Not spoken and not billed.
language任意stringautoauto, zh, en, ja, ko, fr, de, pt, it, vi, idReading language hint, or auto to detect it from the text.
speed任意number10.5〜2Speaking speed from 0.5 to 2.
pitch任意number10.5〜2Pitch from 0.5 to 2.
volume任意integer500〜100Output volume from 0 to 100.
output_format任意stringmp3mp3, wav, pcm, opusAudio encoding. pcm is raw 16-bit audio without a file header.
sample_rate任意integer240008000, 12000, 16000, 22050, 24000, 44100, 48000Sample rate in Hz.
bitrate任意integer—32000, 64000, 96000, 128000, 192000, 256000Opus bit rate in bits per second. Only applies to opus.
enable_ssml任意booleanfalse—Read text as SSML markup.
seed任意integer—0〜65535Random 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": "alibaba/qwen-audio-3.1-tts-flash/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"

次に読む

このページの内容