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.

Get API Key
Qwen Audio API

Models Version

WELCOME BONUS

Get 10% Cashback on Your First Payment (up to $500)

Add funds and get 10% cashback on your first payment (up to $500).

Claim Your Cashback →

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-speech

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour 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.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (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

ParameterRequiredTypeDefaultAllowed values / range
textYesrequiredstring—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).
voiceNostringlonganhuan_v3.1a voice ID from the list below
The voice.
instructionNostring—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.
languageNostringdetectedzh 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.
formatNostringmp3mp3, wav, opus
Audio format of the result.
sample_rateNointeger220508000, 12000, 16000, 22050, 24000, 44100, 48000 (opus: 8000, 12000, 16000, 24000, 48000)
Sample rate in Hz.
speedNonumber10.5 to 2
Speaking rate.
pitchNonumber10.5 to 2
Pitch.
volumeNointeger500 to 100
Volume.
seedNointeger00 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.

ParameterWhyUse instead
voice not in the list belowThis model has four voices.one of the four voice IDs
promptThe words to speak are sent as text.text, and instruction for delivery notes
rateThe speaking rate has its own name here.speed
language_hintsOne language is set with one code.language
n, num_images, number_of_images, batch_size, count, num_outputsOne 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.

ParameterWhen the request fails
textThe text cannot be spoken (for example, it has no speakable characters).

Accepted but ignored

Any other parameter is dropped and has no effect.

Emotion and sound tags

Write tags straight into text. A control tag sets the emotion or style of the text that follows, until the next control tag; a sound tag inserts a sound at its position. For example: [excited]What a beautiful day![laughing]Let us go outside!

KindTags
Control[sad], [amazed], [deep and loud shouting], [trembling], [angry], [excited], [sarcastic], [curious], [like dracula], [bored], [tired], [scornful], [shouting], [asmr], [panicked], [mischievously], [empathetic], [whispers], [reluctantly], [crying], [serious], [very slowly], [very fast]
Sound[gasp], [sighing], [clears throat], [giggles], [laughing], [cough], [snorts]

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 IDNameGenderLanguage, accent or character
longanlingxin_v3.1Long An LingxinFemale—
xunanchuan_v3.1Xu NanchuanMale—
longanhuan_v3.1Long An HuanFemale—
longanfengyue_v3.1Long An FengyueFemale—

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

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — the body failed the submit check (see Request Parameters) and was not queued.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance.
403Forbidden.
429Too many requests.
500Internal 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

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request.
errorstring or nullError message when status is ERROR; otherwise null.
output.media_urlarray of stringsURL of the audio file (one per request). Download it and keep your own copy.
output.media_typestringaudio/mpeg for mp3, audio/wav for wav, audio/ogg for opus.
created_atstringRequest creation timestamp.
updated_atstringLast status change timestamp.
completed_atstringCompletion timestamp.
polling_urlstringStatus 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

Your request will cost $0.0315 per 1,000 characters of input text.
each started block of 1,000 characters is billed once; a Chinese character counts as two
2. Qwen Audio 3.1 TTS Flash

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-speech

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour 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.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (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

ParameterRequiredTypeDefaultAllowed values / range
textYesrequiredstring—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).
voiceNostringlonganhuan_v3.1a voice ID from the list below
The voice.
instructionNostring—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.
languageNostringdetectedzh 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.
formatNostringmp3mp3, wav, opus
Audio format of the result.
sample_rateNointeger220508000, 12000, 16000, 22050, 24000, 44100, 48000 (opus: 8000, 12000, 16000, 24000, 48000)
Sample rate in Hz.
speedNonumber10.5 to 2
Speaking rate.
pitchNonumber10.5 to 2
Pitch.
volumeNointeger500 to 100
Volume.
seedNointeger00 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.

ParameterWhyUse instead
promptThe words to speak are sent as text.text, and instruction for delivery notes
rateThe speaking rate has its own name here.speed
language_hintsOne language is set with one code.language
n, num_images, number_of_images, batch_size, count, num_outputsOne 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.

ParameterWhen the request fails
voiceThe voice ID is not in the list below.
textThe text cannot be spoken (for example, it has no speakable characters).

Accepted but ignored

Any other parameter is dropped and has no effect.

Emotion and sound tags

Write tags straight into text. A control tag sets the emotion or style of the text that follows, until the next control tag; a sound tag inserts a sound at its position. For example: [excited]What a beautiful day![laughing]Let us go outside!

KindTags
Control[sad], [amazed], [deep and loud shouting], [trembling], [angry], [excited], [sarcastic], [curious], [like dracula], [bored], [tired], [scornful], [shouting], [asmr], [panicked], [mischievously], [empathetic], [whispers], [reluctantly], [crying], [serious], [very slowly], [very fast]
Sound[gasp], [sighing], [clears throat], [giggles], [laughing], [cough], [snorts]

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 IDNameGenderLanguage, accent or character
longanhuan_v3.1Long An HuanFemalealso speaks Chongqing dialect, Ningbo dialect, Korean, Indonesian
longanlingxin_v3.1Long An LingxinFemalealso speaks Yunnan dialect, Shaanxi dialect, Shanghainese, French, Italian
longanfengyue_v3.1Long An FengyueFemalealso speaks Northeastern dialect, Vietnamese, Japanese
xunanchuan_v3.1Xu NanchuanMalealso speaks Gansu dialect, Northeastern dialect, French, Portuguese

Premium Chinese voices (42)

Voice IDNameGenderLanguage, accent or character
yuxiaoyun_v3.1Yu XiaoyunFemaleenergetic, friendly, natural
qiaoxiaojiao_v3.1Qiao XiaojiaoFemalecharming, cute
xiaxiaochen_v3.1Xia XiaochenFemaleenergetic, bright
anmingyuan_v3.1An MingyuanMaleclear, natural
wenhuaiqing_v3.1Wen HuaiqingFemaleclear, soft
anxiaolan_v3.1An XiaolanFemalesweet and clear, pure
xieshurou_v3.1Xie ShurouFemalesoft, natural, intellectual
baiqinglan_v3.1Bai QinglanFemalebright, youthful
xuyuyuan_v3.1Xu YuyuanFemaleintellectual, mature, textured
anruorou_v3.1An RuorouFemalebreathy, intellectual
wenhuaizhi_v3.1Wen HuaizhiFemalecomposed, mature
xiaoxingzhi_v3.1Xiao XingzhiFemaledignified, elegant
guyunshu_v3.1Gu YunshuFemalemature, composed
huozhuoshi_v3.1Huo ZhuoshiMaleclear
yeqinghe_v3.1Ye QingheFemalefriendly, gentle
yunhuanhuan_v3.1Yun HuanhuanFemalehigh-pitched, enthusiastic
xuxiaoqiao_v3.1Xu XiaoqiaoFemalenatural, playful
baianran_v3.1Bai AnranFemalelow-pitched, resonant, breathy
xuyanchu_v3.1Xu YanchuFemalesteady, magnetic
yezhiqing_v3.1Ye ZhiqingFemalelight, natural
andi_v3.1An DiMaleAmerican-born Chinese accent
anyuqing_v3.1An YuqingFemalesweet female voice
linxiaoling_v3.1Lin XiaolingFemalesweet female voice
longfeifei_v3.1Long FeifeiFemalesweet female voice
longjing_v3.1Long JingFemalerich, steady
longqiang_v3.1Long QiangFemaleromantic, charming
longyan_v3.1Long YanFemalewarm, natural, friendly
longxiaobai_v3.1Long XiaobaiFemalemagnetic, rich
longyue_v3.1Long YueFemalewarm, magnetic
longcheng_v3.1Long ChengMalewise, magnetic
longlaotie_v3.1Long LaotieMaleNortheastern Chinese accent, straightforward
longshao_v3.1Long ShaoMalepositive, energetic
longshu_v3.1Long ShuMalesteady, magnetic
longze_v3.1Long ZeMalewarm, energetic, natural
longhao_v3.1Long HaoMalesentimental, melancholic
longjin_v3.1Long JinMaleelegant, gentle
longnan_v3.1Long NanMaleinsightful
longshuo_v3.1Long ShuoMaleknowledgeable, businesslike
longtian_v3.1Long TianMalemagnetic, rational
longxiaocheng_v3.1Long XiaochengMalemagnetic, low-pitched
longke_v3.1Long KeChildinnocent
loongbella_v3.1BellaFemalealso speaks Chinese, English

Premium English voices (15)

Voice IDNameGenderLanguage, accent or character
Emily_v3.1EmilyFemaleBritish female
Luna_v3.1LunaFemaleBritish female
Eric_v3.1EricMaleBritish male
Luca_v3.1LucaMaleBritish male
Abby_v3.1AbbyFemaleAmerican female
Annie_v3.1AnnieFemaleAmerican female
Ava_v3.1AvaFemaleAmerican female
Beth_v3.1BethFemaleAmerican female
Betty_v3.1BettyFemaleAmerican female
Cally_v3.1CallyFemaleAmerican female
Cindy_v3.1CindyFemaleAmerican female
Donna_v3.1DonnaFemaleAmerican female
Andy_v3.1AndyMaleAmerican male
Brian_v3.1BrianMaleAmerican male
David_v3.1DavidMaleAmerican male

Additional system voices (27)

Voice IDNameGenderLanguage, accent or character
longanyuanfei_v3.1Long An YuanfeiFemaleHaughty royal consort
longjielidou_v3.1Long JielidouMaleInnocent young boy
longanlingxi_v3.1Long An LingxiFemaleCute and sweet
longhuohuo_v3.1Long HuohuoMaleMischievous teenage boy
longyingtao_v3.1Long YingtaoFemaleGentle and calm female
longanya_v3.1Long An YaFemaleElegant female
longwan_v3.1Long WanFemaleDelicate and soft female
longxing_v3.1Long XingFemaleGentle girl next door
longhua_v3.1Long HuaFemaleEnergetic and sweet female
longhan_v3.1Long HanMaleWarm and devoted male
longanzhi_v3.1Long An ZhiMaleWise young adult male
longzhe_v3.1Long ZheMaleReserved and caring male
longanyang_v3.1Long An YangMaleCheerful young man
libai_v3.1Li BaiMaleClassical poet
longling_v3.1Long LingFemaleChildlike and reserved female
longniuniu_v3.1Long NiuniuMaleCheerful young boy
longshanshan_v3.1Long ShanshanMaleTheatrical child
longpaopao_v3.1Long PaopaoFemaleBubbly cartoon girl
loongstella_v3.1loongstellaFemaleConfident and brisk female
longyuan_v3.1Long YuanFemaleWarm and soothing female
longmiao_v3.1Long MiaoFemaleExpressive female
longsanshu_v3.1Long SanshuMaleSteady and textured male
longanli_v3.1Long An LiFemalePoised and efficient female
longanwen_v3.1Long An WenFemaleElegant and intellectual female
longanlang_v3.1Long An LangMaleClear and brisk male
longxiaoxia_v3.1Long XiaoxiaFemaleSteady and authoritative female
longanchong_v3.1Long An ChongMaleEnthusiastic male salesperson

Additional language voices (51)

Voice IDNameGenderLanguage, accent or character
qwen-audio-3.1-tts-flash-zora_bgZoraMaleBulgarian
qwen-audio-3.1-tts-flash-linde_nlLindeMaleDutch
qwen-audio-3.1-tts-flash-hajnal_huHajnalFemaleHungarian
qwen-audio-3.1-tts-flash-senin_roSeninMaleRomanian
qwen-audio-3.1-tts-flash-birk_daBirkMaleDanish
qwen-audio-3.1-tts-flash-lipa_hrLipaMaleCroatian
qwen-audio-3.1-tts-flash-avgi_elAvgiMaleGreek
qwen-audio-3.1-tts-flash-jitrenka_csJitrenkaMaleCzech
qwen-audio-3.1-tts-flash-solglimt_nnSolglimtMaleNorwegian
qwen-audio-3.1-tts-flash-glimma_svGlimmaFemaleSwedish
qwen-audio-3.1-tts-flash-svar_hiSvarMaleHindi
qwen-audio-3.1-tts-flash-iskra_skIskraFemaleSlovak
qwen-audio-3.1-tts-flash-aava_fiAavaMaleFinnish
qwen-audio-3.1-tts-flash-sahar_urSaharMaleUrdu
qwen-audio-3.1-tts-flash-jasna_srJasnaMaleSerbian
qwen-audio-3.1-tts-flash-brisa_es_mxBrisaFemaleMexican Spanish
qwen-audio-3.1-tts-flash-ausra_ltAusraMaleLithuanian
qwen-audio-3.1-tts-flash-rasa_lvRasaFemaleLatvian
qwen-audio-3.1-tts-flash-deniz_trDenizMaleTurkish
qwen-audio-3.1-tts-flash-ava_faAvaMalePersian
qwen-audio-3.1-tts-flash-or_heOrMaleHebrew
qwen-audio-3.1-tts-flash-ayalguu_mnAyalguuMaleMongolian
qwen-audio-3.1-tts-flash-zarja_slZarjaMaleSlovenian
qwen-audio-3.1-tts-flash-ishiq_azIshiqMaleAzerbaijani
qwen-audio-3.1-tts-flash-zorza_plZorzaMalePolish
qwen-audio-3.1-tts-flash-alba_caAlbaMaleCatalan
qwen-audio-3.1-tts-flash-romduol_kmRomduolMaleKhmer
qwen-audio-3.1-tts-flash-aurora_pt_brAuroraMaleBrazilian Portuguese
qwen-audio-3.1-tts-flash-dao_loDaoMaleLao
qwen-audio-3.1-tts-flash-tsiskari_kaTsiskariMaleGeorgian
qwen-audio-3.1-tts-flash-lente_afLenteFemaleAfrikaans
qwen-audio-3.1-tts-flash-kiran_neKiranMaleNepali
qwen-audio-3.1-tts-flash-zorka_beZorkaFemaleBelarusian
qwen-audio-3.1-tts-flash-nilaav_mlNilaavFemaleMalayalam
qwen-audio-3.1-tts-flash-staer_lbStaerFemaleLuxembourgish
qwen-audio-3.1-tts-flash-drita_sqDritaMaleAlbanian
qwen-audio-3.1-tts-flash-nila_taNilaFemaleTamil
qwen-audio-3.1-tts-flash-aruna_siArunaMaleSinhala
qwen-audio-3.1-tts-flash-vennela_teVennelaMaleTelugu
qwen-audio-3.1-tts-flash-sade_etSadeFemaleEstonian
qwen-audio-3.1-tts-flash-bituon_cebBituonMaleCebuano
qwen-audio-3.1-tts-flash-vedrina_bsVedrinaFemaleBosnian
qwen-audio-3.1-tts-flash-layaung_myLaYaungMaleBurmese
qwen-audio-3.1-tts-flash-luys_hyLuysFemaleArmenian
qwen-audio-3.1-tts-flash-lumen_laLumenMaleLatin
qwen-audio-3.1-tts-flash-birta_isBirtaMaleIcelandic
qwen-audio-3.1-tts-flash-zerniq_mtZerniqFemaleMaltese
qwen-audio-3.1-tts-flash-nuru_swNuruFemaleSwahili
qwen-audio-3.1-tts-flash-arai_kkAraiMaleKazakh
qwen-audio-3.1-tts-flash-zetwal_crsZetwalFemaleSeychellois Creole
qwen-audio-3.1-tts-flash-zoria_ukZoriaMaleUkrainian

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

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — the body failed the submit check (see Request Parameters) and was not queued.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance.
403Forbidden.
429Too many requests.
500Internal 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

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request.
errorstring or nullError message when status is ERROR; otherwise null.
output.media_urlarray of stringsURL of the audio file (one per request). Download it and keep your own copy.
output.media_typestringaudio/mpeg for mp3, audio/wav for wav, audio/ogg for opus.
created_atstringRequest creation timestamp.
updated_atstringLast status change timestamp.
completed_atstringCompletion timestamp.
polling_urlstringStatus 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 tokensPrice (USD)
Input text, per 1M tokens$0.2415
Output audio, per 1M tokens (about 12.5 tokens per second of speech)$1.9635
3. Qwen Audio 3.1 TTS-Next

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-audio

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour 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.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (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

ParameterRequiredTypeDefaultAllowed values / range
promptYesrequiredstring—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_urlsNoarray 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.
formatNostringmp3mp3, wav
Audio format of the result.
sample_rateNointeger480008000, 16000, 24000, 44100, 48000
Sample rate in Hz.
channelsNointeger21 (mono), 2 (stereo)
Channels.
speedNonumber10.5 to 2
Speech rate.
volumeNointeger500 to 100
Volume.
seedNointeger—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.

ParameterWhyUse instead
textThe whole scene is described in one prompt.prompt
text_promptThe description has its own name here.prompt
voiceVoices come from reference recordings, not voice IDs.reference_audio_urls and @voice1 in the prompt
durationThe length follows the content.describe the length in prompt
prompt naming @voice2 with one referenceEvery @voiceN needs its recording.send that many reference_audio_urls
n, num_images, number_of_images, batch_size, count, num_outputsOne 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.

ParameterWhen the request fails
reference_audio_urlsA recording cannot be downloaded, is larger than 10 MB or longer than 30 seconds, or is not WAV, MP3 or OGG Opus.
promptThe 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:

ElementExample
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”
LinesPut 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

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — the body failed the submit check (see Request Parameters) and was not queued.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance.
403Forbidden.
429Too many requests.
500Internal 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

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request.
errorstring or nullError message when status is ERROR; otherwise null.
output.media_urlarray of stringsURL of the audio file (one per request). Download it and keep your own copy.
output.media_typestringaudio/mpeg for mp3, audio/wav for wav.
created_atstringRequest creation timestamp.
updated_atstringLast status change timestamp.
completed_atstringCompletion timestamp.
polling_urlstringStatus 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 tokensPrice (USD)
Input (prompt and reference audio), per 1M tokens$0.9765
Output audio, per 1M tokens (200 tokens per second of audio)$1.9635
4. Qwen Audio 3.1 ASR Flash

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-text

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour 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.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (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

ParameterRequiredTypeDefaultAllowed values / range
audio_urlYesrequiredstring—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.
formatNostringfrom the URL's extension
17 values
aac, 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.
languageNostringdetectedone code from the list below
The language spoken. Setting it can improve accuracy.
languagesNoarray of stringsdetected1 to 4 codes
For recordings that mix languages. Send language or languages, not both.
diarizationNobooleanfalsetrue, false
Label who is speaking: each sentence and word gets a speaker_id.
keep_dialectNobooleanfalsetrue, false
Keep Chinese dialect expressions as spoken instead of writing standard Mandarin.
hot_wordsNoarray 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}.
contextNostring—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.

ParameterWhyUse instead
language with languagesTwo ways to set the same thing.one of them
speaker_countSupported only by the long-file model.qwen-audio-3-1-asr-flash-filetrans
durationThe charge follows the audio itself.nothing; leave it out
promptThis model takes no free-text prompt.hot_words and context
language_hintsLanguages have their own names here.language or languages
n, num_images, number_of_images, batch_size, count, num_outputsOne 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.

ParameterWhen the request fails
audio_urlThe file cannot be downloaded, has no audio the model can read, or is longer than 5 minutes.
audio_urlNo speech is found, for example speech over loud music, or singing.
languageThe 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

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — the body failed the submit check (see Request Parameters) and was not queued.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance.
403Forbidden.
429Too many requests.
500Internal 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

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request.
errorstring or nullError message when status is ERROR; otherwise null.
output.media_urlarray of stringsURL of the transcript JSON file (one per request).
output.media_typestringapplication/json.
created_atstringRequest creation timestamp.
updated_atstringLast status change timestamp.
completed_atstringCompletion timestamp.
polling_urlstringStatus 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 tokensPrice (USD)
Input audio, per 1M tokens (about 12.5 tokens per second of audio)$0.1575
Output text, per 1M tokens$0.4935
5. Qwen Audio 3.1 ASR Flash Filetrans

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-text

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour 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.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (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

ParameterRequiredTypeDefaultAllowed values / range
audio_urlYesrequiredstring—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.
languageNostringdetectedone code from the list below
The language spoken. Setting it can improve accuracy.
languagesNoarray of stringsdetected1 to 4 codes
For recordings that mix languages. Send language or languages, not both.
diarizationNobooleanfalsetrue, false
Label who is speaking: each sentence and word gets a speaker_id. Needs mono audio; keep diarized files under 2 hours.
speaker_countNointegerdetected2 to 100
Expected number of speakers, a hint for diarization; needs diarization: true.
keep_dialectNobooleanfalsetrue, false
Keep Chinese dialect expressions as spoken instead of writing standard Mandarin.
hot_wordsNoarray 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}.
contextNostring—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.

ParameterWhyUse instead
language with languagesTwo ways to set the same thing.one of them
speaker_countNeeds diarization: true.diarization: true
durationThe charge follows the audio itself.nothing; leave it out
promptThis model takes no free-text prompt.hot_words and context
language_hintsLanguages have their own names here.language or languages
n, num_images, number_of_images, batch_size, count, num_outputsOne 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.

ParameterWhen the request fails
audio_urlThe file cannot be downloaded, has no audio the model can read, or is longer than 12 hours.
audio_urlNo speech is found, for example speech over loud music, or singing.
languageThe 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

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — the body failed the submit check (see Request Parameters) and was not queued.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance.
403Forbidden.
429Too many requests.
500Internal 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

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED or ERROR.
model_idstringThe model that handled the request.
errorstring or nullError message when status is ERROR; otherwise null.
output.media_urlarray of stringsURL of the transcript JSON file (one per request).
output.media_typestringapplication/json.
created_atstringRequest creation timestamp.
updated_atstringLast status change timestamp.
completed_atstringCompletion timestamp.
polling_urlstringStatus 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 tokensPrice (USD)
Input audio, per 1M tokens (about 12.5 tokens per second of audio)$0.1575
Output text, per 1M tokens$0.4935
6. Qwen Audio 3.0 TTS Plus

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

HeaderRequiredDefaultDescription
X-Webhook-URLYes (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-ModeNoterminalterminal — 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 POST when the request reaches a terminal status. No callback during PROCESSING.
  • sync mode — POST on every status poll (with delay capped at ~15s) plus a final POST at terminal status. Use when you want progress updates.
  • Idempotency — use request_id as your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates.
  • Response — respond 200 OK within 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

FieldTypeRequiredDefaultAllowed values / range
textstringYesrequired——
The text to synthesize into speech. Must be non-empty.
voicestringNolonganlingxinlonganlingxin, 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.
formatstringNomp3mp3, wav, pcm
Audio output format.
sample_rateintegerNo22050up 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)NameLanguages
longanlingxinLongan Lingxin — defaultChinese (Mandarin), English
longanlufengLongan LufengChinese (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
Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
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

FieldTypeDescription
request_idstringUnique request identifier
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR
model_idstringModel that processed the request
errorstring|nullError message if failed
output.media_urlarrayURLs to the generated MP3 audio (R2 CDN)
output.media_typestringMIME type of the output (audio/mpeg)
created_atstringWhen request was created
completed_atstring|nullWhen request completed
polling_urlstringStatus URL (initial response only)

Status Values

StatusDescription
QUEUEDRequest accepted, waiting to be processed
PROCESSINGBeing processed by the model
COMPLETEDDone — output contains the result
FAILEDFailed — check error field
ERRORSystem error — not charged

Status Flow

QUEUED → PROCESSING → COMPLETED
                    → FAILED
                    → ERROR

Typical Workflow

  1. Send a generate request to the API endpoint
  2. Save the request_id from the response
  3. Poll every 5-10 seconds: GET /v2/requests/status/{request_id}
  4. When status is "COMPLETED", download from output.media_url

Tip: Use X-Webhook-URL header to get a callback instead of polling.

Qwen Audio 3.0 TTS Plus API Pricing

Your request will cost $0.035 per 1,000 characters.
7. Qwen Audio 3.0 TTS Flash

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

HeaderRequiredDefaultDescription
X-Webhook-URLYes (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-ModeNoterminalterminal — 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 POST when the request reaches a terminal status. No callback during PROCESSING.
  • sync mode — POST on every status poll (with delay capped at ~15s) plus a final POST at terminal status. Use when you want progress updates.
  • Idempotency — use request_id as your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates.
  • Response — respond 200 OK within 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

FieldTypeRequiredDefaultAllowed values / range
textstringYesrequired——
The text to synthesize into speech. Must be non-empty.
voicestringNolonganhuan_v3.6longanfengyue, 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.
formatstringNomp3mp3, wav, pcm
Audio output format.
sample_rateintegerNo22050up 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)NameLanguages
longanfengyueLongan FengyueChinese (Mandarin), English
longanyuanfeiLongan YuanfeiChinese (Mandarin), English
longanlingxiLongan LingxiChinese (Mandarin), English
longanxiaoxinLongan XiaoxinChinese (Mandarin), English
longanhuan_v3.6Longan Huan — defaultChinese (Mandarin), English
longjielidou_v3.6Longjie LidouChinese (Mandarin), English
longpaopao_v3.6Long PaopaoChinese (Mandarin), English
longhuohuo_v3.6Long HuohuoChinese (Mandarin), English
longchuanshu_v3.6Long ChuanshuChinese (Mandarin), English
loongmaryloongmaryEnglish
loongeva_v3.6loongevaEnglish
loongjohnloongJohnEnglish

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
Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
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

FieldTypeDescription
request_idstringUnique request identifier
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR
model_idstringModel that processed the request
errorstring|nullError message if failed
output.media_urlarrayURLs to the generated MP3 audio (R2 CDN)
output.media_typestringMIME type of the output (audio/mpeg)
created_atstringWhen request was created
completed_atstring|nullWhen request completed
polling_urlstringStatus URL (initial response only)

Status Values

StatusDescription
QUEUEDRequest accepted, waiting to be processed
PROCESSINGBeing processed by the model
COMPLETEDDone — output contains the result
FAILEDFailed — check error field
ERRORSystem error — not charged

Status Flow

QUEUED → PROCESSING → COMPLETED
                    → FAILED
                    → ERROR

Typical Workflow

  1. Send a generate request to the API endpoint
  2. Save the request_id from the response
  3. Poll every 5-10 seconds: GET /v2/requests/status/{request_id}
  4. When status is "COMPLETED", download from output.media_url

Tip: Use X-Webhook-URL header to get a callback instead of polling.

Qwen Audio 3.0 TTS Flash API Pricing

Your request will cost $0.03 per 1,000 characters.
8. Qwen 3.0 TTS

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.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour 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

HeaderRequiredDefaultDescription
X-Webhook-URLYes (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-ModeNoterminalterminal — 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 POST when the request reaches a terminal status. No callback during PROCESSING.
  • sync mode — POST on every status poll (with delay capped at ~15s) plus a final POST at terminal status. Use when you want progress updates.
  • Idempotency — use request_id as your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates.
  • Response — respond 200 OK within 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

ParameterRequiredTypeDefaultAllowed values / range
textYesrequiredstring——
The text to be converted to speech. Longer text takes proportionally longer to synthesize.
voiceNostringRyanVivian, 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.
languageNostringAutoAuto, English, Chinese, Spanish, French, German, Italian, Japanese, Korean, Portuguese, Russian
Language of the spoken output. Auto detects the language from text.
promptNostring——
Optional style instruction for the delivery, e.g. "Very happy." Ignored when a speaker embedding is supplied.
speaker_voice_embedding_file_urlNostring (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_textNostring——
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.
temperatureNonumber0.90 to 1
Sampling temperature. Higher values make the delivery more varied; lower values make it more deterministic.
top_kNointeger500 or greater
Top-k sampling: how many of the highest-probability tokens are considered at each step.
top_pNonumber10 to 1
Nucleus sampling threshold; only tokens within this cumulative probability are considered.
repetition_penaltyNonumber1.050 or greater
Penalty applied to repeated tokens/codes. Raise it to reduce stuttering or repeated sounds.
max_new_tokensNointeger2001 to 8192
Maximum number of new codec tokens to generate; caps the length of the generated audio.
subtalker_dosampleNobooleantruetrue, false
Enables sampling for the sub-talker stage. Set to false for greedy, more deterministic decoding.
subtalker_temperatureNonumber0.90 to 1
Sampling temperature for the sub-talker stage.
subtalker_top_kNointeger500 or greater
Top-k sampling parameter for the sub-talker stage.
subtalker_top_pNonumber10 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-Typeapplication/json
Cache-Controlno-cache
Ocp-Apim-Subscription-KeyYOUR_SUBSCRIPTION_KEY

Response Handling

Common status codes.

CodeMeaning
202Accepted — Request queued
Bad Request
401Unauthorized
402Insufficient Balance
403Forbidden
Too Many Requests
500Internal 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

FieldTypeDescription
request_idstringUnique request identifier
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR
model_idstringModel that processed the request
errorstring|nullError message if failed
output.media_urlarrayURLs to generated media (R2 CDN)
output.media_typestringMIME type of the output
created_atstringWhen request was created
completed_atstring|nullWhen request completed
polling_urlstringStatus URL (initial response only)

Status Values

StatusDescription
QUEUEDRequest accepted, waiting to be processed
PROCESSINGBeing processed by the model
COMPLETEDDone — output contains the result
FAILEDFailed — check error field
ERRORSystem error — not charged

Status Flow

QUEUED → PROCESSING → COMPLETED
                    → FAILED
                    → ERROR

Typical Workflow

  1. Send a generate request to the API endpoint
  2. Save the request_id from the response
  3. Poll every 5-10 seconds: GET /v2/requests/status/{request_id}
  4. When status is "COMPLETED", download from output.media_url

Tip: Use X-Webhook-URL header to get a callback instead of polling.

Qwen 3.0 TTS API Pricing

Your request will cost $0.09 per 1,000 characters.
about $0.11 for a typical 200-word paragraph
equivalent to $90 per 1M characters
9. Qwen 3.0 ASR Flash

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-text

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour 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.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (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 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / range
audio_urlYesrequiredstring—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.
languageNostring— (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.
contextNostring—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.
formatNostringfrom file extensionwav, 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_itnNobooleanfalsetrue, false
Inverse text normalization — render spoken numbers, dates and amounts as digits. Chinese and English only.
sample_rateNointeger—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_url must be an http or https URL 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
}
FieldTypeDescription
textstringThe full transcript, with punctuation and capitalisation.
languagestringDetected language code, e.g. en or zh. Returned whether or not you supplied a hint.
emotionstringDetected speaker emotion, e.g. happy or neutral.
durationnumberLength 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

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad 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.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance.
429Too many requests.
500Internal 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

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR.
model_idstringThe model that handled the request.
output.media_urlstringURL of the transcript JSON file.
output.media_typestringapplication/json.
created_atstringRequest creation timestamp.
completed_atstringCompletion timestamp.
errorstringError 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 lengthBilled minutesCost
20 seconds1$0.00282
90 seconds2$0.00564
10 minutes10$0.0282
1 hour60$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

Your request will cost $0.0028 per minute of audio, rounded up.
about $0.03 for a 10-minute recording; billed on the audio you submit, not the transcript
equivalent to $0.1692 per audio hour
10. Qwen 3.0 ASR Flash Filetrans

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-text

Authentication

All requests require an API key passed via header.

HeaderTypeRequiredDescription
Ocp-Apim-Subscription-KeystringYesYour 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.

HeaderRequiredDescription
X-Webhook-URLTo enableHTTPS URL to receive the Webhook callback.
X-Webhook-ModeNoterminal (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 200 within a few seconds; the Webhook endpoint must be HTTPS.

Request Parameters

ParameterRequiredTypeDefaultAllowed values / range
audio_urlYesrequiredstring—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.
durationNointeger12 hours1 – 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_url must be an http or https URL. 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!"
    }
  ]
}
FieldTypeDescription
textstringThe full transcript, with punctuation and capitalisation.
languagestringDetected language code, e.g. en or zh. Returned whether or not you supplied a hint.
emotionstringDetected speaker emotion, e.g. happy or neutral.
durationnumberSeconds of speech found in the audio, excluding silence. This is the quantity you are billed on.
audio_infoobjectDetected container format and sample_rate of the source file.
sentencesarraySentence-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

HeaderRequiredDescription
Content-TypeYesapplication/json
Ocp-Apim-Subscription-KeyYesYour API subscription key.
X-Webhook-URLNoEnable Webhook callbacks (see Webhook section).

Response Handling

Status CodeMeaning
202Accepted — request queued; returns request_id and polling_url.
400Bad request — missing audio_url, a non-http(s) URL, or a file larger than 2 GB.
401Unauthorized — missing or invalid subscription key.
402Insufficient balance.
429Too many requests.
500Internal 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

FieldTypeDescription
request_idstringUnique request identifier.
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR.
model_idstringThe model that handled the request.
output.media_urlstringURL of the transcript JSON file.
output.media_typestringapplication/json.
created_atstringRequest creation timestamp.
completed_atstringCompletion timestamp.
errorstringError 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 lengthBilled minutesCost
20 seconds of speech1$0.00282
10 minutes of speech10$0.0282
1 hour of speech60$0.1692
12 hours of speech720$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

Your request will cost $0.0028 per minute of speech, rounded up.
about $0.17 for a one-hour podcast; silence and music are not billed
equivalent to $0.1692 per hour of speech
11. Qwen 3.0 ASR Flash Realtime

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/stream

This 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
MethodWhereUse when
?key=query stringBrowser clients
Ocp-Apim-Subscription-KeyheaderServer-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

ParameterRequiredTypeDefaultAllowed values / range
keyYesrequiredstring—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.
languageNostring— (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

EventMeaning
session.created / session.updatedSession is ready and your configuration was applied.
input_audio_buffer.speech_startedSpeech detected — an utterance has begun.
input_audio_buffer.speech_stoppedThe speaker paused; the utterance is being finalised.
conversation.item.input_audio_transcription.textPartial. The transcript so far for the current utterance; it will be revised.
conversation.item.input_audio_transcription.completedFinal. The settled transcript for one utterance, with language and emotion.
errorSomething 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

LimitValueWhat happens
Maximum session length15 minutesThe connection closes with reason max_session_reached. Open a new one to continue.
Idle timeout60 secondsA session with no audio closes with reason idle_timeout and is not charged.
Concurrent sessionsFair useEach 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.

StatusMeaning
101Connected — the session is live.
401Missing or invalid subscription key.
402Insufficient balance to reserve a session.
426You sent a plain HTTP request; this endpoint requires a WebSocket upgrade.
503The 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 streamedBilled minutesCost
30 seconds1$0.00282
5 minutes5$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

Your request will cost $0.0028 per minute of audio streamed, rounded up.
about $0.04 for a full 15-minute session
equivalent to $0.1692 per hour streamed
12. Qwen 3 TTS 0.6B

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

HeaderRequiredDefaultDescription
X-Webhook-URLYes (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-ModeNoterminalterminal — 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 POST when the request reaches a terminal status. No callback during PROCESSING.
  • sync mode — POST on every status poll (with delay capped at ~15s) plus a final POST at terminal status. Use when you want progress updates.
  • Idempotency — use request_id as your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates.
  • Response — respond 200 OK within 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

FieldTypeRequiredDefault
textstringYesrequired—
The input text to be converted into speech.
promptstringYesrequired—
Emotional or stylistic prompt to guide voice expression (e.g., "Very happy.", "Sad and slow.").
voicestringYesrequired—
Name of the pre-trained voice to use (e.g., "Vivian"). For custom voices, use the assigned voice ID.
languagestringYesrequired—
Language of the input text (e.g., "English", "Spanish", "Chinese").
top_kintegerNo50
Controls diversity of token selection during generation. Higher values increase randomness.
top_pfloatNo1.0
Nucleus sampling threshold. Lower values focus on high-probability tokens.
temperaturefloatNo0.9
Controls randomness in token sampling. Higher values increase creativity.
repetition_penaltyfloatNo1.05
Penalizes repeated tokens to reduce redundancy.
subtalker_dosamplebooleanNotrue
Enables sampling for subtalker model. Disable for deterministic output.
subtalker_top_kintegerNo50
Top-k sampling parameter for subtalker model.
subtalker_top_pfloatNo1.0
Nucleus sampling threshold for subtalker model.
subtalker_temperaturefloatNo0.9
Temperature parameter for subtalker model.
max_new_tokensintegerNo200
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
Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
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

FieldTypeDescription
request_idstringUnique request identifier
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR
model_idstringModel that processed the request
errorstring|nullError message if failed
output.media_urlarrayURLs to generated media (R2 CDN)
output.media_typestringMIME type of the output
created_atstringWhen request was created
completed_atstring|nullWhen request completed
polling_urlstringStatus URL (initial response only)

Status Values

StatusDescription
QUEUEDRequest accepted, waiting to be processed
PROCESSINGBeing processed by the model
COMPLETEDDone — output contains the result
FAILEDFailed — check error field
ERRORSystem error — not charged

Status Flow

QUEUED → PROCESSING → COMPLETED
                    → FAILED
                    → ERROR

Typical Workflow

  1. Send a generate request to the API endpoint
  2. Save the request_id from the response
  3. Poll every 5-10 seconds: GET /v2/requests/status/{request_id}
  4. When status is "COMPLETED", download from output.media_url

Tip: Use X-Webhook-URL header to get a callback instead of polling.

Qwen 3 TTS 0.6B API Pricing

Your request will cost $0.07 per 1,000 characters.
the lighter, faster Qwen 3 TTS tier at $0.07 per 1,000 characters
equivalent to $70 per 1M characters
13. Qwen 3 TTS Voice Design

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

HeaderRequiredDefaultDescription
X-Webhook-URLYes (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-ModeNoterminalterminal — 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 POST when the request reaches a terminal status. No callback during PROCESSING.
  • sync mode — POST on every status poll (with delay capped at ~15s) plus a final POST at terminal status. Use when you want progress updates.
  • Idempotency — use request_id as your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates.
  • Response — respond 200 OK within 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

FieldTypeRequiredDefault
textstringYesrequired—
The spoken content to be synthesized into speech.
promptstringYesrequired—
A style or tone description guiding the voice expression (e.g., "speak in a mysterious tone").
languagestringYesrequired—
The language of the input text (e.g., "English", "Spanish").
top_kintegerNo50
Controls diversity by limiting sampling to the top K most likely tokens.
top_pfloatNo1.0
Nucleus sampling threshold; lower values focus on higher-probability tokens.
temperaturefloatNo0.9
Controls randomness; higher values increase creativity, lower values increase determinism.
repetition_penaltyfloatNo1.05
Penalizes repeated tokens to reduce redundancy in output.
subtalker_dosamplebooleanNotrue
Enables sampling for subtalker generation; disables greedy decoding.
subtalker_top_kintegerNo50
Top-K sampling parameter for subtalker voice modeling.
subtalker_top_pfloatNo1.0
Nucleus sampling threshold for subtalker voice modeling.
subtalker_temperaturefloatNo0.9
Temperature for subtalker voice modeling.
max_new_tokensintegerNo200
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-Typeapplication/json
Cache-Controlno-cache
Ocp-Apim-Subscription-KeyYour API subscription key

Response Handling

Common status codes for Qwen 3 TTS Voice Design [1.7B] generate request.

Code Meaning
202 Accepted — Request queued
Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
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

FieldTypeDescription
request_idstringUnique request identifier
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR
model_idstringModel that processed the request
errorstring|nullError message if failed
output.media_urlarrayURLs to generated media (R2 CDN)
output.media_typestringMIME type of the output
created_atstringWhen request was created
completed_atstring|nullWhen request completed
polling_urlstringStatus URL (initial response only)

Status Values

StatusDescription
QUEUEDRequest accepted, waiting to be processed
PROCESSINGBeing processed by the model
COMPLETEDDone — output contains the result
FAILEDFailed — check error field
ERRORSystem error — not charged

Status Flow

QUEUED → PROCESSING → COMPLETED
                    → FAILED
                    → ERROR

Typical Workflow

  1. Send a generate request to the API endpoint
  2. Save the request_id from the response
  3. Poll every 5-10 seconds: GET /v2/requests/status/{request_id}
  4. When status is "COMPLETED", download from output.media_url

Tip: Use X-Webhook-URL header to get a callback instead of polling.

Qwen 3 TTS Voice Design API Pricing

Your request will cost $0.09 per 1,000 characters.
describe a voice in words and generate speech in it
equivalent to $90 per 1M characters
14. Qwen 3 TTS Clone Voice 0.6B

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

HeaderRequiredDefaultDescription
X-Webhook-URLYes (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-ModeNoterminalterminal — 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 POST when the request reaches a terminal status. No callback during PROCESSING.
  • sync mode — POST on every status poll (with delay capped at ~15s) plus a final POST at terminal status. Use when you want progress updates.
  • Idempotency — use request_id as your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates.
  • Response — respond 200 OK within 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

FieldTypeRequiredDefault
audio_urlstringYesrequired—
An audio file containing the voice sample to clone. Supported formats: MP3, WAV, FLAC.
reference_textstringYesrequired—
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
Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
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

FieldTypeDescription
request_idstringUnique request identifier
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR
model_idstringModel that processed the request
errorstring|nullError message if failed
output.media_urlarrayURLs to generated media (R2 CDN)
output.media_typestringMIME type of the output
created_atstringWhen request was created
completed_atstring|nullWhen request completed
polling_urlstringStatus URL (initial response only)

Status Values

StatusDescription
QUEUEDRequest accepted, waiting to be processed
PROCESSINGBeing processed by the model
COMPLETEDDone — output contains the result
FAILEDFailed — check error field
ERRORSystem error — not charged

Status Flow

QUEUED → PROCESSING → COMPLETED
                    → FAILED
                    → ERROR

Typical Workflow

  1. Send a generate request to the API endpoint
  2. Save the request_id from the response
  3. Poll every 5-10 seconds: GET /v2/requests/status/{request_id}
  4. When status is "COMPLETED", download from output.media_url

Tip: Use X-Webhook-URL header to get a callback instead of polling.

Qwen 3 TTS Clone Voice 0.6B API Pricing

Your request will cost $0.0007 per minute of reference audio.
$0.0007 per minute of the reference clip you upload
15. Qwen 3 TTS Clone Voice 1.7B

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

HeaderRequiredDefaultDescription
X-Webhook-URLYes (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-ModeNoterminalterminal — 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 POST when the request reaches a terminal status. No callback during PROCESSING.
  • sync mode — POST on every status poll (with delay capped at ~15s) plus a final POST at terminal status. Use when you want progress updates.
  • Idempotency — use request_id as your idempotency key. Network retries can deliver the same callback more than once; your handler must tolerate duplicates.
  • Response — respond 200 OK within 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

FieldTypeRequiredDefault
audio_urlstringYesrequired—
An audio file containing the speaker's voice. Supported formats: MP3, WAV, FLAC.
reference_textstringYesrequired—
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
Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
Too Many Requests
500 Internal Server Error

Request Parameters - Qwen 3 TTS Clone Voice [1.7B] check status

FieldTypeRequiredDefault
request_idstringYesrequired—
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

FieldTypeDescription
request_idstringUnique request identifier
statusstringQUEUED, PROCESSING, COMPLETED, FAILED, or ERROR
model_idstringModel that processed the request
errorstring|nullError message if failed
output.media_urlarrayURLs to generated media (R2 CDN)
output.media_typestringMIME type of the output
created_atstringWhen request was created
completed_atstring|nullWhen request completed
polling_urlstringStatus URL (initial response only)

Status Values

StatusDescription
QUEUEDRequest accepted, waiting to be processed
PROCESSINGBeing processed by the model
COMPLETEDDone — output contains the result
FAILEDFailed — check error field
ERRORSystem error — not charged

Status Flow

QUEUED → PROCESSING → COMPLETED
                    → FAILED
                    → ERROR

Typical Workflow

  1. Send a generate request to the API endpoint
  2. Save the request_id from the response
  3. Poll every 5-10 seconds: GET /v2/requests/status/{request_id}
  4. When status is "COMPLETED", download from output.media_url

Tip: Use X-Webhook-URL header to get a callback instead of polling.

Qwen 3 TTS Clone Voice 1.7B API Pricing

Your request will cost $0.0008 per minute of reference audio.
$0.0008 per minute of the reference clip you upload

⚡ 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).

Show data for the last
Generations
3,400last 30d
~113 per day
Success rate
82.4%
of completed generations
Generation time
28.1savg
p95 32.3s
Requests
Oct 31max 800Nov 29
Qwen 3 TTS Voice DesignAvg 27/day
Qwen Audio 3.1 ASR FlashAvg 20/day
Qwen Audio 3.1 ASR Flash FiletransAvg 20/day
Qwen Audio 3.1 TTS-NextAvg 13/day
OtherAvg 33/day
Generation Time
Oct 31max 49.6sNov 29
Qwen 3 TTS Voice DesignAvg 34.3s
Qwen Audio 3.1 ASR FlashAvg 21.1s
Qwen Audio 3.1 ASR Flash FiletransAvg 19.0s
Qwen Audio 3.1 TTS-NextAvg 49.6s
OtherAvg 23.1s
Error Rate
Oct 31max 100.0%Nov 29
Qwen 3 TTS Voice DesignAvg 0.0%
Qwen Audio 3.1 ASR FlashAvg 16.7%
Qwen Audio 3.1 ASR Flash FiletransAvg 16.7%
Qwen Audio 3.1 TTS-NextAvg 25.0%
OtherAvg 30.0%

〰 Uptime

Percent of generations that succeeded over the selected period, per model version.

Avg. Success Rate (30d)
82.35%
across all generations of this model family
Uptime
Oct 31max 100%Nov 29
Qwen 3 TTS Voice DesignAvg 100.00%
Qwen Audio 3.1 ASR FlashAvg 83.33%
Qwen Audio 3.1 ASR Flash FiletransAvg 83.33%
Qwen Audio 3.1 TTS-NextAvg 75.00%
OtherAvg 70.00%