Qwen Audio 3.1 TTS API, Qwen Audio 3.0 TTS API, Qwen 3.0 ASR Flash API: Pricing, Documentation
by Alibaba
Qwen TTS by Alibaba delivers natural-sounding speech synthesis from text. Through Pixazo's API, developers can convert text into lifelike audio with multilingual support, ideal for voiceovers, virtual assistants, audiobooks, and accessibility applications.

Models Version
Get 10% Cashback on Your First Payment (up to $500)
Add funds and get 10% cashback on your first payment (up to $500).
Qwen Audio 3.1 TTS Plus API Documentation
Studio-quality text to speech for audiobooks, dubbing and brand voices: four flagship voices with natural pacing and expressive detail, steered by plain-language instructions and inline emotion and sound tags. Returns one audio file. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED.
POST https://gateway.pixazo.ai/qwen-audio-3-1-tts-plus/v1/text-to-speechAuthentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Text to Speech - Qwen Audio 3.1 TTS Plus
Request Code
POST https://gateway.pixazo.ai/qwen-audio-3-1-tts-plus/v1/text-to-speech
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"text": "Welcome to Pixazo. [excited]This voice can laugh, whisper and cheer on cue! [laughing]",
"voice": "longanhuan_v3.1",
"instruction": "Speak warmly, like a radio host."
}import requests
url = "https://gateway.pixazo.ai/qwen-audio-3-1-tts-plus/v1/text-to-speech"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"text": "Welcome to Pixazo. [excited]This voice can laugh, whisper and cheer on cue! [laughing]",
"voice": "longanhuan_v3.1",
"instruction": "Speak warmly, like a radio host."
}
resp = requests.post(url, json=data, headers=headers)
print(resp.json())const res = await fetch("https://gateway.pixazo.ai/qwen-audio-3-1-tts-plus/v1/text-to-speech", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
"text": "Welcome to Pixazo. [excited]This voice can laugh, whisper and cheer on cue! [laughing]",
"voice": "longanhuan_v3.1",
"instruction": "Speak warmly, like a radio host."
})
});
console.log(await res.json());curl -X POST 'https://gateway.pixazo.ai/qwen-audio-3-1-tts-plus/v1/text-to-speech' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--data-raw '{"text": "Welcome to Pixazo. [excited]This voice can laugh, whisper and cheer on cue! [laughing]", "voice": "longanhuan_v3.1", "instruction": "Speak warmly, like a radio host."}'Output
{
"request_id": "qwen-audio-3-1-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-1-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Webhook (Optional)
Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.
| Header | Required | Description |
|---|---|---|
| X-Webhook-URL | To enable | HTTPS URL to receive the Webhook callback. |
| X-Webhook-Mode | No | terminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks). |
Callback Payload (success)
{
"request_id": "qwen-audio-3-1-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-audio-3-1-tts-plus",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp3"
],
"media_type": "audio/mpeg"
},
"created_at": "2026-11-13T13:48:18.797Z",
"updated_at": "2026-11-13 13:48:39",
"completed_at": "2026-11-13 13:48:38"
}Failure callback shape
{
"request_id": "qwen-audio-3-1-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen-audio-3-1-tts-plus",
"error": "Generation failed: the request was rejected ('sample_rate' must be one of: 8000, 12000, 16000, 24000, 48000 for opus).",
"output": null,
"created_at": "2026-11-13T13:48:22.281Z",
"updated_at": "2026-11-13 13:48:31",
"completed_at": "2026-11-13 13:48:31"
}Callbacks are idempotent on request_id — de-duplicate on it. Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
text | Yesrequired | string | — | 1 to 20,000 characters |
The words to speak. Emotion and sound tags such as [excited] or [laughing] can be written into it (see below). | ||||
voice | No | string | longanhuan_v3.1 | a voice ID from the list below |
| The voice. | ||||
instruction | No | string | — | up to 500 characters |
How to deliver the text, in plain language, e.g. Speak warmly, like a radio host. Name the language here too when the text is not Chinese or English. | ||||
language | No | string | detected | zh Chinese, en English, fr French, de German, ja Japanese, ko Korean, ru Russian, pt Portuguese, th Thai, id Indonesian, vi Vietnamese, es Spanish, it Italian, ms Malay, fil Filipino, ar Arabic |
The language of text. Set it when numbers, abbreviations or a less common language come out wrong. | ||||
format | No | string | mp3 | mp3, wav, opus |
| Audio format of the result. | ||||
sample_rate | No | integer | 22050 | 8000, 12000, 16000, 22050, 24000, 44100, 48000 (opus: 8000, 12000, 16000, 24000, 48000) |
| Sample rate in Hz. | ||||
speed | No | number | 1 | 0.5 to 2 |
| Speaking rate. | ||||
pitch | No | number | 1 | 0.5 to 2 |
| Pitch. | ||||
volume | No | integer | 50 | 0 to 100 |
| Volume. | ||||
seed | No | integer | 0 | 0 to 65535 |
| With the same text, voice and settings, the same seed gives the same audio. | ||||
How usage is measured
Billed per started block of 1,000 characters of text: a Chinese character (including Japanese kanji and Korean hanja) counts as two, every other character, tags included, as one. Voice, instruction and the other options do not change the price. The rates are in the pricing panel on this page. Nothing is charged for a request that fails.
Parameters not supported
Rejected with 400
Checked when you submit: the request is rejected before it is queued.
| Parameter | Why | Use instead |
|---|---|---|
voice not in the list below | This model has four voices. | one of the four voice IDs |
prompt | The words to speak are sent as text. | text, and instruction for delivery notes |
rate | The speaking rate has its own name here. | speed |
language_hints | One language is set with one code. | language |
n, num_images, number_of_images, batch_size, count, num_outputs | One audio file per request. | One request per file |
Accepted, then the request fails
These pass the submit check, so the submit returns 202, but the request then fails with status: "ERROR" and an error that names the problem. Nothing is charged.
| Parameter | When the request fails |
|---|---|
text | The text cannot be spoken (for example, it has no speakable characters). |
Accepted but ignored
Any other parameter is dropped and has no effect.
Voices
4 voices. voice takes the ID in the first column; the default is longanhuan_v3.1. Every voice speaks Chinese and English and takes instructions and tags.
Flagship voices (4)
| Voice ID | Name | Gender | Language, accent or character |
|---|---|---|---|
longanlingxin_v3.1 | Long An Lingxin | Female | — |
xunanchuan_v3.1 | Xu Nanchuan | Male | — |
longanhuan_v3.1 | Long An Huan | Female | — |
longanfengyue_v3.1 | Long An Fengyue | Female | — |
Timing
A short paragraph usually takes about 5 to 10 seconds from submit to result; 10,000 characters take about a minute to synthesize. Polling the status endpoint every 3 to 5 seconds is enough, or use a Webhook.
Example Request
{
"text": "Welcome to Pixazo. [excited]This voice can laugh, whisper and cheer on cue! [laughing]",
"voice": "longanhuan_v3.1",
"instruction": "Speak warmly, like a radio host."
}Example Response
{
"request_id": "qwen-audio-3-1-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-1-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Request Headers
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | application/json |
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| X-Webhook-URL | No | Enable Webhook callbacks (see Webhook section). |
Response Handling
| Status Code | Meaning |
|---|---|
| 202 | Accepted — request queued; returns request_id and polling_url. |
| 400 | Bad request — the body failed the submit check (see Request Parameters) and was not queued. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance. |
| 403 | Forbidden. |
| 429 | Too many requests. |
| 500 | Internal server error. |
Error Responses
A 400 names every rejected parameter in violations:
{
"error": "Invalid request parameters",
"message": "'voice' must be one of: \"longanlingxin_v3.1\", \"xunanchuan_v3.1\", \"longanhuan_v3.1\", \"longanfengyue_v3.1\" (got \"Emily_v3.1\")",
"violations": [
"'voice' must be one of: \"longanlingxin_v3.1\", \"xunanchuan_v3.1\", \"longanhuan_v3.1\", \"longanfengyue_v3.1\" (got \"Emily_v3.1\")"
]
}Retrieving Results
Poll the status endpoint with the request_id until status is COMPLETED or ERROR, then download the file from output.media_url.
curl 'https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-1-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'Completed response
Captured from a real Qwen Audio 3.1 TTS Plus request at launch; the request id is masked.
{
"request_id": "qwen-audio-3-1-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-audio-3-1-tts-plus",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp3"
],
"media_type": "audio/mpeg"
},
"created_at": "2026-11-13T13:48:18.797Z",
"updated_at": "2026-11-13 13:48:39",
"completed_at": "2026-11-13 13:48:38"
}Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier. |
| status | string | QUEUED, PROCESSING, COMPLETED or ERROR. |
| model_id | string | The model that handled the request. |
| error | string or null | Error message when status is ERROR; otherwise null. |
| output.media_url | array of strings | URL of the audio file (one per request). Download it and keep your own copy. |
| output.media_type | string | audio/mpeg for mp3, audio/wav for wav, audio/ogg for opus. |
| created_at | string | Request creation timestamp. |
| updated_at | string | Last status change timestamp. |
| completed_at | string | Completion timestamp. |
| polling_url | string | Status URL for this request (in the submit response). |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure). Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.
Qwen Audio 3.1 TTS Plus API Pricing
Qwen Audio 3.1 TTS Flash API Documentation
Fast, low-cost text to speech with 139 voices, including British and American English, Chinese dialects and about fifty other languages, steered by plain-language instructions and inline emotion and sound tags. Returns one audio file. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED.
POST https://gateway.pixazo.ai/qwen-audio-3-1-tts-flash/v1/text-to-speechAuthentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Text to Speech - Qwen Audio 3.1 TTS Flash
Request Code
POST https://gateway.pixazo.ai/qwen-audio-3-1-tts-flash/v1/text-to-speech
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"text": "Welcome to Pixazo. One voice, many languages.",
"voice": "Emily_v3.1",
"language": "en"
}import requests
url = "https://gateway.pixazo.ai/qwen-audio-3-1-tts-flash/v1/text-to-speech"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"text": "Welcome to Pixazo. One voice, many languages.",
"voice": "Emily_v3.1",
"language": "en"
}
resp = requests.post(url, json=data, headers=headers)
print(resp.json())const res = await fetch("https://gateway.pixazo.ai/qwen-audio-3-1-tts-flash/v1/text-to-speech", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
"text": "Welcome to Pixazo. One voice, many languages.",
"voice": "Emily_v3.1",
"language": "en"
})
});
console.log(await res.json());curl -X POST 'https://gateway.pixazo.ai/qwen-audio-3-1-tts-flash/v1/text-to-speech' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--data-raw '{"text": "Welcome to Pixazo. One voice, many languages.", "voice": "Emily_v3.1", "language": "en"}'Output
{
"request_id": "qwen-audio-3-1-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-1-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Webhook (Optional)
Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.
| Header | Required | Description |
|---|---|---|
| X-Webhook-URL | To enable | HTTPS URL to receive the Webhook callback. |
| X-Webhook-Mode | No | terminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks). |
Callback Payload (success)
{
"request_id": "qwen-audio-3-1-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-audio-3-1-tts-flash",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp3"
],
"media_type": "audio/mpeg"
},
"created_at": "2026-11-13T13:48:20.004Z",
"updated_at": "2026-11-13 13:48:43",
"completed_at": "2026-11-13 13:48:42"
}Failure callback shape
{
"request_id": "qwen-audio-3-1-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen-audio-3-1-tts-flash",
"error": "Generation failed: the request was rejected (Unknown voice \"nobody_v3.1\" for this model. Use a voice from the documentation's voice list, e.g. longanhuan_v3.1).",
"output": null,
"created_at": "2026-11-13T13:48:22.875Z",
"updated_at": "2026-11-13 13:48:33",
"completed_at": "2026-11-13 13:48:33"
}Callbacks are idempotent on request_id — de-duplicate on it. Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
text | Yesrequired | string | — | 1 to 20,000 characters |
The words to speak. Emotion and sound tags such as [excited] or [laughing] can be written into it (see below). | ||||
voice | No | string | longanhuan_v3.1 | a voice ID from the list below |
| The voice. | ||||
instruction | No | string | — | up to 500 characters |
How to deliver the text, in plain language, e.g. Speak warmly, like a radio host. Name the language here too when the text is not Chinese or English. | ||||
language | No | string | detected | zh Chinese, en English, fr French, de German, ja Japanese, ko Korean, ru Russian, pt Portuguese, th Thai, id Indonesian, vi Vietnamese, es Spanish, it Italian, ms Malay, fil Filipino, ar Arabic |
The language of text. Set it when numbers, abbreviations or a less common language come out wrong. | ||||
format | No | string | mp3 | mp3, wav, opus |
| Audio format of the result. | ||||
sample_rate | No | integer | 22050 | 8000, 12000, 16000, 22050, 24000, 44100, 48000 (opus: 8000, 12000, 16000, 24000, 48000) |
| Sample rate in Hz. | ||||
speed | No | number | 1 | 0.5 to 2 |
| Speaking rate. | ||||
pitch | No | number | 1 | 0.5 to 2 |
| Pitch. | ||||
volume | No | integer | 50 | 0 to 100 |
| Volume. | ||||
seed | No | integer | 0 | 0 to 65535 |
| With the same text, voice and settings, the same seed gives the same audio. | ||||
How usage is measured
Billed by the tokens the model reads and writes: input tokens for text and instruction, and output tokens for the audio, about 12.5 per second of speech at normal speed. speed does not change the output tokens; an instruction that slows the delivery adds some. The rates are in the pricing panel on this page. Nothing is charged for a request that fails.
Parameters not supported
Rejected with 400
Checked when you submit: the request is rejected before it is queued.
| Parameter | Why | Use instead |
|---|---|---|
prompt | The words to speak are sent as text. | text, and instruction for delivery notes |
rate | The speaking rate has its own name here. | speed |
language_hints | One language is set with one code. | language |
n, num_images, number_of_images, batch_size, count, num_outputs | One audio file per request. | One request per file |
Accepted, then the request fails
These pass the submit check, so the submit returns 202, but the request then fails with status: "ERROR" and an error that names the problem. Nothing is charged.
| Parameter | When the request fails |
|---|---|
voice | The voice ID is not in the list below. |
text | The text cannot be spoken (for example, it has no speakable characters). |
Accepted but ignored
Any other parameter is dropped and has no effect.
Voices
139 voices. voice takes the ID in the first column; the default is longanhuan_v3.1. Every voice takes instructions and tags. The multilingual voices also speak the dialects and languages shown; each language voice is made for its language.
Multilingual and dialect voices (4)
| Voice ID | Name | Gender | Language, accent or character |
|---|---|---|---|
longanhuan_v3.1 | Long An Huan | Female | also speaks Chongqing dialect, Ningbo dialect, Korean, Indonesian |
longanlingxin_v3.1 | Long An Lingxin | Female | also speaks Yunnan dialect, Shaanxi dialect, Shanghainese, French, Italian |
longanfengyue_v3.1 | Long An Fengyue | Female | also speaks Northeastern dialect, Vietnamese, Japanese |
xunanchuan_v3.1 | Xu Nanchuan | Male | also speaks Gansu dialect, Northeastern dialect, French, Portuguese |
Premium Chinese voices (42)
| Voice ID | Name | Gender | Language, accent or character |
|---|---|---|---|
yuxiaoyun_v3.1 | Yu Xiaoyun | Female | energetic, friendly, natural |
qiaoxiaojiao_v3.1 | Qiao Xiaojiao | Female | charming, cute |
xiaxiaochen_v3.1 | Xia Xiaochen | Female | energetic, bright |
anmingyuan_v3.1 | An Mingyuan | Male | clear, natural |
wenhuaiqing_v3.1 | Wen Huaiqing | Female | clear, soft |
anxiaolan_v3.1 | An Xiaolan | Female | sweet and clear, pure |
xieshurou_v3.1 | Xie Shurou | Female | soft, natural, intellectual |
baiqinglan_v3.1 | Bai Qinglan | Female | bright, youthful |
xuyuyuan_v3.1 | Xu Yuyuan | Female | intellectual, mature, textured |
anruorou_v3.1 | An Ruorou | Female | breathy, intellectual |
wenhuaizhi_v3.1 | Wen Huaizhi | Female | composed, mature |
xiaoxingzhi_v3.1 | Xiao Xingzhi | Female | dignified, elegant |
guyunshu_v3.1 | Gu Yunshu | Female | mature, composed |
huozhuoshi_v3.1 | Huo Zhuoshi | Male | clear |
yeqinghe_v3.1 | Ye Qinghe | Female | friendly, gentle |
yunhuanhuan_v3.1 | Yun Huanhuan | Female | high-pitched, enthusiastic |
xuxiaoqiao_v3.1 | Xu Xiaoqiao | Female | natural, playful |
baianran_v3.1 | Bai Anran | Female | low-pitched, resonant, breathy |
xuyanchu_v3.1 | Xu Yanchu | Female | steady, magnetic |
yezhiqing_v3.1 | Ye Zhiqing | Female | light, natural |
andi_v3.1 | An Di | Male | American-born Chinese accent |
anyuqing_v3.1 | An Yuqing | Female | sweet female voice |
linxiaoling_v3.1 | Lin Xiaoling | Female | sweet female voice |
longfeifei_v3.1 | Long Feifei | Female | sweet female voice |
longjing_v3.1 | Long Jing | Female | rich, steady |
longqiang_v3.1 | Long Qiang | Female | romantic, charming |
longyan_v3.1 | Long Yan | Female | warm, natural, friendly |
longxiaobai_v3.1 | Long Xiaobai | Female | magnetic, rich |
longyue_v3.1 | Long Yue | Female | warm, magnetic |
longcheng_v3.1 | Long Cheng | Male | wise, magnetic |
longlaotie_v3.1 | Long Laotie | Male | Northeastern Chinese accent, straightforward |
longshao_v3.1 | Long Shao | Male | positive, energetic |
longshu_v3.1 | Long Shu | Male | steady, magnetic |
longze_v3.1 | Long Ze | Male | warm, energetic, natural |
longhao_v3.1 | Long Hao | Male | sentimental, melancholic |
longjin_v3.1 | Long Jin | Male | elegant, gentle |
longnan_v3.1 | Long Nan | Male | insightful |
longshuo_v3.1 | Long Shuo | Male | knowledgeable, businesslike |
longtian_v3.1 | Long Tian | Male | magnetic, rational |
longxiaocheng_v3.1 | Long Xiaocheng | Male | magnetic, low-pitched |
longke_v3.1 | Long Ke | Child | innocent |
loongbella_v3.1 | Bella | Female | also speaks Chinese, English |
Premium English voices (15)
| Voice ID | Name | Gender | Language, accent or character |
|---|---|---|---|
Emily_v3.1 | Emily | Female | British female |
Luna_v3.1 | Luna | Female | British female |
Eric_v3.1 | Eric | Male | British male |
Luca_v3.1 | Luca | Male | British male |
Abby_v3.1 | Abby | Female | American female |
Annie_v3.1 | Annie | Female | American female |
Ava_v3.1 | Ava | Female | American female |
Beth_v3.1 | Beth | Female | American female |
Betty_v3.1 | Betty | Female | American female |
Cally_v3.1 | Cally | Female | American female |
Cindy_v3.1 | Cindy | Female | American female |
Donna_v3.1 | Donna | Female | American female |
Andy_v3.1 | Andy | Male | American male |
Brian_v3.1 | Brian | Male | American male |
David_v3.1 | David | Male | American male |
Additional system voices (27)
| Voice ID | Name | Gender | Language, accent or character |
|---|---|---|---|
longanyuanfei_v3.1 | Long An Yuanfei | Female | Haughty royal consort |
longjielidou_v3.1 | Long Jielidou | Male | Innocent young boy |
longanlingxi_v3.1 | Long An Lingxi | Female | Cute and sweet |
longhuohuo_v3.1 | Long Huohuo | Male | Mischievous teenage boy |
longyingtao_v3.1 | Long Yingtao | Female | Gentle and calm female |
longanya_v3.1 | Long An Ya | Female | Elegant female |
longwan_v3.1 | Long Wan | Female | Delicate and soft female |
longxing_v3.1 | Long Xing | Female | Gentle girl next door |
longhua_v3.1 | Long Hua | Female | Energetic and sweet female |
longhan_v3.1 | Long Han | Male | Warm and devoted male |
longanzhi_v3.1 | Long An Zhi | Male | Wise young adult male |
longzhe_v3.1 | Long Zhe | Male | Reserved and caring male |
longanyang_v3.1 | Long An Yang | Male | Cheerful young man |
libai_v3.1 | Li Bai | Male | Classical poet |
longling_v3.1 | Long Ling | Female | Childlike and reserved female |
longniuniu_v3.1 | Long Niuniu | Male | Cheerful young boy |
longshanshan_v3.1 | Long Shanshan | Male | Theatrical child |
longpaopao_v3.1 | Long Paopao | Female | Bubbly cartoon girl |
loongstella_v3.1 | loongstella | Female | Confident and brisk female |
longyuan_v3.1 | Long Yuan | Female | Warm and soothing female |
longmiao_v3.1 | Long Miao | Female | Expressive female |
longsanshu_v3.1 | Long Sanshu | Male | Steady and textured male |
longanli_v3.1 | Long An Li | Female | Poised and efficient female |
longanwen_v3.1 | Long An Wen | Female | Elegant and intellectual female |
longanlang_v3.1 | Long An Lang | Male | Clear and brisk male |
longxiaoxia_v3.1 | Long Xiaoxia | Female | Steady and authoritative female |
longanchong_v3.1 | Long An Chong | Male | Enthusiastic male salesperson |
Additional language voices (51)
| Voice ID | Name | Gender | Language, accent or character |
|---|---|---|---|
qwen-audio-3.1-tts-flash-zora_bg | Zora | Male | Bulgarian |
qwen-audio-3.1-tts-flash-linde_nl | Linde | Male | Dutch |
qwen-audio-3.1-tts-flash-hajnal_hu | Hajnal | Female | Hungarian |
qwen-audio-3.1-tts-flash-senin_ro | Senin | Male | Romanian |
qwen-audio-3.1-tts-flash-birk_da | Birk | Male | Danish |
qwen-audio-3.1-tts-flash-lipa_hr | Lipa | Male | Croatian |
qwen-audio-3.1-tts-flash-avgi_el | Avgi | Male | Greek |
qwen-audio-3.1-tts-flash-jitrenka_cs | Jitrenka | Male | Czech |
qwen-audio-3.1-tts-flash-solglimt_nn | Solglimt | Male | Norwegian |
qwen-audio-3.1-tts-flash-glimma_sv | Glimma | Female | Swedish |
qwen-audio-3.1-tts-flash-svar_hi | Svar | Male | Hindi |
qwen-audio-3.1-tts-flash-iskra_sk | Iskra | Female | Slovak |
qwen-audio-3.1-tts-flash-aava_fi | Aava | Male | Finnish |
qwen-audio-3.1-tts-flash-sahar_ur | Sahar | Male | Urdu |
qwen-audio-3.1-tts-flash-jasna_sr | Jasna | Male | Serbian |
qwen-audio-3.1-tts-flash-brisa_es_mx | Brisa | Female | Mexican Spanish |
qwen-audio-3.1-tts-flash-ausra_lt | Ausra | Male | Lithuanian |
qwen-audio-3.1-tts-flash-rasa_lv | Rasa | Female | Latvian |
qwen-audio-3.1-tts-flash-deniz_tr | Deniz | Male | Turkish |
qwen-audio-3.1-tts-flash-ava_fa | Ava | Male | Persian |
qwen-audio-3.1-tts-flash-or_he | Or | Male | Hebrew |
qwen-audio-3.1-tts-flash-ayalguu_mn | Ayalguu | Male | Mongolian |
qwen-audio-3.1-tts-flash-zarja_sl | Zarja | Male | Slovenian |
qwen-audio-3.1-tts-flash-ishiq_az | Ishiq | Male | Azerbaijani |
qwen-audio-3.1-tts-flash-zorza_pl | Zorza | Male | Polish |
qwen-audio-3.1-tts-flash-alba_ca | Alba | Male | Catalan |
qwen-audio-3.1-tts-flash-romduol_km | Romduol | Male | Khmer |
qwen-audio-3.1-tts-flash-aurora_pt_br | Aurora | Male | Brazilian Portuguese |
qwen-audio-3.1-tts-flash-dao_lo | Dao | Male | Lao |
qwen-audio-3.1-tts-flash-tsiskari_ka | Tsiskari | Male | Georgian |
qwen-audio-3.1-tts-flash-lente_af | Lente | Female | Afrikaans |
qwen-audio-3.1-tts-flash-kiran_ne | Kiran | Male | Nepali |
qwen-audio-3.1-tts-flash-zorka_be | Zorka | Female | Belarusian |
qwen-audio-3.1-tts-flash-nilaav_ml | Nilaav | Female | Malayalam |
qwen-audio-3.1-tts-flash-staer_lb | Staer | Female | Luxembourgish |
qwen-audio-3.1-tts-flash-drita_sq | Drita | Male | Albanian |
qwen-audio-3.1-tts-flash-nila_ta | Nila | Female | Tamil |
qwen-audio-3.1-tts-flash-aruna_si | Aruna | Male | Sinhala |
qwen-audio-3.1-tts-flash-vennela_te | Vennela | Male | Telugu |
qwen-audio-3.1-tts-flash-sade_et | Sade | Female | Estonian |
qwen-audio-3.1-tts-flash-bituon_ceb | Bituon | Male | Cebuano |
qwen-audio-3.1-tts-flash-vedrina_bs | Vedrina | Female | Bosnian |
qwen-audio-3.1-tts-flash-layaung_my | LaYaung | Male | Burmese |
qwen-audio-3.1-tts-flash-luys_hy | Luys | Female | Armenian |
qwen-audio-3.1-tts-flash-lumen_la | Lumen | Male | Latin |
qwen-audio-3.1-tts-flash-birta_is | Birta | Male | Icelandic |
qwen-audio-3.1-tts-flash-zerniq_mt | Zerniq | Female | Maltese |
qwen-audio-3.1-tts-flash-nuru_sw | Nuru | Female | Swahili |
qwen-audio-3.1-tts-flash-arai_kk | Arai | Male | Kazakh |
qwen-audio-3.1-tts-flash-zetwal_crs | Zetwal | Female | Seychellois Creole |
qwen-audio-3.1-tts-flash-zoria_uk | Zoria | Male | Ukrainian |
Timing
A short paragraph usually takes about 5 to 10 seconds from submit to result; 10,000 characters take about a minute to synthesize. Polling the status endpoint every 3 to 5 seconds is enough, or use a Webhook.
Example Request
{
"text": "Welcome to Pixazo. One voice, many languages.",
"voice": "Emily_v3.1",
"language": "en"
}Example Response
{
"request_id": "qwen-audio-3-1-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-1-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Request Headers
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | application/json |
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| X-Webhook-URL | No | Enable Webhook callbacks (see Webhook section). |
Response Handling
| Status Code | Meaning |
|---|---|
| 202 | Accepted — request queued; returns request_id and polling_url. |
| 400 | Bad request — the body failed the submit check (see Request Parameters) and was not queued. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance. |
| 403 | Forbidden. |
| 429 | Too many requests. |
| 500 | Internal server error. |
Error Responses
A 400 names every rejected parameter in violations:
{
"error": "Invalid request parameters",
"message": "'speed' must be <= 2 (got 3)",
"violations": [
"'speed' must be <= 2 (got 3)"
]
}Retrieving Results
Poll the status endpoint with the request_id until status is COMPLETED or ERROR, then download the file from output.media_url.
curl 'https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-1-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'Completed response
Captured from a real Qwen Audio 3.1 TTS Flash request at launch; the request id is masked.
{
"request_id": "qwen-audio-3-1-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-audio-3-1-tts-flash",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp3"
],
"media_type": "audio/mpeg"
},
"created_at": "2026-11-13T13:48:20.004Z",
"updated_at": "2026-11-13 13:48:43",
"completed_at": "2026-11-13 13:48:42"
}Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier. |
| status | string | QUEUED, PROCESSING, COMPLETED or ERROR. |
| model_id | string | The model that handled the request. |
| error | string or null | Error message when status is ERROR; otherwise null. |
| output.media_url | array of strings | URL of the audio file (one per request). Download it and keep your own copy. |
| output.media_type | string | audio/mpeg for mp3, audio/wav for wav, audio/ogg for opus. |
| created_at | string | Request creation timestamp. |
| updated_at | string | Last status change timestamp. |
| completed_at | string | Completion timestamp. |
| polling_url | string | Status URL for this request (in the submit response). |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure). Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.
Qwen Audio 3.1 TTS Flash API Pricing
| Billed per 1M tokens | Price (USD) |
|---|---|
| Input text, per 1M tokens | $0.2415 |
| Output audio, per 1M tokens (about 12.5 tokens per second of speech) | $1.9635 |
Qwen Audio 3.1 TTS-Next API Documentation
Generate a complete audio scene in one pass from a written description: narration, multi-speaker dialogue, podcasts and audio drama, with sound effects and ambience such as rain, footsteps or a crowd, in Chinese or English. Up to three short recordings can lend their voices to the speakers. Returns one audio file. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED.
POST https://gateway.pixazo.ai/qwen-audio-3-1-tts-next/v1/text-to-audioAuthentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Text to Audio - Qwen Audio 3.1 TTS-Next
Request Code
POST https://gateway.pixazo.ai/qwen-audio-3-1-tts-next/v1/text-to-audio
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"prompt": "Two people talk in a quiet room, no background sound. Anna, a woman with a bright voice, says: \"Have you tried the new voice models yet?\" Ben, a man with a deep, calm voice, replies: \"Yes. They sound amazing, and they were easy to set up.\"",
"channels": 1
}import requests
url = "https://gateway.pixazo.ai/qwen-audio-3-1-tts-next/v1/text-to-audio"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"prompt": "Two people talk in a quiet room, no background sound. Anna, a woman with a bright voice, says: \"Have you tried the new voice models yet?\" Ben, a man with a deep, calm voice, replies: \"Yes. They sound amazing, and they were easy to set up.\"",
"channels": 1
}
resp = requests.post(url, json=data, headers=headers)
print(resp.json())const res = await fetch("https://gateway.pixazo.ai/qwen-audio-3-1-tts-next/v1/text-to-audio", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
"prompt": "Two people talk in a quiet room, no background sound. Anna, a woman with a bright voice, says: \"Have you tried the new voice models yet?\" Ben, a man with a deep, calm voice, replies: \"Yes. They sound amazing, and they were easy to set up.\"",
"channels": 1
})
});
console.log(await res.json());curl -X POST 'https://gateway.pixazo.ai/qwen-audio-3-1-tts-next/v1/text-to-audio' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--data-raw '{"prompt": "Two people talk in a quiet room, no background sound. Anna, a woman with a bright voice, says: \"Have you tried the new voice models yet?\" Ben, a man with a deep, calm voice, replies: \"Yes. They sound amazing, and they were easy to set up.\"", "channels": 1}'Output
{
"request_id": "qwen-audio-3-1-tts-next_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-1-tts-next_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Webhook (Optional)
Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.
| Header | Required | Description |
|---|---|---|
| X-Webhook-URL | To enable | HTTPS URL to receive the Webhook callback. |
| X-Webhook-Mode | No | terminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks). |
Callback Payload (success)
{
"request_id": "qwen-audio-3-1-tts-next_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-audio-3-1-tts-next",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-tts-next_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp3"
],
"media_type": "audio/mpeg"
},
"created_at": "2026-11-13T13:48:21.758Z",
"updated_at": "2026-11-13 13:48:56",
"completed_at": "2026-11-13 13:48:55"
}Failure callback shape
{
"request_id": "qwen-audio-3-1-tts-next_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen-audio-3-1-tts-next",
"error": "Generation failed: Reference audio 1 could not be downloaded (HTTP 404)",
"output": null,
"created_at": "2026-11-13T13:48:23.395Z",
"updated_at": "2026-11-13 13:49:00",
"completed_at": "2026-11-13 13:49:00"
}Callbacks are idempotent on request_id — de-duplicate on it. Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
prompt | Yesrequired | string | — | 1 to 3,000 characters |
| What to generate: the scene, the speakers and their voices, the lines in quotes, and the sounds (see Writing the prompt). | ||||
reference_audio_urls | No | array of strings | — | 1 to 3 public http(s) URLs; WAV, MP3 or OGG Opus; each up to 30 seconds and 10 MB |
Voices to use. Name them in prompt as @voice1, @voice2 and @voice3, in list order. | ||||
format | No | string | mp3 | mp3, wav |
| Audio format of the result. | ||||
sample_rate | No | integer | 48000 | 8000, 16000, 24000, 44100, 48000 |
| Sample rate in Hz. | ||||
channels | No | integer | 2 | 1 (mono), 2 (stereo) |
| Channels. | ||||
speed | No | number | 1 | 0.5 to 2 |
| Speech rate. | ||||
volume | No | integer | 50 | 0 to 100 |
| Volume. | ||||
seed | No | integer | — | 0 to 2147483647 |
| Seed; results can still vary between requests. | ||||
How usage is measured
Billed by tokens: input tokens for prompt and for each reference recording (about 240 per second of recording), and output tokens for the generated audio, 200 per second. A 20-second scene is about 4,000 output tokens. speed does not change the billed length. The rates are in the pricing panel on this page. Nothing is charged for a request that fails.
Parameters not supported
Rejected with 400
Checked when you submit: the request is rejected before it is queued.
| Parameter | Why | Use instead |
|---|---|---|
text | The whole scene is described in one prompt. | prompt |
text_prompt | The description has its own name here. | prompt |
voice | Voices come from reference recordings, not voice IDs. | reference_audio_urls and @voice1 in the prompt |
duration | The length follows the content. | describe the length in prompt |
prompt naming @voice2 with one reference | Every @voiceN needs its recording. | send that many reference_audio_urls |
n, num_images, number_of_images, batch_size, count, num_outputs | One audio file per request. | One request per file |
Accepted, then the request fails
These pass the submit check, so the submit returns 202, but the request then fails with status: "ERROR" and an error that names the problem. Nothing is charged.
| Parameter | When the request fails |
|---|---|
reference_audio_urls | A recording cannot be downloaded, is larger than 10 MB or longer than 30 seconds, or is not WAV, MP3 or OGG Opus. |
prompt | The prompt or a recording is refused by content moderation. |
Accepted but ignored
Any other parameter is dropped and has no effect.
Writing the prompt
Describe everything you want to hear in one prompt, keeping spoken lines apart from directions:
| Element | Example |
|---|---|
| Task | “An opening exchange between two podcast hosts” or “An audio drama scene in the rain” |
| Speakers and voices | “Anna has a bright voice; Ben has a deep, calm voice” |
| Lines | Put every spoken line in quotes and say who speaks it |
| Delivery | “whispers”, “sounds surprised”, “pauses briefly” |
| Background and effects | “Rain on the window, quiet page turns indoors” |
| Transitions | “Footsteps approach before she speaks” |
Keep names consistent and avoid conflicting directions. Words outside the quotes can sometimes be spoken (a prompt starting @voice1 says cheerfully: was read aloud as “Cheerfully.”), so keep directions short. A scene can run up to 120 seconds, or 240 seconds for a podcast; describe the length you want. Results vary between requests with the same prompt.
Multi-speaker scenes work best short. Give each speaker a clearly different voice (for example a high young voice and a deep older one): without reference recordings the model can still give two speakers similar voices, and long scenes with several reference recordings can come back with lines changed or left out. Listen to the result before you use it.
Timing
Generation runs at about the speed of the audio: a short scene usually takes about 25 to 60 seconds from submit to result, a full four-minute podcast several minutes. Polling the status endpoint every 5 to 10 seconds is enough, or use a Webhook.
Example Request
{
"prompt": "Two people talk in a quiet room, no background sound. Anna, a woman with a bright voice, says: \"Have you tried the new voice models yet?\" Ben, a man with a deep, calm voice, replies: \"Yes. They sound amazing, and they were easy to set up.\"",
"channels": 1
}Example Response
{
"request_id": "qwen-audio-3-1-tts-next_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-1-tts-next_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Request Headers
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | application/json |
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| X-Webhook-URL | No | Enable Webhook callbacks (see Webhook section). |
Response Handling
| Status Code | Meaning |
|---|---|
| 202 | Accepted — request queued; returns request_id and polling_url. |
| 400 | Bad request — the body failed the submit check (see Request Parameters) and was not queued. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance. |
| 403 | Forbidden. |
| 429 | Too many requests. |
| 500 | Internal server error. |
Error Responses
A 400 names every rejected parameter in violations:
{
"error": "Invalid request parameters",
"message": "'voice' is not supported: send up to 3 reference_audio_urls and name them @voice1, @voice2 and @voice3 in prompt.",
"violations": [
"'voice' is not supported: send up to 3 reference_audio_urls and name them @voice1, @voice2 and @voice3 in prompt."
]
}Retrieving Results
Poll the status endpoint with the request_id until status is COMPLETED or ERROR, then download the file from output.media_url.
curl 'https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-1-tts-next_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'Completed response
Captured from a real Qwen Audio 3.1 TTS-Next request at launch; the request id is masked.
{
"request_id": "qwen-audio-3-1-tts-next_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-audio-3-1-tts-next",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-tts-next_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.mp3"
],
"media_type": "audio/mpeg"
},
"created_at": "2026-11-13T13:48:21.758Z",
"updated_at": "2026-11-13 13:48:56",
"completed_at": "2026-11-13 13:48:55"
}Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier. |
| status | string | QUEUED, PROCESSING, COMPLETED or ERROR. |
| model_id | string | The model that handled the request. |
| error | string or null | Error message when status is ERROR; otherwise null. |
| output.media_url | array of strings | URL of the audio file (one per request). Download it and keep your own copy. |
| output.media_type | string | audio/mpeg for mp3, audio/wav for wav. |
| created_at | string | Request creation timestamp. |
| updated_at | string | Last status change timestamp. |
| completed_at | string | Completion timestamp. |
| polling_url | string | Status URL for this request (in the submit response). |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure). Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.
Qwen Audio 3.1 TTS-Next API Pricing
| Billed per 1M tokens | Price (USD) |
|---|---|
| Input (prompt and reference audio), per 1M tokens | $0.9765 |
| Output audio, per 1M tokens (200 tokens per second of audio) | $1.9635 |
Qwen Audio 3.1 ASR Flash API Documentation
Transcribe recordings of up to 5 minutes in 59 languages and Chinese dialects, with speaker labels, sentence and word timings, built-in cleanup of fillers and repetitions, hot words and dialect-preserving output. Returns the transcript as a JSON file. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED.
POST https://gateway.pixazo.ai/qwen-audio-3-1-asr-flash/v1/speech-to-textAuthentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Speech to Text - Qwen Audio 3.1 ASR Flash
Request Code
POST https://gateway.pixazo.ai/qwen-audio-3-1-asr-flash/v1/speech-to-text
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-tts-next_01a1d52a-9b53-7c13-6d2c-6c7ff4322af9b/output.mp3",
"diarization": true,
"hot_words": [
"Pixazo"
]
}import requests
url = "https://gateway.pixazo.ai/qwen-audio-3-1-asr-flash/v1/speech-to-text"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-tts-next_01a1d52a-9b53-7c13-6d2c-6c7ff4322af9b/output.mp3",
"diarization": True,
"hot_words": [
"Pixazo"
]
}
resp = requests.post(url, json=data, headers=headers)
print(resp.json())const res = await fetch("https://gateway.pixazo.ai/qwen-audio-3-1-asr-flash/v1/speech-to-text", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-tts-next_01a1d52a-9b53-7c13-6d2c-6c7ff4322af9b/output.mp3",
"diarization": true,
"hot_words": [
"Pixazo"
]
})
});
console.log(await res.json());curl -X POST 'https://gateway.pixazo.ai/qwen-audio-3-1-asr-flash/v1/speech-to-text' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--data-raw '{"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-tts-next_01a1d52a-9b53-7c13-6d2c-6c7ff4322af9b/output.mp3", "diarization": true, "hot_words": ["Pixazo"]}'Output
{
"request_id": "qwen-audio-3-1-asr-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-1-asr-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Webhook (Optional)
Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.
| Header | Required | Description |
|---|---|---|
| X-Webhook-URL | To enable | HTTPS URL to receive the Webhook callback. |
| X-Webhook-Mode | No | terminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks). |
Callback Payload (success)
{
"request_id": "qwen-audio-3-1-asr-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-audio-3-1-asr-flash",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-asr-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.json"
],
"media_type": "application/json"
},
"created_at": "2026-11-13T13:49:07.732Z",
"updated_at": "2026-11-13 13:49:24",
"completed_at": "2026-11-13 13:49:23"
}Failure callback shape
{
"request_id": "qwen-audio-3-1-asr-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen-audio-3-1-asr-flash",
"error": "Generation failed: audio_url has no audio the speech service can read",
"output": null,
"created_at": "2026-11-13T13:48:24.541Z",
"updated_at": "2026-11-13 13:48:53",
"completed_at": "2026-11-13 13:48:53"
}Callbacks are idempotent on request_id — de-duplicate on it. Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
audio_url | Yesrequired | string | — | a public http(s) URL; audio or video (aac, amr, avi, flac, flv, m4a, mkv, mov, mp3, mp4, mpeg, ogg, opus, wav, webm, wma, wmv); up to 5 minutes |
| The recording to transcribe. | ||||
format | No | string | from the URL's extension | 17 valuesaac, amr, avi, flac, flv, m4a, mkv, mov, mp3, mp4, mpeg, ogg, opus, wav, webm, wma, wmv |
| The file's format; needed when the URL has no extension. | ||||
language | No | string | detected | one code from the list below |
| The language spoken. Setting it can improve accuracy. | ||||
languages | No | array of strings | detected | 1 to 4 codes |
For recordings that mix languages. Send language or languages, not both. | ||||
diarization | No | boolean | false | true, false |
Label who is speaking: each sentence and word gets a speaker_id. | ||||
keep_dialect | No | boolean | false | true, false |
| Keep Chinese dialect expressions as spoken instead of writing standard Mandarin. | ||||
hot_words | No | array of strings, or object | — | up to 500 words of 1 to 50 characters; weights 1 to 5, or 50 |
Names and terms to listen for, e.g. ["Pixazo", "Qwen"], or with a weight per word, e.g. {"Pixazo": 5}. | ||||
context | No | string | — | up to 400 characters |
| Background text, such as the topic or a word list, that helps with domain terms. | ||||
How usage is measured
Billed by tokens: input tokens for the audio, about 12.5 per second, and output tokens for the transcript text. Options do not change the rates. The rates are in the pricing panel on this page. Nothing is charged for a request that fails.
Parameters not supported
Rejected with 400
Checked when you submit: the request is rejected before it is queued.
| Parameter | Why | Use instead |
|---|---|---|
language with languages | Two ways to set the same thing. | one of them |
speaker_count | Supported only by the long-file model. | qwen-audio-3-1-asr-flash-filetrans |
duration | The charge follows the audio itself. | nothing; leave it out |
prompt | This model takes no free-text prompt. | hot_words and context |
language_hints | Languages have their own names here. | language or languages |
n, num_images, number_of_images, batch_size, count, num_outputs | One file per request. | One request per file |
Accepted, then the request fails
These pass the submit check, so the submit returns 202, but the request then fails with status: "ERROR" and an error that names the problem. Nothing is charged.
| Parameter | When the request fails |
|---|---|
audio_url | The file cannot be downloaded, has no audio the model can read, or is longer than 5 minutes. |
audio_url | No speech is found, for example speech over loud music, or singing. |
language | The code is not in the list below. |
Accepted but ignored
Any other parameter is dropped and has no effect.
Transcript file
output.media_url is a JSON file: text (the whole transcript), sentences (each with begin_time and end_time in milliseconds, text, a words list with the same timings, and with diarization a speaker_id), and duration (the audio length in seconds). This one came from the example request above, shortened to its first sentence and three words:
{
"text": "Have you tried the new voice models yet?Yes. They sound amazing, and they were easy to set up.",
"sentences": [
{
"speaker_id": 0,
"begin_time": 960,
"end_time": 2480,
"text": "Have you tried the new voice models yet?",
"words": [
{
"text": "Have",
"begin_time": 960,
"end_time": 1112,
"punctuation": "",
"speaker_id": 0
},
{
"text": " you",
"begin_time": 1112,
"end_time": 1264,
"punctuation": "",
"speaker_id": 0
},
{
"text": " tried",
"begin_time": 1264,
"end_time": 1492,
"punctuation": "",
"speaker_id": 0
}
]
}
],
"duration": 5
}Languages
Chinese covers Mandarin and dialects such as Cantonese, Wu, Hokkien, Hakka and Sichuanese. Codes for language and languages: zh Chinese, en English, ja Japanese, ko Korean, vi Vietnamese, th Thai, id Indonesian, ms Malay, tl Filipino, hi Hindi, ar Arabic, fr French, de German, es Spanish, pt Portuguese, ru Russian, it Italian, nl Dutch, sv Swedish, da Danish, fi Finnish, no Norwegian, el Greek, pl Polish, cs Czech, hu Hungarian, ro Romanian, bg Bulgarian, hr Croatian, sk Slovak, tr Turkish, fa Persian, mr Marathi, ml Malayalam, ne Nepali, ky Kyrgyz, az Azerbaijani, ka Georgian, hy Armenian, sl Slovenian, sq Albanian, et Estonian, lv Latvian, lt Lithuanian, ca Catalan, eu Basque, gl Galician, or Odia, dv Divehi, as Assamese, ku Kurdish, tig Tigre, fy Western Frisian, ba Bashkir, be Belarusian, tt Tatar, ia Interlingua, mhr Eastern Mari, tok Toki Pona.
Timing
A short clip usually takes about 10 to 30 seconds from submit to result; transcription runs much faster than the audio plays. Polling the status endpoint every 3 to 5 seconds is enough, or use a Webhook.
Example Request
{
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-tts-next_01a1d52a-9b53-7c13-6d2c-6c7ff4322af9b/output.mp3",
"diarization": true,
"hot_words": [
"Pixazo"
]
}Example Response
{
"request_id": "qwen-audio-3-1-asr-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-1-asr-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Request Headers
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | application/json |
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| X-Webhook-URL | No | Enable Webhook callbacks (see Webhook section). |
Response Handling
| Status Code | Meaning |
|---|---|
| 202 | Accepted — request queued; returns request_id and polling_url. |
| 400 | Bad request — the body failed the submit check (see Request Parameters) and was not queued. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance. |
| 403 | Forbidden. |
| 429 | Too many requests. |
| 500 | Internal server error. |
Error Responses
A 400 names every rejected parameter in violations:
{
"error": "Invalid request parameters",
"message": "Send 'language' or 'languages', not both.",
"violations": [
"Send 'language' or 'languages', not both."
]
}Retrieving Results
Poll the status endpoint with the request_id until status is COMPLETED or ERROR, then download the file from output.media_url.
curl 'https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-1-asr-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'Completed response
Captured from a real Qwen Audio 3.1 ASR Flash request at launch; the request id is masked.
{
"request_id": "qwen-audio-3-1-asr-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-audio-3-1-asr-flash",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-asr-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.json"
],
"media_type": "application/json"
},
"created_at": "2026-11-13T13:49:07.732Z",
"updated_at": "2026-11-13 13:49:24",
"completed_at": "2026-11-13 13:49:23"
}Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier. |
| status | string | QUEUED, PROCESSING, COMPLETED or ERROR. |
| model_id | string | The model that handled the request. |
| error | string or null | Error message when status is ERROR; otherwise null. |
| output.media_url | array of strings | URL of the transcript JSON file (one per request). |
| output.media_type | string | application/json. |
| created_at | string | Request creation timestamp. |
| updated_at | string | Last status change timestamp. |
| completed_at | string | Completion timestamp. |
| polling_url | string | Status URL for this request (in the submit response). |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure). Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.
Qwen Audio 3.1 ASR Flash API Pricing
| Billed per 1M tokens | Price (USD) |
|---|---|
| Input audio, per 1M tokens (about 12.5 tokens per second of audio) | $0.1575 |
| Output text, per 1M tokens | $0.4935 |
Qwen Audio 3.1 ASR Flash Filetrans API Documentation
Transcribe long recordings, up to 12 hours, in 59 languages and Chinese dialects, with speaker labels, sentence and word timings, hot words and dialect-preserving output. Returns the transcript as a JSON file. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED.
POST https://gateway.pixazo.ai/qwen-audio-3-1-asr-flash-filetrans/v1/speech-to-textAuthentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Speech to Text - Qwen Audio 3.1 ASR Flash Filetrans
Request Code
POST https://gateway.pixazo.ai/qwen-audio-3-1-asr-flash-filetrans/v1/speech-to-text
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-tts-next_01a1d52a-9b53-7c13-6d2c-6c7ff4322af9b/output.mp3",
"diarization": true,
"speaker_count": 2
}import requests
url = "https://gateway.pixazo.ai/qwen-audio-3-1-asr-flash-filetrans/v1/speech-to-text"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-tts-next_01a1d52a-9b53-7c13-6d2c-6c7ff4322af9b/output.mp3",
"diarization": True,
"speaker_count": 2
}
resp = requests.post(url, json=data, headers=headers)
print(resp.json())const res = await fetch("https://gateway.pixazo.ai/qwen-audio-3-1-asr-flash-filetrans/v1/speech-to-text", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-tts-next_01a1d52a-9b53-7c13-6d2c-6c7ff4322af9b/output.mp3",
"diarization": true,
"speaker_count": 2
})
});
console.log(await res.json());curl -X POST 'https://gateway.pixazo.ai/qwen-audio-3-1-asr-flash-filetrans/v1/speech-to-text' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--data-raw '{"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-tts-next_01a1d52a-9b53-7c13-6d2c-6c7ff4322af9b/output.mp3", "diarization": true, "speaker_count": 2}'Output
{
"request_id": "qwen-audio-3-1-asr-flash-filetrans_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-1-asr-flash-filetrans_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Webhook (Optional)
Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.
| Header | Required | Description |
|---|---|---|
| X-Webhook-URL | To enable | HTTPS URL to receive the Webhook callback. |
| X-Webhook-Mode | No | terminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks). |
Callback Payload (success)
{
"request_id": "qwen-audio-3-1-asr-flash-filetrans_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-audio-3-1-asr-flash-filetrans",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-asr-flash-filetrans_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.json"
],
"media_type": "application/json"
},
"created_at": "2026-11-13T13:49:08.348Z",
"updated_at": "2026-11-13 13:49:30",
"completed_at": "2026-11-13 13:49:29"
}Failure callback shape
{
"request_id": "qwen-audio-3-1-asr-flash-filetrans_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen-audio-3-1-asr-flash-filetrans",
"error": "Generation failed: Transcription failed",
"output": null,
"created_at": "2026-11-13T13:48:25.780Z",
"updated_at": "2026-11-13 13:48:41",
"completed_at": "2026-11-13 13:48:41"
}Callbacks are idempotent on request_id — de-duplicate on it. Respond 200 within a few seconds; the Webhook endpoint must be HTTPS.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
audio_url | Yesrequired | string | — | a public http(s) URL; audio or video (aac, amr, avi, flac, flv, m4a, mkv, mov, mp3, mp4, mpeg, ogg, opus, wav, webm, wma, wmv); up to 12 hours and 2 GB |
| The recording to transcribe. | ||||
language | No | string | detected | one code from the list below |
| The language spoken. Setting it can improve accuracy. | ||||
languages | No | array of strings | detected | 1 to 4 codes |
For recordings that mix languages. Send language or languages, not both. | ||||
diarization | No | boolean | false | true, false |
Label who is speaking: each sentence and word gets a speaker_id. Needs mono audio; keep diarized files under 2 hours. | ||||
speaker_count | No | integer | detected | 2 to 100 |
Expected number of speakers, a hint for diarization; needs diarization: true. | ||||
keep_dialect | No | boolean | false | true, false |
| Keep Chinese dialect expressions as spoken instead of writing standard Mandarin. | ||||
hot_words | No | array of strings, or object | — | up to 500 words of 1 to 50 characters; weights 1 to 5, or 50 |
Names and terms to listen for, e.g. ["Pixazo", "Qwen"], or with a weight per word, e.g. {"Pixazo": 5}. | ||||
context | No | string | — | up to 400 characters |
| Background text, such as the topic or a word list, that helps with domain terms. | ||||
How usage is measured
Billed by tokens: input tokens for the audio, about 12.5 per second plus a few per file, and output tokens for the transcript text. Options do not change the rates. The rates are in the pricing panel on this page. Nothing is charged for a request that fails.
Parameters not supported
Rejected with 400
Checked when you submit: the request is rejected before it is queued.
| Parameter | Why | Use instead |
|---|---|---|
language with languages | Two ways to set the same thing. | one of them |
speaker_count | Needs diarization: true. | diarization: true |
duration | The charge follows the audio itself. | nothing; leave it out |
prompt | This model takes no free-text prompt. | hot_words and context |
language_hints | Languages have their own names here. | language or languages |
n, num_images, number_of_images, batch_size, count, num_outputs | One file per request. | One request per file |
Accepted, then the request fails
These pass the submit check, so the submit returns 202, but the request then fails with status: "ERROR" and an error that names the problem. Nothing is charged.
| Parameter | When the request fails |
|---|---|
audio_url | The file cannot be downloaded, has no audio the model can read, or is longer than 12 hours. |
audio_url | No speech is found, for example speech over loud music, or singing. |
language | The code is not in the list below. |
Accepted but ignored
Any other parameter is dropped and has no effect.
Transcript file
output.media_url is a JSON file: text (the whole transcript), sentences (each with begin_time and end_time in milliseconds, text, a words list with the same timings, and with diarization a speaker_id), plus channel_id when the file has several channels, and duration (the audio length in seconds). This one came from the example request above, shortened to its first sentence and three words:
{
"text": "Have you tried the new voice models yet? Yes, they sound amazing and they were easy to set up.",
"sentences": [
{
"speaker_id": 0,
"begin_time": 1010,
"end_time": 2370,
"text": "Have you tried the new voice models yet?",
"words": [
{
"text": "Have",
"begin_time": 1010,
"end_time": 1170,
"punctuation": ""
},
{
"text": " you",
"begin_time": 1170,
"end_time": 1250,
"punctuation": ""
},
{
"text": " tried",
"begin_time": 1250,
"end_time": 1410,
"punctuation": ""
}
]
}
],
"duration": 5.3
}Languages
Chinese covers Mandarin and dialects such as Cantonese, Wu, Hokkien, Hakka and Sichuanese. Codes for language and languages: zh Chinese, en English, ja Japanese, ko Korean, vi Vietnamese, th Thai, id Indonesian, ms Malay, tl Filipino, hi Hindi, ar Arabic, fr French, de German, es Spanish, pt Portuguese, ru Russian, it Italian, nl Dutch, sv Swedish, da Danish, fi Finnish, no Norwegian, el Greek, pl Polish, cs Czech, hu Hungarian, ro Romanian, bg Bulgarian, hr Croatian, sk Slovak, tr Turkish, fa Persian, mr Marathi, ml Malayalam, ne Nepali, ky Kyrgyz, az Azerbaijani, ka Georgian, hy Armenian, sl Slovenian, sq Albanian, et Estonian, lv Latvian, lt Lithuanian, ca Catalan, eu Basque, gl Galician, or Odia, dv Divehi, as Assamese, ku Kurdish, tig Tigre, fy Western Frisian, ba Bashkir, be Belarusian, tt Tatar, ia Interlingua, mhr Eastern Mari, tok Toki Pona.
Timing
A short clip usually takes about 5 to 15 seconds from submit to result; transcription runs much faster than the audio plays, but long files can take minutes. Polling every 15 to 30 seconds is enough for long files, or use a Webhook.
Example Request
{
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-tts-next_01a1d52a-9b53-7c13-6d2c-6c7ff4322af9b/output.mp3",
"diarization": true,
"speaker_count": 2
}Example Response
{
"request_id": "qwen-audio-3-1-asr-flash-filetrans_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-1-asr-flash-filetrans_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Request Headers
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | application/json |
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| X-Webhook-URL | No | Enable Webhook callbacks (see Webhook section). |
Response Handling
| Status Code | Meaning |
|---|---|
| 202 | Accepted — request queued; returns request_id and polling_url. |
| 400 | Bad request — the body failed the submit check (see Request Parameters) and was not queued. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance. |
| 403 | Forbidden. |
| 429 | Too many requests. |
| 500 | Internal server error. |
Error Responses
A 400 names every rejected parameter in violations:
{
"error": "Invalid request parameters",
"message": "'speaker_count' needs diarization: true.",
"violations": [
"'speaker_count' needs diarization: true."
]
}Retrieving Results
Poll the status endpoint with the request_id until status is COMPLETED or ERROR, then download the file from output.media_url.
curl 'https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-1-asr-flash-filetrans_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'Completed response
Captured from a real Qwen Audio 3.1 ASR Flash Filetrans request at launch; the request id is masked.
{
"request_id": "qwen-audio-3-1-asr-flash-filetrans_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-audio-3-1-asr-flash-filetrans",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-audio-3-1-asr-flash-filetrans_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.json"
],
"media_type": "application/json"
},
"created_at": "2026-11-13T13:49:08.348Z",
"updated_at": "2026-11-13 13:49:30",
"completed_at": "2026-11-13 13:49:29"
}Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier. |
| status | string | QUEUED, PROCESSING, COMPLETED or ERROR. |
| model_id | string | The model that handled the request. |
| error | string or null | Error message when status is ERROR; otherwise null. |
| output.media_url | array of strings | URL of the transcript JSON file (one per request). |
| output.media_type | string | application/json. |
| created_at | string | Request creation timestamp. |
| updated_at | string | Last status change timestamp. |
| completed_at | string | Completion timestamp. |
| polling_url | string | Status URL for this request (in the submit response). |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or ERROR (failure). Treat any status other than QUEUED, PROCESSING or COMPLETED as a failure.
Qwen Audio 3.1 ASR Flash Filetrans API Pricing
| Billed per 1M tokens | Price (USD) |
|---|---|
| Input audio, per 1M tokens (about 12.5 tokens per second of audio) | $0.1575 |
| Output text, per 1M tokens | $0.4935 |
Qwen Audio 3.0 TTS Plus API Documentation
POST https://gateway.pixazo.ai/qwen-audio-3-0-tts-plus/v1/text-to-speech
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Text to Speech - Qwen Audio 3.0 TTS Plus
Request Code
POST https://gateway.pixazo.ai/qwen-audio-3-0-tts-plus/v1/text-to-speech
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"text": "Welcome to the show. Today we explore the mysteries of deep space and the stories hidden among the stars.",
"voice": "longanlingxin",
"format": "mp3",
"sample_rate": 22050
}
import requests
url = "https://gateway.pixazo.ai/qwen-audio-3-0-tts-plus/v1/text-to-speech"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"text": "Welcome to the show. Today we explore the mysteries of deep space and the stories hidden among the stars.",
"voice": "longanlingxin",
"format": "mp3",
"sample_rate": 22050
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/qwen-audio-3-0-tts-plus/v1/text-to-speech';
const data = {
text: "Welcome to the show. Today we explore the mysteries of deep space and the stories hidden among the stars.",
voice: "longanlingxin",
format: "mp3",
sample_rate: 22050
};
fetch(url, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
},
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -X POST "https://gateway.pixazo.ai/qwen-audio-3-0-tts-plus/v1/text-to-speech" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"text": "Welcome to the show. Today we explore the mysteries of deep space and the stories hidden among the stars.",
"voice": "longanlingxin",
"format": "mp3",
"sample_rate": 22050
}'
Output
{
"request_id": "qwen-audio-3-0-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-0-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the status-poll response shown under Retrieving Results below. Example terminal callback (mode terminal):
{
"request_id": "qwen-audio-3-0-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-audio-3-0-tts-plus",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/qwen-audio-3-0-tts-plus/1721597258-a1b2c3d4.mp3"
],
"media_type": "audio/mpeg"
},
"created_at": "2026-07-22T10:00:00.000Z",
"updated_at": "2026-07-22 10:00:08",
"completed_at": "2026-07-22 10:00:08"
}
Failure callback shape
{
"request_id": "qwen-audio-3-0-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen-audio-3-0-tts-plus",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Request Parameters - Text to Speech - Qwen Audio 3.0 TTS Plus
| Field | Type | Required | Default | Allowed values / range |
|---|---|---|---|---|
text | string | Yesrequired | — | — |
| The text to synthesize into speech. Must be non-empty. | ||||
voice | string | No | longanlingxin | longanlingxin, longanlufeng (see Voices table) |
Voice ID for synthesis. Passing a Qwen Audio 3.0 TTS Flash voice (e.g. longanhuan_v3.6) will be rejected. | ||||
format | string | No | mp3 | mp3, wav, pcm |
| Audio output format. | ||||
sample_rate | integer | No | 22050 | up to 48000 |
| Output sample rate in Hz (up to 48000). | ||||
Billed $0.035 per 1,000 characters of input text (rounded up per 1,000-character block, minimum one block). The chosen voice, format and sample rate do not affect the price.
Voices - Qwen Audio 3.0 TTS Plus
Pass one of these as the voice parameter. Each voice supports Chinese (Mandarin) and English. Voices are not interchangeable between Qwen Audio 3.0 TTS Plus and Qwen Audio 3.0 TTS Flash.
Voice (voice) | Name | Languages |
|---|---|---|
longanlingxin | Longan Lingxin — default | Chinese (Mandarin), English |
longanlufeng | Longan Lufeng | Chinese (Mandarin), English |
Minimum Request
{
"text": "Welcome to the show. Today we explore the mysteries of deep space and the stories hidden among the stars."
}
Full Request (all options)
{
"text": "Welcome to the show. Today we explore the mysteries of deep space and the stories hidden among the stars.",
"voice": "longanlingxin",
"format": "mp3",
"sample_rate": 22050
}
Response
{
"request_id": "qwen-audio-3-0-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-0-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | Your API subscription key |
Response Handling
Common status codes for Qwen Audio 3.0 TTS Plus Text to Speech.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'qwen-audio-3-0-tts-plus' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "qwen-audio-3-0-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen-audio-3-0-tts-plus",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-0-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "qwen-audio-3-0-tts-plus_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-audio-3-0-tts-plus",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/qwen-audio-3-0-tts-plus/1721597258-a1b2c3d4.mp3"
],
"media_type": "audio/mpeg"
},
"created_at": "2026-07-22T10:00:00.000Z",
"updated_at": "2026-07-22T10:00:08.000Z",
"completed_at": "2026-07-22T10:00:08.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to the generated MP3 audio (R2 CDN) |
| output.media_type | string | MIME type of the output (audio/mpeg) |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Qwen Audio 3.0 TTS Plus API Pricing
Qwen Audio 3.0 TTS Flash API Documentation
POST https://gateway.pixazo.ai/qwen-audio-3-0-tts-flash/v1/text-to-speech
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Text to Speech - Qwen Audio 3.0 TTS Flash
Request Code
POST https://gateway.pixazo.ai/qwen-audio-3-0-tts-flash/v1/text-to-speech
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"text": "Welcome to the show. Today we explore the mysteries of deep space and the stories hidden among the stars.",
"voice": "longanhuan_v3.6",
"format": "mp3",
"sample_rate": 22050
}
import requests
url = "https://gateway.pixazo.ai/qwen-audio-3-0-tts-flash/v1/text-to-speech"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"text": "Welcome to the show. Today we explore the mysteries of deep space and the stories hidden among the stars.",
"voice": "longanhuan_v3.6",
"format": "mp3",
"sample_rate": 22050
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/qwen-audio-3-0-tts-flash/v1/text-to-speech';
const data = {
text: "Welcome to the show. Today we explore the mysteries of deep space and the stories hidden among the stars.",
voice: "longanhuan_v3.6",
format: "mp3",
sample_rate: 22050
};
fetch(url, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
},
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -X POST "https://gateway.pixazo.ai/qwen-audio-3-0-tts-flash/v1/text-to-speech" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"text": "Welcome to the show. Today we explore the mysteries of deep space and the stories hidden among the stars.",
"voice": "longanhuan_v3.6",
"format": "mp3",
"sample_rate": 22050
}'
Output
{
"request_id": "qwen-audio-3-0-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-0-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the status-poll response shown under Retrieving Results below. Example terminal callback (mode terminal):
{
"request_id": "qwen-audio-3-0-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-audio-3-0-tts-flash",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/qwen-audio-3-0-tts-flash/1721597258-a1b2c3d4.mp3"
],
"media_type": "audio/mpeg"
},
"created_at": "2026-07-22T10:00:00.000Z",
"updated_at": "2026-07-22 10:00:08",
"completed_at": "2026-07-22 10:00:08"
}
Failure callback shape
{
"request_id": "qwen-audio-3-0-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen-audio-3-0-tts-flash",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Request Parameters - Text to Speech - Qwen Audio 3.0 TTS Flash
| Field | Type | Required | Default | Allowed values / range |
|---|---|---|---|---|
text | string | Yesrequired | — | — |
| The text to synthesize into speech. Must be non-empty. | ||||
voice | string | No | longanhuan_v3.6 | longanfengyue, longanyuanfei, longanlingxi, longanxiaoxin, longanhuan_v3.6, longjielidou_v3.6, longpaopao_v3.6, longhuohuo_v3.6, longchuanshu_v3.6, loongmary, loongeva_v3.6, loongjohn (see Voices table) |
Voice ID for synthesis. Passing a Qwen Audio 3.0 TTS Plus voice (e.g. longanlingxin) will be rejected. | ||||
format | string | No | mp3 | mp3, wav, pcm |
| Audio output format. | ||||
sample_rate | integer | No | 22050 | up to 48000 |
| Output sample rate in Hz (up to 48000). | ||||
Billed $0.03 per 1,000 characters of input text (rounded up per 1,000-character block, minimum one block). The chosen voice, format and sample rate do not affect the price.
Voices - Qwen Audio 3.0 TTS Flash
Pass one of these as the voice parameter. Each voice supports Chinese (Mandarin) and English; the loong* voices are English-focused. Voices are not interchangeable between Qwen Audio 3.0 TTS Flash and Qwen Audio 3.0 TTS Plus.
Voice (voice) | Name | Languages |
|---|---|---|
longanfengyue | Longan Fengyue | Chinese (Mandarin), English |
longanyuanfei | Longan Yuanfei | Chinese (Mandarin), English |
longanlingxi | Longan Lingxi | Chinese (Mandarin), English |
longanxiaoxin | Longan Xiaoxin | Chinese (Mandarin), English |
longanhuan_v3.6 | Longan Huan — default | Chinese (Mandarin), English |
longjielidou_v3.6 | Longjie Lidou | Chinese (Mandarin), English |
longpaopao_v3.6 | Long Paopao | Chinese (Mandarin), English |
longhuohuo_v3.6 | Long Huohuo | Chinese (Mandarin), English |
longchuanshu_v3.6 | Long Chuanshu | Chinese (Mandarin), English |
loongmary | loongmary | English |
loongeva_v3.6 | loongeva | English |
loongjohn | loongJohn | English |
Minimum Request
{
"text": "Welcome to the show. Today we explore the mysteries of deep space and the stories hidden among the stars."
}
Full Request (all options)
{
"text": "Welcome to the show. Today we explore the mysteries of deep space and the stories hidden among the stars.",
"voice": "longanhuan_v3.6",
"format": "mp3",
"sample_rate": 22050
}
Response
{
"request_id": "qwen-audio-3-0-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-0-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | Your API subscription key |
Response Handling
Common status codes for Qwen Audio 3.0 TTS Flash Text to Speech.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'qwen-audio-3-0-tts-flash' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "qwen-audio-3-0-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen-audio-3-0-tts-flash",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/qwen-audio-3-0-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "qwen-audio-3-0-tts-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-audio-3-0-tts-flash",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/qwen-audio-3-0-tts-flash/1721597258-a1b2c3d4.mp3"
],
"media_type": "audio/mpeg"
},
"created_at": "2026-07-22T10:00:00.000Z",
"updated_at": "2026-07-22T10:00:08.000Z",
"completed_at": "2026-07-22T10:00:08.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to the generated MP3 audio (R2 CDN) |
| output.media_type | string | MIME type of the output (audio/mpeg) |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Qwen Audio 3.0 TTS Flash API Pricing
Qwen 3.0 TTS API Documentation
https://gateway.pixazo.ai/qwen3-tts-1-7b-api-401/v1/qwen3-tts-1-7b-api-request
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Qwen3-TTS 1.7B API check status - Qwen3-TTS 1.7B API
Request Code
POST https://gateway.pixazo.ai/qwen3-tts-1-7b-api-401/v1/qwen3-tts-1-7b-api-request-result
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"text": "Welcome to Pixazo. This speech was generated with Qwen3-TTS.",
"voice": "Ryan",
"language": "English"
}
import requests
url = "https://gateway.pixazo.ai/qwen3-tts-1-7b-api-401/v1/qwen3-tts-1-7b-api-request-result"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"text": "Welcome to Pixazo. This speech was generated with Qwen3-TTS.",
"voice": "Ryan",
"language": "English"
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/qwen3-tts-1-7b-api-401/v1/qwen3-tts-1-7b-api-request-result';
const data = {
text: 'Welcome to Pixazo. This speech was generated with Qwen3-TTS.',
voice: 'Ryan',
language: 'English'
};
fetch(url, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Cache-Control': 'no-cache',
'Ocp-Apim-Subscription-Key': 'YOUR_SUBSCRIPTION_KEY'
},
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -X POST "https://gateway.pixazo.ai/qwen3-tts-1-7b-api-401/v1/qwen3-tts-1-7b-api-request-result" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"text": "Welcome to Pixazo. This speech was generated with Qwen3-TTS.",
"voice": "Ryan",
"language": "English"
}'
Output
{
"request_id": "qwen3-tts-1-7b-api-401_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen3-tts-1-7b-api-401_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "qwen3-tts-1-7b-api-401_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen3-tts-1-7b-api-401",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen3-tts-1-7b-api-401_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.wav"
],
"media_type": "audio/wav"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "qwen3-tts-1-7b-api-401_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen3-tts-1-7b-api-401",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Request Parameters - Qwen3-TTS 1.7B API check status
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
text | Yesrequired | string | — | — |
| The text to be converted to speech. Longer text takes proportionally longer to synthesize. | ||||
voice | No | string | Ryan | Vivian, Serena, Uncle_Fu, Dylan, Eric, Ryan, Aiden, Ono_Anna, Sohee |
Pre-trained voice used for synthesis; each voice is tuned for a primary language. Ignored when speaker_voice_embedding_file_url is supplied. If you send neither a voice nor a speaker embedding, the gateway applies Ryan. | ||||
language | No | string | Auto | Auto, English, Chinese, Spanish, French, German, Italian, Japanese, Korean, Portuguese, Russian |
Language of the spoken output. Auto detects the language from text. | ||||
prompt | No | string | — | — |
| Optional style instruction for the delivery, e.g. "Very happy." Ignored when a speaker embedding is supplied. | ||||
speaker_voice_embedding_file_url | No | string (URL) | — | Public HTTPS URL to a .safetensors file from qwen-3-tts-clone-voice-1-7b |
URL of a speaker-embedding file produced by qwen-3-tts-clone-voice-1-7b. When set, the cloned voice is used instead of voice. The embedding must come from the matching 1.7B cloner. We publish two clone-voice endpoints and they are not interchangeable: an embedding from qwen-3-tts-clone-voice-0-6b is built for a different model size and is rejected with invalid_speaker_embedding_error. | ||||
reference_text | No | string | — | — |
| The text that was spoken in the reference audio used to create the speaker embedding. Providing it improves quality when synthesizing with a cloned voice. | ||||
temperature | No | number | 0.9 | 0 to 1 |
| Sampling temperature. Higher values make the delivery more varied; lower values make it more deterministic. | ||||
top_k | No | integer | 50 | 0 or greater |
| Top-k sampling: how many of the highest-probability tokens are considered at each step. | ||||
top_p | No | number | 1 | 0 to 1 |
| Nucleus sampling threshold; only tokens within this cumulative probability are considered. | ||||
repetition_penalty | No | number | 1.05 | 0 or greater |
| Penalty applied to repeated tokens/codes. Raise it to reduce stuttering or repeated sounds. | ||||
max_new_tokens | No | integer | 200 | 1 to 8192 |
| Maximum number of new codec tokens to generate; caps the length of the generated audio. | ||||
subtalker_dosample | No | boolean | true | true, false |
Enables sampling for the sub-talker stage. Set to false for greedy, more deterministic decoding. | ||||
subtalker_temperature | No | number | 0.9 | 0 to 1 |
| Sampling temperature for the sub-talker stage. | ||||
subtalker_top_k | No | integer | 50 | 0 or greater |
| Top-k sampling parameter for the sub-talker stage. | ||||
subtalker_top_p | No | number | 1 | 0 to 1 |
| Top-p (nucleus) sampling parameter for the sub-talker stage. | ||||
Example Request
{
"text": "Welcome to Pixazo. This speech was generated with Qwen3-TTS.",
"voice": "Ryan",
"language": "English"
}
Response
{
"request_id": "qwen3-tts-1-7b-api-401_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen3-tts-1-7b-api-401_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | YOUR_SUBSCRIPTION_KEY |
Response Handling
Common status codes.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 402 | Insufficient Balance |
| 403 | Forbidden |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'qwen3-tts-1-7b-api-401' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "qwen3-tts-1-7b-api-401_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen3-tts-1-7b-api-401",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/qwen3-tts-1-7b-api-401_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "qwen3-tts-1-7b-api-401_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen3-tts-1-7b-api-401",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen3-tts-1-7b-api-401_019dxxxx-xxxx/output.ext"
],
"media_type": "application/octet-stream"
},
"created_at": "2026-03-31T10:00:00.000Z",
"updated_at": "2026-03-31T10:00:15.000Z",
"completed_at": "2026-03-31T10:00:15.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Qwen 3.0 TTS API Pricing
Qwen 3.0 ASR Flash API Documentation
Transcribe audio into text with automatic language detection across 11 languages and Chinese dialects, plus speaker emotion detection. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED. The transcript is returned as a JSON file.
POST https://gateway.pixazo.ai/qwen3-asr-flash/v1/speech-to-textAuthentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Speech to Text - Qwen 3.0 ASR Flash
Request Code
POST https://gateway.pixazo.ai/qwen3-asr-flash/v1/speech-to-text
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"language": "en",
"context": "Acme Corp, Dr. Yamada, quarterly earnings"
}import requests
url = "https://gateway.pixazo.ai/qwen3-asr-flash/v1/speech-to-text"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"language": "en",
"context": "Acme Corp, Dr. Yamada, quarterly earnings"
}
resp = requests.post(url, json=data, headers=headers)
print(resp.json())const res = await fetch("https://gateway.pixazo.ai/qwen3-asr-flash/v1/speech-to-text", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"language": "en",
"context": "Acme Corp, Dr. Yamada, quarterly earnings"
})
});
console.log(await res.json());curl -X POST 'https://gateway.pixazo.ai/qwen3-asr-flash/v1/speech-to-text' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--data-raw '{"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3", "language": "en", "context": "Acme Corp, Dr. Yamada, quarterly earnings"}'Output
{
"request_id": "qwen3-asr-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen3-asr-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Webhook (Optional)
Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.
| Header | Required | Description |
|---|---|---|
| X-Webhook-URL | To enable | HTTPS URL to receive the Webhook callback. |
| X-Webhook-Mode | No | terminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks). |
Example: enable Webhook
curl -X POST 'https://gateway.pixazo.ai/qwen3-asr-flash/v1/speech-to-text' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
-H 'X-Webhook-URL: https://your-server.com/webhook' \
--data-raw '{"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3", "language": "en", "context": "Acme Corp, Dr. Yamada, quarterly earnings"}'Callback Payload (success)
{
"request_id": "qwen3-asr-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen3-asr-flash",
"output": {
"media_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.json",
"media_type": "application/json"
},
"created_at": "2026-07-31T11:34:16.102Z",
"completed_at": "2026-07-31T11:34:20.123Z"
}Failure callback shape
{
"request_id": "qwen3-asr-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen3-asr-flash",
"error": "Description of the failure"
}Delivery semantics
- terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
- sync mode: a Webhook callback on each status change.
- Callbacks are idempotent on
request_id— de-duplicate on it. - Respond
200within a few seconds; the Webhook endpoint must be HTTPS.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
audio_url | Yesrequired | string | — | http(s) URL, file up to 10 MB |
| Public URL of the audio to transcribe. The file is fetched by the gateway, so the URL must be reachable without authentication. | ||||
language | No | string | — (auto-detected) | ISO language code, e.g. en, zh, ja |
| Optional language hint. Omit it and the model detects the language automatically — the detected language is returned in the transcript either way. | ||||
context | No | string | — | free text |
| Names, product terms, acronyms or jargon that appear in the audio. Biases recognition towards this vocabulary, which improves accuracy on proper nouns and domain terminology. | ||||
format | No | string | from file extension | wav, mp3, pcm, opus, speex, aac, amr, m4a, flac, ogg, webm |
Container format of the audio. Derived from the audio_url file extension; supply it explicitly when the URL has no recognisable extension. | ||||
enable_itn | No | boolean | false | true, false |
| Inverse text normalization — render spoken numbers, dates and amounts as digits. Chinese and English only. | ||||
sample_rate | No | integer | — | e.g. 16000 |
Sample rate in Hz. Only needed for raw pcm input, which carries no header. | ||||
Audio limits
- The audio file must be at most 10 MB. Larger files are rejected before transcription starts.
audio_urlmust be anhttporhttpsURL and must be publicly reachable.- Cost scales with the length of the audio (see Pricing).
Transcript Format
The completed request returns output.media_url, a JSON file containing the transcript. Fetch that URL to read the result.
{
"text": "Senior staff, Principal Doris Jackson, Wakefield faculty, and of course my fellow classmates. I am honored to have been chosen to speak today.",
"language": "en",
"emotion": "happy",
"duration": 17
}| Field | Type | Description |
|---|---|---|
| text | string | The full transcript, with punctuation and capitalisation. |
| language | string | Detected language code, e.g. en or zh. Returned whether or not you supplied a hint. |
| emotion | string | Detected speaker emotion, e.g. happy or neutral. |
| duration | number | Length of the transcribed audio in seconds. This is the quantity you are billed on. |
This model returns a whole-transcript result. Word-level timestamps are not available.
Example Request
{
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"language": "en",
"context": "Acme Corp, Dr. Yamada, quarterly earnings"
}Example Response
{
"request_id": "qwen3-asr-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen3-asr-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Request Headers
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | application/json |
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| X-Webhook-URL | No | Enable Webhook callbacks (see Webhook section). |
Response Handling
| Status Code | Meaning |
|---|---|
| 202 | Accepted — request queued; returns request_id and polling_url. |
| 400 | Bad request — missing audio_url, a non-http(s) URL, or an audio format that could not be determined from the URL and was not supplied. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance. |
| 429 | Too many requests. |
| 500 | Internal server error. |
An unreachable audio_url, an oversized file, or audio containing no detectable speech is reported through the status endpoint as status: "ERROR", not as a synchronous error. Failed requests are not billed.
Retrieving Results
Poll the status endpoint with the request_id from the submit response until status is COMPLETED (or FAILED/ERROR), then fetch output.media_url for the transcript.
curl 'https://gateway.pixazo.ai/v2/requests/status/qwen3-asr-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'Completed response
{
"request_id": "qwen3-asr-flash_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen3-asr-flash",
"output": {
"media_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.json",
"media_type": "application/json"
},
"created_at": "2026-07-31T11:34:16.102Z",
"completed_at": "2026-07-31T11:34:20.123Z"
}Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier. |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR. |
| model_id | string | The model that handled the request. |
| output.media_url | string | URL of the transcript JSON file. |
| output.media_type | string | application/json. |
| created_at | string | Request creation timestamp. |
| completed_at | string | Completion timestamp. |
| error | string | Error message when status is FAILED/ERROR. |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or FAILED/ERROR (failure).
Pricing
Billed at $0.00282 per minute of audio ($0.1692 per audio hour), rounded up to the next whole minute. Billing is based on the length of the audio you submit, not on the size of the transcript.
| Audio length | Billed minutes | Cost |
|---|---|---|
| 20 seconds | 1 | $0.00282 |
| 90 seconds | 2 | $0.00564 |
| 10 minutes | 10 | $0.0282 |
| 1 hour | 60 | $0.1692 |
A hold is placed when the request is submitted, because the audio length is not known until transcription completes. The hold is reduced to the real cost once the duration is known, and released in full if the request fails.
Qwen 3.0 ASR Flash API Pricing
Qwen 3.0 ASR Flash Filetrans API Documentation
Transcribe long audio and video — up to 2 GB and 12 hours per file — with automatic language detection, per-sentence emotion and sentence-level timestamps. Asynchronous: submit returns a request_id; poll the status endpoint until the request is COMPLETED. The transcript is returned as a JSON file.
POST https://gateway.pixazo.ai/qwen3-asr-flash-filetrans/v1/speech-to-textAuthentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Speech to Text - Qwen 3.0 ASR Flash Filetrans
Request Code
POST https://gateway.pixazo.ai/qwen3-asr-flash-filetrans/v1/speech-to-text
Content-Type: application/json
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"duration": 3600
}import requests
url = "https://gateway.pixazo.ai/qwen3-asr-flash-filetrans/v1/speech-to-text"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"duration": 3600
}
resp = requests.post(url, json=data, headers=headers)
print(resp.json())const res = await fetch("https://gateway.pixazo.ai/qwen3-asr-flash-filetrans/v1/speech-to-text", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify({
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"duration": 3600
})
});
console.log(await res.json());curl -X POST 'https://gateway.pixazo.ai/qwen3-asr-flash-filetrans/v1/speech-to-text' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--data-raw '{"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3", "duration": 3600}'Output
{
"request_id": "qwen3-asr-flash-filetrans_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen3-asr-flash-filetrans_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Webhook (Optional)
Instead of polling, you can receive a Webhook callback when the request reaches a terminal state. Provide a Webhook URL via header on the submit request.
| Header | Required | Description |
|---|---|---|
| X-Webhook-URL | To enable | HTTPS URL to receive the Webhook callback. |
| X-Webhook-Mode | No | terminal (default, one callback on COMPLETED/ERROR) or sync (per-poll callbacks). |
Example: enable Webhook
curl -X POST 'https://gateway.pixazo.ai/qwen3-asr-flash-filetrans/v1/speech-to-text' \
-H 'Content-Type: application/json' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
-H 'X-Webhook-URL: https://your-server.com/webhook' \
--data-raw '{"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3", "duration": 3600}'Callback Payload (success)
{
"request_id": "qwen3-asr-flash-filetrans_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen3-asr-flash-filetrans",
"output": {
"media_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.json",
"media_type": "application/json"
},
"created_at": "2026-07-31T11:34:16.102Z",
"completed_at": "2026-07-31T11:34:20.123Z"
}Failure callback shape
{
"request_id": "qwen3-asr-flash-filetrans_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen3-asr-flash-filetrans",
"error": "Description of the failure"
}Delivery semantics
- terminal mode: one Webhook callback when the request is COMPLETED or ERROR.
- sync mode: a Webhook callback on each status change.
- Callbacks are idempotent on
request_id— de-duplicate on it. - Respond
200within a few seconds; the Webhook endpoint must be HTTPS.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
audio_url | Yesrequired | string | — | http(s) URL, file up to 2 GB / 12 hours |
| Public URL of the audio or video file to transcribe. The file is fetched by the speech service directly, so the URL must remain publicly reachable, without authentication, until the job finishes. | ||||
duration | No | integer | 12 hours | 1 – 43200 (seconds) |
| Length of the audio in seconds. Optional, and it never changes what you are charged — you are always billed on the speech the model actually finds. Supplying it reserves only what the job will cost instead of the 12-hour maximum, which matters when your balance is low. | ||||
Audio limits
- Up to 2 GB and 12 hours per file.
- Audio and video are both accepted:
mp3,wav,m4a,flac,ogg,opus,aac,amr,wma,mp4,mkv,mov,avi,flv,webm,wmv,mpeg. Audio is extracted from video automatically. audio_urlmust be anhttporhttpsURL. Unlike the short-form endpoint, the file is not copied to our storage first — it is read straight from your URL, which must stay reachable for the whole job.- Cost scales with the length of the speech in the audio (see Pricing).
Transcript Format
The completed request returns output.media_url, a JSON file containing the transcript. Fetch that URL to read the result.
{
"text": "Merry Christmas to all, and to all a good night!",
"language": "en",
"emotion": "happy",
"duration": 6,
"audio_info": {
"format": "mp3",
"sample_rate": 44100
},
"sentences": [
{
"sentence_id": 0,
"begin_time": 0,
"end_time": 6250,
"language": "en",
"emotion": "happy",
"text": "Merry Christmas to all, and to all a good night!"
}
]
}| Field | Type | Description |
|---|---|---|
| text | string | The full transcript, with punctuation and capitalisation. |
| language | string | Detected language code, e.g. en or zh. Returned whether or not you supplied a hint. |
| emotion | string | Detected speaker emotion, e.g. happy or neutral. |
| duration | number | Seconds of speech found in the audio, excluding silence. This is the quantity you are billed on. |
| audio_info | object | Detected container format and sample_rate of the source file. |
| sentences | array | Sentence-level segments: {sentence_id, begin_time, end_time, language, emotion, text}, with times in milliseconds. |
Sentences carry their own language and emotion, so mixed-language recordings are labelled per sentence rather than per file.
Example Request
{
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"duration": 3600
}Example Response
{
"request_id": "qwen3-asr-flash-filetrans_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen3-asr-flash-filetrans_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Request Headers
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | application/json |
| Ocp-Apim-Subscription-Key | Yes | Your API subscription key. |
| X-Webhook-URL | No | Enable Webhook callbacks (see Webhook section). |
Response Handling
| Status Code | Meaning |
|---|---|
| 202 | Accepted — request queued; returns request_id and polling_url. |
| 400 | Bad request — missing audio_url, a non-http(s) URL, or a file larger than 2 GB. |
| 401 | Unauthorized — missing or invalid subscription key. |
| 402 | Insufficient balance. |
| 429 | Too many requests. |
| 500 | Internal server error. |
An unreachable audio_url, an oversized file, or audio containing no detectable speech is reported through the status endpoint as status: "ERROR", not as a synchronous error. Failed requests are not billed.
Retrieving Results
Poll the status endpoint with the request_id from the submit response until status is COMPLETED (or FAILED/ERROR), then fetch output.media_url for the transcript.
curl 'https://gateway.pixazo.ai/v2/requests/status/qwen3-asr-flash-filetrans_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' \
-H 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY'Completed response
{
"request_id": "qwen3-asr-flash-filetrans_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen3-asr-flash-filetrans",
"output": {
"media_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/{request_id}/output.json",
"media_type": "application/json"
},
"created_at": "2026-07-31T11:34:16.102Z",
"completed_at": "2026-07-31T11:34:20.123Z"
}Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier. |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR. |
| model_id | string | The model that handled the request. |
| output.media_url | string | URL of the transcript JSON file. |
| output.media_type | string | application/json. |
| created_at | string | Request creation timestamp. |
| completed_at | string | Completion timestamp. |
| error | string | Error message when status is FAILED/ERROR. |
Status Values & Flow
QUEUED → PROCESSING → COMPLETED (success) or FAILED/ERROR (failure).
Pricing
Billed at $0.00282 per minute of speech ($0.1692 per hour), rounded up to the next whole minute. Billing counts only the speech in the file — silence, music and dead air are excluded, so a sparse recording costs less than its wall-clock length.
| Audio length | Billed minutes | Cost |
|---|---|---|
| 20 seconds of speech | 1 | $0.00282 |
| 10 minutes of speech | 10 | $0.0282 |
| 1 hour of speech | 60 | $0.1692 |
| 12 hours of speech | 720 | $2.0304 |
A hold is placed when the request is submitted, because the amount of speech is not known until transcription completes. Without a duration hint the hold is the 12-hour maximum ($2.0304); supplying duration reserves only what the job will cost. Either way the hold is reduced to the real cost on completion, and released in full if the request fails.
Qwen 3.0 ASR Flash Filetrans API Pricing
Qwen 3.0 ASR Flash Realtime API Documentation
Live speech-to-text over a WebSocket. Stream audio as it is captured and receive transcripts as the words arrive — partial results while someone is still speaking, then a final result per utterance with detected language and emotion. Built for live captions, voice agents and dictation.
WSS wss://asr-stream.pixazo.ai/v1/streamThis is a streaming API, so unlike our other speech-to-text models there is no submit-and-poll cycle and no request_id. The connection is the request.
Authentication
Pass your subscription key either as a query parameter or as a header. The query form exists because browsers cannot set headers on a WebSocket connection.
wss://asr-stream.pixazo.ai/v1/stream?key=YOUR_SUBSCRIPTION_KEY&language=en| Method | Where | Use when |
|---|---|---|
?key= | query string | Browser clients |
| Ocp-Apim-Subscription-Key | header | Server-side clients |
Treat a key in a URL with the same care as any other credential — it can appear in proxy and browser logs. For public-facing pages, proxy the connection through your own backend rather than shipping the key to the browser.
Speech to Text (Streaming) - Qwen 3.0 ASR Flash Realtime
Client Code
const ws = new WebSocket(
"wss://asr-stream.pixazo.ai/v1/stream?key=" + encodeURIComponent(PIXAZO_API_KEY)
);
ws.onopen = () => {
ws.send(JSON.stringify({
type: "session.update",
session: {
modalities: ["text"],
input_audio_format: "pcm",
sample_rate: 16000,
turn_detection: { type: "server_vad" }
}
}));
};
// Send 16-bit mono PCM at 16 kHz, about 100 ms (3200 bytes) per frame.
function sendAudio(pcmChunk) {
ws.send(JSON.stringify({
type: "input_audio_buffer.append",
audio: btoa(String.fromCharCode(...new Uint8Array(pcmChunk)))
}));
}
ws.onmessage = (ev) => {
const msg = JSON.parse(ev.data);
if (msg.type.endsWith("transcription.text")) {
console.log("partial:", msg.text); // updates as they speak
}
if (msg.type.endsWith("transcription.completed")) {
console.log("final:", msg.transcript, msg.language, msg.emotion);
}
};import base64, json, websockets, asyncio
URL = "wss://asr-stream.pixazo.ai/v1/stream?key=" + PIXAZO_API_KEY
async def transcribe(pcm_stream):
async with websockets.connect(URL) as ws:
await ws.send(json.dumps({
"type": "session.update",
"session": {
"modalities": ["text"],
"input_audio_format": "pcm",
"sample_rate": 16000,
"turn_detection": {"type": "server_vad"},
},
}))
async def send():
# 3200 bytes = 100 ms of 16-bit mono PCM at 16 kHz
for chunk in pcm_stream:
await ws.send(json.dumps({
"type": "input_audio_buffer.append",
"audio": base64.b64encode(chunk).decode(),
}))
await asyncio.sleep(0.1)
await ws.send(json.dumps({"type": "input_audio_buffer.commit"}))
asyncio.create_task(send())
async for raw in ws:
msg = json.loads(raw)
if msg["type"].endswith("transcription.completed"):
print(msg["transcript"], msg["language"], msg["emotion"])Final Result Event
{
"type": "conversation.item.input_audio_transcription.completed",
"item_id": "item_MaUP928DS8dtUSntYnfcK",
"transcript": "Merry Christmas to all, and to all a good night!",
"language": "en",
"emotion": "happy"
}Session Protocol
After connecting, configure the session, then stream audio frames. Results arrive continuously.
1. Configure the session
{
"type": "session.update",
"session": {
"modalities": [
"text"
],
"input_audio_format": "pcm",
"sample_rate": 16000,
"input_audio_transcription": {
"language": "en"
},
"turn_detection": {
"type": "server_vad"
}
}
}2. Stream audio frames
{
"type": "input_audio_buffer.append",
"audio": "<base64 pcm frame>"
}With server_vad turn detection the service segments speech for you and emits one final result per utterance. Send {"type":"input_audio_buffer.commit"} to flush the last utterance before closing.
Request Parameters
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
key | Yesrequired | string | — | your subscription key |
Query-string form of the API key. Browsers cannot set headers on a WebSocket, so the key goes in the URL. Server-side clients may instead send it as the Ocp-Apim-Subscription-Key or X-Subscription-Key header. | ||||
language | No | string | — (auto-detected) | ISO code, e.g. en, zh |
| Optional language hint for the session. Omit it and the model detects the language automatically — the detected language is returned on every final result either way. | ||||
Audio format
- 16-bit signed PCM, mono, 16 kHz, little-endian, base64 encoded.
- About 100 ms per frame — 3200 bytes. Larger frames add latency; much smaller ones add overhead.
- Send audio at roughly real time. Sending far faster than real time gives no benefit.
Server Events
| Event | Meaning |
|---|---|
| session.created / session.updated | Session is ready and your configuration was applied. |
| input_audio_buffer.speech_started | Speech detected — an utterance has begun. |
| input_audio_buffer.speech_stopped | The speaker paused; the utterance is being finalised. |
| conversation.item.input_audio_transcription.text | Partial. The transcript so far for the current utterance; it will be revised. |
| conversation.item.input_audio_transcription.completed | Final. The settled transcript for one utterance, with language and emotion. |
| error | Something went wrong; the message explains what. |
Partial result
{
"type": "conversation.item.input_audio_transcription.text",
"item_id": "item_MaUP928DS8dtUSntYnfcK",
"text": "Merry Christmas to all, and"
}Render partials as provisional text and replace them when the matching completed event arrives — partials are revised as more audio is heard.
Session Limits
| Limit | Value | What happens |
|---|---|---|
| Maximum session length | 15 minutes | The connection closes with reason max_session_reached. Open a new one to continue. |
| Idle timeout | 60 seconds | A session with no audio closes with reason idle_timeout and is not charged. |
| Concurrent sessions | Fair use | Each open session reserves funds for its maximum length until it closes. |
For continuous transcription beyond 15 minutes, open a fresh connection when the previous one closes. For pre-recorded files, use the file-based models instead — they accept up to 12 hours in one request and need no streaming client.
Connection Errors
Authentication and billing are resolved during the WebSocket handshake, so failures appear as an HTTP status on the upgrade request, before any session exists.
| Status | Meaning |
|---|---|
| 101 | Connected — the session is live. |
| 401 | Missing or invalid subscription key. |
| 402 | Insufficient balance to reserve a session. |
| 426 | You sent a plain HTTP request; this endpoint requires a WebSocket upgrade. |
| 503 | The service is temporarily unable to verify your key or reach the speech backend. |
Once connected, problems arrive as an error event on the socket rather than as a status code.
Pricing
Billed at $0.00282 per minute of audio streamed ($0.1692 per hour), rounded up to the next whole minute. You are charged for the audio you send, measured on our side — silent air you stream still counts, so stop sending when there is nothing to transcribe.
| Audio streamed | Billed minutes | Cost |
|---|---|---|
| 30 seconds | 1 | $0.00282 |
| 5 minutes | 5 | $0.0141 |
| 15 minutes (one full session) | 15 | $0.0423 |
Opening a session reserves the cost of a full 15 minutes. The reservation is reduced to what you actually streamed when the session closes, and released entirely if no audio was sent.
Qwen 3.0 ASR Flash Realtime API Pricing
Qwen 3 TTS 0.6B API Documentation
https://gateway.pixazo.ai/qwen-3-tts-text-to-speech-0-6b/v1/qwen-3-tts-text-to-speech-0-6b-request
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Qwen 3 TTS - Text to Speech [0.6B] generate request - Qwen 3 TTS - Text to Speech [0.6B]
Request Code
POST https://gateway.pixazo.ai/qwen-3-tts-text-to-speech-0-6b/v1/qwen-3-tts-text-to-speech-0-6b-request
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"text": "The morning sun cast golden rays across the quiet village, as the sound of birdsong filled the crisp autumn air.",
"prompt": "Very happy.",
"voice": "Vivian",
"language": "English"
}
import requests
url = "https://gateway.pixazo.ai/qwen-3-tts-text-to-speech-0-6b/v1/qwen-3-tts-text-to-speech-0-6b-request"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"text": "The morning sun cast golden rays across the quiet village, as the sound of birdsong filled the crisp autumn air.",
"prompt": "Very happy.",
"voice": "Vivian",
"language": "English"
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = "https://gateway.pixazo.ai/qwen-3-tts-text-to-speech-0-6b/v1/qwen-3-tts-text-to-speech-0-6b-request";
const headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
};
const data = {
"text": "The morning sun cast golden rays across the quiet village, as the sound of birdsong filled the crisp autumn air.",
"prompt": "Very happy.",
"voice": "Vivian",
"language": "English"
};
fetch(url, {
method: "POST",
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
curl -X POST "https://gateway.pixazo.ai/qwen-3-tts-text-to-speech-0-6b/v1/qwen-3-tts-text-to-speech-0-6b-request" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"text": "The morning sun cast golden rays across the quiet village, as the sound of birdsong filled the crisp autumn air.",
"prompt": "Very happy.",
"voice": "Vivian",
"language": "English"
}'
Output
{
"request_id": "qwen-3-tts-text-to-speech-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-3-tts-text-to-speech-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "qwen-3-tts-text-to-speech-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-3-tts-text-to-speech-0-6b",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-3-tts-text-to-speech-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.wav"
],
"media_type": "audio/wav"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "qwen-3-tts-text-to-speech-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen-3-tts-text-to-speech-0-6b",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Request Parameters - Qwen 3 TTS - Text to Speech [0.6B] generate request
| Field | Type | Required | Default |
|---|---|---|---|
text | string | Yesrequired | — |
| The input text to be converted into speech. | |||
prompt | string | Yesrequired | — |
| Emotional or stylistic prompt to guide voice expression (e.g., "Very happy.", "Sad and slow."). | |||
voice | string | Yesrequired | — |
| Name of the pre-trained voice to use (e.g., "Vivian"). For custom voices, use the assigned voice ID. | |||
language | string | Yesrequired | — |
| Language of the input text (e.g., "English", "Spanish", "Chinese"). | |||
top_k | integer | No | 50 |
| Controls diversity of token selection during generation. Higher values increase randomness. | |||
top_p | float | No | 1.0 |
| Nucleus sampling threshold. Lower values focus on high-probability tokens. | |||
temperature | float | No | 0.9 |
| Controls randomness in token sampling. Higher values increase creativity. | |||
repetition_penalty | float | No | 1.05 |
| Penalizes repeated tokens to reduce redundancy. | |||
subtalker_dosample | boolean | No | true |
| Enables sampling for subtalker model. Disable for deterministic output. | |||
subtalker_top_k | integer | No | 50 |
| Top-k sampling parameter for subtalker model. | |||
subtalker_top_p | float | No | 1.0 |
| Nucleus sampling threshold for subtalker model. | |||
subtalker_temperature | float | No | 0.9 |
| Temperature parameter for subtalker model. | |||
max_new_tokens | integer | No | 200 |
| Maximum number of tokens to generate in the output audio sequence. | |||
Minimum Request
{
"text": "Hello world.",
"prompt": "Normal",
"voice": "Vivian",
"language": "English"
}
Full Request (all options)
{
"text": "The morning sun cast golden rays across the quiet village, as the sound of birdsong filled the crisp autumn air.",
"prompt": "Very happy.",
"voice": "Vivian",
"language": "English",
"top_k": 50,
"top_p": 1.0,
"temperature": 0.9,
"repetition_penalty": 1.05,
"subtalker_dosample": true,
"subtalker_top_k": 50,
"subtalker_top_p": 1.0,
"subtalker_temperature": 0.9,
"max_new_tokens": 200
}
Response
{
"request_id": "qwen-3-tts-text-to-speech-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-3-tts-text-to-speech-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | Your API subscription key |
Response Handling
Common status codes for Qwen 3 TTS - Text to Speech [0.6B] generate request.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'qwen-3-tts-text-to-speech-0-6b' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "qwen-3-tts-text-to-speech-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen-3-tts-text-to-speech-0-6b",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/qwen-3-tts-text-to-speech-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "qwen-3-tts-text-to-speech-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-3-tts-text-to-speech-0-6b",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-3-tts-text-to-speech-0-6b_019dxxxx-xxxx/output.ext"
],
"media_type": "application/octet-stream"
},
"created_at": "2026-03-31T10:00:00.000Z",
"updated_at": "2026-03-31T10:00:15.000Z",
"completed_at": "2026-03-31T10:00:15.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Qwen 3 TTS 0.6B API Pricing
Qwen 3 TTS Voice Design API Documentation
https://gateway.pixazo.ai/qwen-3-tts-voice-design-1-7b/v1/qwen-3-tts-voice-design-1-7b-request
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Qwen 3 TTS Voice Design [1.7B] generate request - Qwen 3 TTS Voice Design [1.7B]
Request Code
POST https://gateway.pixazo.ai/qwen-3-tts-voice-design-1-7b/v1/qwen-3-tts-voice-design-1-7b-request
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"text": "The old clock tower chimed midnight as the fog rolled in from the harbor, wrapping the cobblestone streets in a blanket of grey.",
"prompt": "Speak in a mysterious and atmospheric tone.",
"language": "English"
}
import requests
url = "https://gateway.pixazo.ai/qwen-3-tts-voice-design-1-7b/v1/qwen-3-tts-voice-design-1-7b-request"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"text": "The old clock tower chimed midnight as the fog rolled in from the harbor, wrapping the cobblestone streets in a blanket of grey.",
"prompt": "Speak in a mysterious and atmospheric tone.",
"language": "English"
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = "https://gateway.pixazo.ai/qwen-3-tts-voice-design-1-7b/v1/qwen-3-tts-voice-design-1-7b-request";
const headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
};
const data = {
text: "The old clock tower chimed midnight as the fog rolled in from the harbor, wrapping the cobblestone streets in a blanket of grey.",
prompt: "Speak in a mysterious and atmospheric tone.",
language: "English"
};
fetch(url, {
method: "POST",
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
curl -X POST "https://gateway.pixazo.ai/qwen-3-tts-voice-design-1-7b/v1/qwen-3-tts-voice-design-1-7b-request" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"text": "The old clock tower chimed midnight as the fog rolled in from the harbor, wrapping the cobblestone streets in a blanket of grey.",
"prompt": "Speak in a mysterious and atmospheric tone.",
"language": "English"
}'
Output
{
"request_id": "qwen-3-tts-voice-design-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-3-tts-voice-design-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "qwen-3-tts-voice-design-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-3-tts-voice-design-1-7b",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-3-tts-voice-design-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.wav"
],
"media_type": "audio/wav"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "qwen-3-tts-voice-design-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen-3-tts-voice-design-1-7b",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Request Parameters - Qwen 3 TTS Voice Design [1.7B] generate request
| Field | Type | Required | Default |
|---|---|---|---|
text | string | Yesrequired | — |
| The spoken content to be synthesized into speech. | |||
prompt | string | Yesrequired | — |
| A style or tone description guiding the voice expression (e.g., "speak in a mysterious tone"). | |||
language | string | Yesrequired | — |
| The language of the input text (e.g., "English", "Spanish"). | |||
top_k | integer | No | 50 |
| Controls diversity by limiting sampling to the top K most likely tokens. | |||
top_p | float | No | 1.0 |
| Nucleus sampling threshold; lower values focus on higher-probability tokens. | |||
temperature | float | No | 0.9 |
| Controls randomness; higher values increase creativity, lower values increase determinism. | |||
repetition_penalty | float | No | 1.05 |
| Penalizes repeated tokens to reduce redundancy in output. | |||
subtalker_dosample | boolean | No | true |
| Enables sampling for subtalker generation; disables greedy decoding. | |||
subtalker_top_k | integer | No | 50 |
| Top-K sampling parameter for subtalker voice modeling. | |||
subtalker_top_p | float | No | 1.0 |
| Nucleus sampling threshold for subtalker voice modeling. | |||
subtalker_temperature | float | No | 0.9 |
| Temperature for subtalker voice modeling. | |||
max_new_tokens | integer | No | 200 |
| Maximum number of tokens to generate in the output sequence. | |||
Minimum Request
{
"text": "The old clock tower chimed midnight as the fog rolled in from the harbor, wrapping the cobblestone streets in a blanket of grey.",
"prompt": "Speak in a mysterious and atmospheric tone.",
"language": "English"
}
Full Request (all options)
{
"text": "The old clock tower chimed midnight as the fog rolled in from the harbor, wrapping the cobblestone streets in a blanket of grey.",
"prompt": "Speak in a mysterious and atmospheric tone.",
"language": "English",
"top_k": 50,
"top_p": 1.0,
"temperature": 0.9,
"repetition_penalty": 1.05,
"subtalker_dosample": true,
"subtalker_top_k": 50,
"subtalker_top_p": 1.0,
"subtalker_temperature": 0.9,
"max_new_tokens": 200
}
Response
{
"request_id": "qwen-3-tts-voice-design-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-3-tts-voice-design-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | Your API subscription key |
Response Handling
Common status codes for Qwen 3 TTS Voice Design [1.7B] generate request.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'qwen-3-tts-voice-design-1-7b' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "qwen-3-tts-voice-design-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen-3-tts-voice-design-1-7b",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/qwen-3-tts-voice-design-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "qwen-3-tts-voice-design-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-3-tts-voice-design-1-7b",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-3-tts-voice-design-1-7b_019dxxxx-xxxx/output.ext"
],
"media_type": "application/octet-stream"
},
"created_at": "2026-03-31T10:00:00.000Z",
"updated_at": "2026-03-31T10:00:15.000Z",
"completed_at": "2026-03-31T10:00:15.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Qwen 3 TTS Voice Design API Pricing
Qwen 3 TTS Clone Voice 0.6B API Documentation
https://gateway.pixazo.ai/qwen-3-tts-clone-voice-0-6b/v1/qwen-3-tts-clone-voice-0-6b-request
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Qwen 3 TTS Clone Voice [0.6B] generate request - Qwen 3 TTS Clone Voice [0.6B]
Request Code
POST https://gateway.pixazo.ai/qwen-3-tts-clone-voice-0-6b/v1/qwen-3-tts-clone-voice-0-6b-request
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"reference_text": "Welcome to the presentation. Today we will explore the fascinating world of artificial intelligence and its impact on everyday life."
}
import requests
url = "https://gateway.pixazo.ai/qwen-3-tts-clone-voice-0-6b/v1/qwen-3-tts-clone-voice-0-6b-request"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"reference_text": "Welcome to the presentation. Today we will explore the fascinating world of artificial intelligence and its impact on everyday life."
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = "https://gateway.pixazo.ai/qwen-3-tts-clone-voice-0-6b/v1/qwen-3-tts-clone-voice-0-6b-request";
const headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
};
const data = {
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"reference_text": "Welcome to the presentation. Today we will explore the fascinating world of artificial intelligence and its impact on everyday life."
};
fetch(url, {
method: "POST",
headers: headers,
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
curl -X POST "https://gateway.pixazo.ai/qwen-3-tts-clone-voice-0-6b/v1/qwen-3-tts-clone-voice-0-6b-request" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"reference_text": "Welcome to the presentation. Today we will explore the fascinating world of artificial intelligence and its impact on everyday life."
}'
Output
{
"request_id": "qwen-3-tts-clone-voice-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-3-tts-clone-voice-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "qwen-3-tts-clone-voice-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-3-tts-clone-voice-0-6b",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-3-tts-clone-voice-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.wav"
],
"media_type": "audio/wav"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "qwen-3-tts-clone-voice-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen-3-tts-clone-voice-0-6b",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Request Parameters - Qwen 3 TTS Clone Voice [0.6B] generate request
| Field | Type | Required | Default |
|---|---|---|---|
audio_url | string | Yesrequired | — |
| An audio file containing the voice sample to clone. Supported formats: MP3, WAV, FLAC. | |||
reference_text | string | Yesrequired | — |
| The exact spoken text from the audio sample. This is used to align the audio with the transcript for accurate voice embedding. | |||
Minimum Request
{
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"reference_text": "Welcome to the presentation. Today we will explore the fascinating world of artificial intelligence and its impact on everyday life."
}
Full Request (all options)
{
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"reference_text": "Welcome to the presentation. Today we will explore the fascinating world of artificial intelligence and its impact on everyday life."
}
Response
{
"request_id": "qwen-3-tts-clone-voice-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-3-tts-clone-voice-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | Your API subscription key |
Response Handling
Common status codes for Qwen 3 TTS Clone Voice [0.6B] generate request.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'qwen-3-tts-clone-voice-0-6b' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "qwen-3-tts-clone-voice-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen-3-tts-clone-voice-0-6b",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/qwen-3-tts-clone-voice-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "qwen-3-tts-clone-voice-0-6b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-3-tts-clone-voice-0-6b",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-3-tts-clone-voice-0-6b_019dxxxx-xxxx/output.ext"
],
"media_type": "application/octet-stream"
},
"created_at": "2026-03-31T10:00:00.000Z",
"updated_at": "2026-03-31T10:00:15.000Z",
"completed_at": "2026-03-31T10:00:15.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Qwen 3 TTS Clone Voice 0.6B API Pricing
Qwen 3 TTS Clone Voice 1.7B API Documentation
https://gateway.pixazo.ai/qwen-3-tts-clone-voice-1-7b/v1/qwen-3-tts-clone-voice-1-7b-request
Authentication
All requests require an API key passed via header.
| Header | Type | Required | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | string | Yes | Your API subscription key |
Qwen 3 TTS Clone Voice [1.7B] generate request - Qwen 3 TTS Clone Voice [1.7B]
Request Code
POST https://gateway.pixazo.ai/qwen-3-tts-clone-voice-1-7b/v1/qwen-3-tts-clone-voice-1-7b-request
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY
{
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"reference_text": "The quarterly results exceeded expectations across all major business segments, demonstrating strong momentum heading into the new fiscal year."
}
import requests
url = "https://gateway.pixazo.ai/qwen-3-tts-clone-voice-1-7b/v1/qwen-3-tts-clone-voice-1-7b-request"
headers = {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"reference_text": "The quarterly results exceeded expectations across all major business segments, demonstrating strong momentum heading into the new fiscal year."
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = "https://gateway.pixazo.ai/qwen-3-tts-clone-voice-1-7b/v1/qwen-3-tts-clone-voice-1-7b-request";
const data = {
audio_url: "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
reference_text: "The quarterly results exceeded expectations across all major business segments, demonstrating strong momentum heading into the new fiscal year."
};
fetch(url, {
method: "POST",
headers: {
"Content-Type": "application/json",
"Cache-Control": "no-cache",
"Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
},
body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
curl -X POST "https://gateway.pixazo.ai/qwen-3-tts-clone-voice-1-7b/v1/qwen-3-tts-clone-voice-1-7b-request" \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
--data-raw '{
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"reference_text": "The quarterly results exceeded expectations across all major business segments, demonstrating strong momentum heading into the new fiscal year."
}'
Output
{
"request_id": "qwen-3-tts-clone-voice-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-3-tts-clone-voice-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Webhook (Optional)
Add the X-Webhook-URL header to your submit request to receive a POST callback when the job completes — no polling required.
Using curl? These are HTTP request headers — pass each with -H, e.g. -H "X-Webhook-URL: https://your-server.com/webhook/callback". Do not paste them as bare lines, and end every line of a multi-line command with \.
Webhook Headers
| Header | Required | Default | Description |
|---|---|---|---|
X-Webhook-URL | Yes (to enable) | — | HTTPS endpoint on your server that will receive the POST callback. Must respond 2xx within a few seconds (process async if needed). |
X-Webhook-Mode | No | terminal | terminal — fires once at the final status (COMPLETED/FAILED/ERROR). sync — fires on every poll cycle plus the terminal event, and caps the queue’s polling delay at 15s for tighter progress updates. |
Example: enable webhook
X-Webhook-URL: https://your-server.com/webhook/callback
X-Webhook-Mode: terminal
Callback Payload
Your endpoint receives a POST application/json with the same shape as the GET /v2/requests/status/{request_id} response. Example terminal callback (mode terminal):
{
"request_id": "qwen-3-tts-clone-voice-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-3-tts-clone-voice-1-7b",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-3-tts-clone-voice-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/output.wav"
],
"media_type": "audio/wav"
},
"created_at": "2026-05-22T13:17:32.110Z",
"updated_at": "2026-05-22 13:19:23",
"completed_at": "2026-05-22 13:19:23"
}
Failure callback shape
{
"request_id": "qwen-3-tts-clone-voice-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen-3-tts-clone-voice-1-7b",
"error": "Description of the error",
"output": null,
"created_at": "...",
"updated_at": "...",
"completed_at": "..."
}
Delivery semantics
- terminal mode (default) — exactly one
POSTwhen the request reaches a terminal status. No callback duringPROCESSING. - sync mode —
POSTon every status poll (with delay capped at ~15s) plus a finalPOSTat terminal status. Use when you want progress updates. - Idempotency — use
request_idas your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates. - Response — respond
200 OKwithin a few seconds. The queue does not block on slow handlers, but persistent failures may stop further deliveries. - HTTPS required — plain
http://URLs are rejected.
Request Parameters - Qwen 3 TTS Clone Voice [1.7B] generate request
| Field | Type | Required | Default |
|---|---|---|---|
audio_url | string | Yesrequired | — |
| An audio file containing the speaker's voice. Supported formats: MP3, WAV, FLAC. | |||
reference_text | string | Yesrequired | — |
| The exact spoken text from the audio sample. Must match the content of the audio clip to enable accurate voice embedding. | |||
Minimum Request
{
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"reference_text": "The quarterly results exceeded expectations across all major business segments, demonstrating strong momentum heading into the new fiscal year."
}
Full Request (all options)
{
"audio_url": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/doc-assets/audio/speech-17s.mp3",
"reference_text": "The quarterly results exceeded expectations across all major business segments, demonstrating strong momentum heading into the new fiscal year."
}
Response
{
"request_id": "qwen-3-tts-clone-voice-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "QUEUED",
"polling_url": "https://gateway.pixazo.ai/v2/requests/status/qwen-3-tts-clone-voice-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Cache-Control | no-cache |
| Ocp-Apim-Subscription-Key | Your API subscription key |
Response Handling
Common status codes for Qwen 3 TTS Clone Voice [1.7B] generate request.
| Code | Meaning |
|---|---|
| 202 | Accepted — Request queued |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Request Parameters - Qwen 3 TTS Clone Voice [1.7B] check status
| Field | Type | Required | Default |
|---|---|---|---|
request_id | string | Yesrequired | — |
| Unique identifier returned from the initial request submission. | |||
Error Responses
Queue system errors and model validation errors.
Queue System Errors
// 402 — Insufficient balance
{
"error": "Insufficient Balance",
"message": "Your wallet does not have enough balance."
}
// 400 — Model not found
{
"error": "Model not found",
"message": "Model 'qwen-3-tts-clone-voice-1-7b' not found or is disabled"
}
Error via Status/Webhook
{
"request_id": "qwen-3-tts-clone-voice-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "ERROR",
"model_id": "qwen-3-tts-clone-voice-1-7b",
"error": "Description of the error",
"output": null
}
Retrieving Results
Poll the universal status endpoint to check progress and retrieve results.
Endpoint
GET https://gateway.pixazo.ai/v2/requests/status/{request_id}
Ocp-Apim-Subscription-Key: YOUR_API_KEY
cURL Example
curl -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://gateway.pixazo.ai/v2/requests/status/qwen-3-tts-clone-voice-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Response (Completed)
{
"request_id": "qwen-3-tts-clone-voice-1-7b_019dxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"status": "COMPLETED",
"model_id": "qwen-3-tts-clone-voice-1-7b",
"error": null,
"output": {
"media_url": [
"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/v1/qwen-3-tts-clone-voice-1-7b_019dxxxx-xxxx/output.ext"
],
"media_type": "application/octet-stream"
},
"created_at": "2026-03-31T10:00:00.000Z",
"updated_at": "2026-03-31T10:00:15.000Z",
"completed_at": "2026-03-31T10:00:15.000Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
| request_id | string | Unique request identifier |
| status | string | QUEUED, PROCESSING, COMPLETED, FAILED, or ERROR |
| model_id | string | Model that processed the request |
| error | string|null | Error message if failed |
| output.media_url | array | URLs to generated media (R2 CDN) |
| output.media_type | string | MIME type of the output |
| created_at | string | When request was created |
| completed_at | string|null | When request completed |
| polling_url | string | Status URL (initial response only) |
Status Values
| Status | Description |
|---|---|
| QUEUED | Request accepted, waiting to be processed |
| PROCESSING | Being processed by the model |
| COMPLETED | Done — output contains the result |
| FAILED | Failed — check error field |
| ERROR | System error — not charged |
Status Flow
QUEUED → PROCESSING → COMPLETED
→ FAILED
→ ERROR
Typical Workflow
- Send a generate request to the API endpoint
- Save the
request_idfrom the response - Poll every 5-10 seconds:
GET /v2/requests/status/{request_id} - When
statusis"COMPLETED", download fromoutput.media_url
Tip: Use X-Webhook-URL header to get a callback instead of polling.
Qwen 3 TTS Clone Voice 1.7B API Pricing
⚡ Performance
Live usage measured on Pixazo's gateway, split by model version. Generation time is how long a generation takes end-to-end (lower is better). Success rate is the percent of generations that complete (higher is better).
〰 Uptime
Percent of generations that succeeded over the selected period, per model version.