PopNowAPI Docs
Main content

Qwen-Audio 3.1 TTS Flash API reference

Fast speech in many languages from 70 voices

Call Qwen-Audio 3.1 TTS Flash from your own code with one PopNow API key. Below are the exact model IDs to send, every input field the model accepts, what each request costs in USD, and a request you can paste into a terminal.

At a glance

Made by
Alibaba
Output
Audio
From
$0.00285 USD per 1,000 characters
Typical time
about 23 s

Prices are in USD, charged to your PopNow balance. A task reserves the maximum possible charge when accepted and settles actual usage on completion; any remainder is released. Failed tasks are not charged. Call POST /api/v1/jobs/quote for an exact quote before running.

Text to Speech

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

Price

OptionUSD
Default$0.00285 per 1,000 characters

Parameters

FieldTypeDefaultAllowedWhat it does
textRequiredstring—up to 10,000 charactersThe words to speak. Billed per 1,000 characters. Turn on enable_ssml to use SSML tags.
voice_idOptionalstringEmily_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.
instructionsOptionalstring—up to 1,000 charactersHow to read the text: emotion, tone, persona, pace or dialect. Not spoken and not billed.
languageOptionalstringautoauto, zh, en, ja, ko, fr, de, pt, it, vi, idReading language hint, or auto to detect it from the text.
speedOptionalnumber10.5 to 2Speaking speed from 0.5 to 2.
pitchOptionalnumber10.5 to 2Pitch from 0.5 to 2.
volumeOptionalinteger500 to 100Output volume from 0 to 100.
output_formatOptionalstringmp3mp3, wav, pcm, opusAudio encoding. pcm is raw 16-bit audio without a file header.
sample_rateOptionalinteger240008000, 12000, 16000, 22050, 24000, 44100, 48000Sample rate in Hz.
bitrateOptionalinteger—32000, 64000, 96000, 128000, 192000, 256000Opus bit rate in bits per second. Only applies to opus.
enable_ssmlOptionalbooleanfalse—Read text as SSML markup.
seedOptionalinteger—0 to 65535Random seed for controlled comparisons.

Example request

This request runs as it is; any field you leave out uses its default. Put your key in POPNOW_API_KEY first.

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."
  }
}'

The response carries a taskId straight away. Read the result with GET /api/v1/jobs/recordInfo, or add callBackUrl to be notified.

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"

Next steps

On this page