API reference · Alibaba
alibaba/qwen-3-tts/voice-design/1.7b
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/voice-design/1.7b01
Input Schema
12 parameters · 1 required · 11 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Required | Optional prompt to guide the style of the generated speech. |
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 |
language | string | Optional | The language of the voice to be designed. · 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 |
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 |
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/voice-design/1.7b",
"text": "It's in the top drawer... wait, it's empty? No way, that's impossible! I'm sure I put it there!",
"top_k": 50,
"top_p": 1,
"prompt": "Speak in an incredulous tone, but with a hint of panic beginning to creep into your voice.",
"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"
