Text to speech
Call Ali qwen3-tts-instruct-flash through the unified /ali/api/v1/services/aigc/multimodal-generation/generation endpoint.
Response contract:
- non-streaming returns the official Ali JSON response;
- streaming returns
text/event-streamand forwards Ali SSE payloads.
Authorizations
Pass Authorization: Bearer <token> in the request header.
Headers
Official Ali HTTP streaming switch. Send enable to receive text/event-stream.
enable Body
Response
Successful call. Non-streaming returns the official Ali JSON response; streaming returns Ali SSE payloads.
HTTP status code. Follows RFC 9110 definitions. For example:
- 200: Request successful, normal response returned
- 400: Client request parameter error
- 401: Unauthorized access
- 404: Resource not found
- 500: Internal server error
Unique request identifier for this request, useful for troubleshooting.
Error code. Returned when the request fails.
Error message. Returned when the request fails.
Model output.
Token or character consumption for this request. qwen-TTS returns token consumption information, while qwen3-TTS-Flash returns character consumption information.