About Qwen3 TTS
Qwen3 TTS is useful behind a character voice panel, guided relaxation app or short spoken update workflow. It combines a required script with a preset voice and optional natural-language instructions. The weather report and meditation examples demonstrate distinct delivery briefs. In an integration, keep those briefs editable and associate each output with the exact script revision so voice assets remain understandable when a project has many takes.
Call it with the model name alibaba/qwen-3-tts/text-to-speech on POST /jobs/createTask, from $0.068.
Introduction
Text and output
Send 1–2,000 characters in text. Each task returns one 24 kHz mono MP3 file. The result does not include word timestamps or subtitles. This endpoint has no output-format selector.
Choosing a voice
voice_id selects one of nine preset voices and defaults to Serena. The descriptions below identify each voice’s character and native language; they do not limit the languages it can read.
Serena— gentle, warm female voice; Chinese.Vivian— bright female voice with a slight edge; Chinese.Uncle_Fu— low, mellow male voice; Chinese.Dylan— youthful male voice; Beijing Mandarin.Eric— lively male voice; Chengdu/Sichuan Chinese.Ryan— energetic, rhythmic male voice; English.Aiden— upbeat male voice; American English.Ono_Anna— light, playful female voice; Japanese.Sohee— warm, expressive female voice; Korean.
Directing the delivery
Use instructions for up to 1,000 characters of delivery guidance, such as “calm, warm and slow-paced.” It directs how text is spoken and is not read aloud. There are no separate numeric speed or pitch controls.
Language
language defaults to auto. The other supported values are zh, en, de, fr, es, it, pt, ru, ja and ko. Set it to the script’s language when auto-detection reads a short or mixed-language passage in the wrong language. Voices can speak across these supported languages; a voice with a matching native language is a useful starting point.
Request parameters
| Parameter | Required | Description |
|---|---|---|
text | Yes | The words to be spoken, exactly as written. |
language | No | The language of the speech. auto · zh · en · de · fr · es · it · pt · ru · ja · ko · Default: auto |
voice_id | No | Pick from the available voices. Serena · Vivian · Uncle_Fu · Dylan · Eric · Ryan · Aiden · Ono_Anna · Sohee · Default: Serena |
instructions | No | How to read the text: mood, distance from the mic, who’s listening. Not read aloud. |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per 1,000 characters |
|---|---|
| Standard | $0.068 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
API quick start
Call the Qwen3 TTS API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model alibaba/qwen-3-tts/text-to-speech and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 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": "alibaba/qwen-3-tts/text-to-speech",
"input": {
"text": "Welcome back. Your files finished rendering a minute ago and are ready to download.",
"voice_id": "Serena",
"language": "auto"
}
}'
# 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"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
What to build with the Qwen3 TTS API
- Create reusable character voice cards containing voice_id, language preference and an instruction sentence. Attach text only when the author requests a take. This preserves the distinction between what a character says and how the character should say it.
- Render short informational updates through an application queue. Group the resulting assets by topic and revision rather than assuming that consecutive responses arrive in submission order. Keep a pending state for each script until its own asynchronous task finishes.
Qwen3 TTS parameter notes
- The text field is required, nonempty and capped at the schema limit. Validate a fully expanded script after inserting names or template variables. A form can look short before interpolation yet exceed the accepted length once your application fills in its content.
- instructions describes tone, emotion or pace and is neither spoken nor billed. Do not put a delivery note at the beginning of text unless you intend it to become dialogue. Keep instruction text within its separate bound and review it when inheriting an older voice card.
- voice_id is a closed enum of named presets with Serena as the default. Treat names such as Ryan and Ono_Anna as exact identifiers, including punctuation and capitalization. The endpoint does not expose an arbitrary voice description field that would create a new preset.
- language accepts auto or a supported language code. Start with detection, then test explicit hints for short lines and choose a voice appropriate to the script. Do not add speed, output_format or sample_rate controls copied from another speech model: this schema exposes text, voice, language and instructions.
How Qwen3 TTS API pricing adds up
The spoken script is charged by character blocks, subject to a minimum billable script length. Very short lines can therefore share the same minimum charge, so splitting every sentence into tiny requests may be inefficient. Instructions do not contribute to that character meter. Read a live quote for the actual text and use the completed costUsd for your application ledger.
- Text to Speech: $0.068 per run, $6.80 for 100 runs
Async jobs, webhooks and rate limits
Every Qwen3 TTS request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for alibaba/qwen-3-tts/text-to-speech never runs or bills twice.
Common Qwen3 TTS API errors
| errorCode | What it usually means and how to fix it |
|---|---|
invalid_request | Check rendered script length, the exact preset name and the language enum. Remove audio export or speed fields inherited from a different speech endpoint before quoting and submitting. |
content_rejected | Show the refusal message beside the affected line and allow an author revision. Keep unrelated approved scripts in the queue rather than repeatedly retrying the rejected content. |
upstream_failed | Record the terminal error with the script revision and request identifier for diagnosis. Offer an intentional retry once the failure has been reviewed. |
Qwen3 TTS API questions
How much does the Qwen3 TTS API cost?
Qwen3 TTS costs $0.068 per 1,000 characters. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What is the model name for Qwen3 TTS in the API?
Put alibaba/qwen-3-tts/text-to-speech for Text to Speech in the model field of POST /jobs/createTask.
How do I reconnect a completed take to a character line?
Persist the taskId together with your own line and revision identifiers. Resolve the generated asset through recordInfo or a verified task callback, then update that specific take in your voice panel.
Will changing instructions increase the text meter?
Instructions are excluded from billing text. They still affect the requested performance, so keep them in the saved payload and obtain a quote for each final request before acceptance.
Can I remove the minimum by requesting a shorter phrase?
No. The published character meter includes a minimum. Quote short scripts as submitted and let your application display the server result rather than extrapolating a smaller charge from visible word count.
What are the limits of the Qwen3 TTS API?
Text length (characters): 2,000; Voices: 9; Languages: 10. Requests outside these limits are rejected before anything is charged.
Can I try Qwen3 TTS without writing code?
Run Qwen3 TTS in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.