API reference · Alibaba
alibaba/qwen-3-tts/0.6b
Integrate this model through SandBase's unified API, with production-ready schemas and examples.
Production endpoint
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
POST
https://api.sandbase.ai/v1/runModel ID
alibaba/qwen-3-tts/0.6b01
Input Schema
15 parameters · 1 required · 14 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Required | Optional prompt to guide the style of the generated speech. This prompt will be ignored if a speaker embedding is provided. |
text | string | Optional | The text to be converted to speech. |
top_k | integer | Optional | Top-k sampling parameter. · Min: 0 · Default: 50 |
top_p | number | Optional | Top-p sampling parameter. · Min: 0 · Max: 1 · Default: 1 |
voice | string | Optional | The voice to be used for speech synthesis, will be ignored if a speaker embedding is provided. Check out the **[documentation](https://github.com/QwenLM/Qwen3-TTS/tree/main?tab=readme-ov-file#custom-voice-generate)** for each voice's details and which language they primarily support. · Options: Vivian, Serena, Uncle_Fu, Dylan, Eric, Ryan, Aiden, Ono_Anna, Sohee VivianSerenaUncle_FuDylanEricRyanAidenOno_AnnaSohee |
language | string | Optional | The language of the voice. · Options: Auto, English, Chinese, Spanish, French, German, Italian, Japanese, Korean, Portuguese, Russian · Default: "Auto" AutoEnglishChineseSpanishFrenchGermanItalianJapaneseKoreanPortugueseRussian |
temperature | number | Optional | Sampling temperature; higher => more random. · Min: 0 · Max: 1 · Default: 0.9 |
max_new_tokens | integer | Optional | Maximum number of new codec tokens to generate. · Min: 1 · Max: 8192 · Default: 200 |
reference_text | string | Optional | Optional reference text that was used when creating the speaker embedding. Providing this can improve synthesis quality when using a cloned voice. |
subtalker_top_k | integer | Optional | Top-k for sub-talker sampling. · Min: 0 · Default: 50 |
subtalker_top_p | number | Optional | Top-p for sub-talker sampling. · Min: 0 · Max: 1 · Default: 1 |
repetition_penalty | number | Optional | Penalty to reduce repeated tokens/codes. · Min: 0 · Default: 1.05 |
subtalker_dosample | boolean | Optional | Sampling switch for the sub-talker. · Default: true |
subtalker_temperature | number | Optional | Temperature for sub-talker sampling. · Min: 0 · Max: 1 · Default: 0.9 |
speaker_voice_embedding_file_url | string | Optional | URL to a speaker embedding file in safetensors format, from `fal-ai/qwen-3-tts/clone-voice/0.6b` endpoint. If provided, the TTS model will use the cloned voice for synthesis instead of the predefined voices. |
02
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom the completed response
03
Code Examples
Ready-to-run snippets
# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "alibaba/qwen-3-tts/0.6b",
"text": "I feel like I'm taking crazy pills! How can something be both a square and a circle at the same time? It defies all logic!",
"top_k": 50,
"top_p": 1,
"voice": "Vivian",
"prompt": "Very happy.",
"language": "English",
"temperature": 0.9,
"max_new_tokens": 200,
"subtalker_top_k": 50,
"subtalker_top_p": 1,
"repetition_penalty": 1.05,
"subtalker_dosample": true,
"subtalker_temperature": 0.9
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"
