curl --request POST \
--url https://baze-api.powerbuyin.top/v1/audio/speech \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "qwen3-tts-instruct-flash",
"input": "Introduce this product with a slightly faster speaking rate.",
"voice": "Cherry",
"instructions": "Speak faster with a brighter tone.",
"optimize_instructions": false,
"language_type": "English"
}
'{
"status_code": 123,
"request_id": "<string>",
"code": "<string>",
"message": "<string>",
"output": {
"text": null,
"finish_reason": "<string>",
"choices": null,
"audio": {
"data": "<string>",
"url": "<string>",
"id": "<string>",
"expires_at": 123
}
},
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"total_tokens": 123,
"characters": 123
}
}Call Ali qwen3-tts-instruct-flash through the unified /v1/audio/speech endpoint.
Response contract:
text/event-stream and forwards Ali SSE payloads.curl --request POST \
--url https://baze-api.powerbuyin.top/v1/audio/speech \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "qwen3-tts-instruct-flash",
"input": "Introduce this product with a slightly faster speaking rate.",
"voice": "Cherry",
"instructions": "Speak faster with a brighter tone.",
"optimize_instructions": false,
"language_type": "English"
}
'{
"status_code": 123,
"request_id": "<string>",
"code": "<string>",
"message": "<string>",
"output": {
"text": null,
"finish_reason": "<string>",
"choices": null,
"audio": {
"data": "<string>",
"url": "<string>",
"id": "<string>",
"expires_at": 123
}
},
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"total_tokens": 123,
"characters": 123
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Official Ali HTTP streaming switch. Send enable to receive text/event-stream.
enable qwen3-tts-instruct-flash Input text to synthesize.
System voice name. Only the enum values listed here are currently supported on this channel.
Cherry, Serena, Ethan, Chelsie, Momo, Vivian, Moon, Maia, Kai, Nofish, Bella, Eldric Sage, Mia, Mochi, Bellona, Vincent, Bunny, Neil, Elias, Arthur, Nini, Seren, Pip, Stella Style-control instruction.
Whether to optimize instructions. An explicit false is preserved and forwarded.
Language type.
Auto, Chinese, English, German, Italian, Portuguese, Spanish, Japanese, Korean, French, Russian Successful call. Non-streaming returns the official Ali JSON response; streaming returns Ali SSE payloads.