curl --request POST \
--url https://api.modellix.ai/api/v1/alibaba/cosyvoice-v3-flash \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "There is a large garden behind my house.",
"voice": "longanyang"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-cosyvoice-v3-flash-001",
"model_id": "alibaba/cosyvoice-v3-flash",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-cosyvoice-v3-flash-001"
}
}
}{
"code": 400,
"message": "Invalid parameters: voice is required for alibaba/cosyvoice-v3-plus"
}{
"code": 401,
"message": "Authentication failed: invalid API key"
}{
"code": 429,
"message": "Rate limit exceeded: 100 requests per minute, retry after 60 seconds"
}{
"code": 500,
"message": "Internal server error"
}CosyVoice V3 Flash
Alibaba’s low-latency text-to-speech model for voice assistants, prompts, and short announcements. It speaks with a wider set of system voices than CosyVoice v3 Plus, including Chinese dialects.
curl --request POST \
--url https://api.modellix.ai/api/v1/alibaba/cosyvoice-v3-flash \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "There is a large garden behind my house.",
"voice": "longanyang"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-cosyvoice-v3-flash-001",
"model_id": "alibaba/cosyvoice-v3-flash",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-cosyvoice-v3-flash-001"
}
}
}{
"code": 400,
"message": "Invalid parameters: voice is required for alibaba/cosyvoice-v3-plus"
}{
"code": 401,
"message": "Authentication failed: invalid API key"
}{
"code": 429,
"message": "Rate limit exceeded: 100 requests per minute, retry after 60 seconds"
}{
"code": 500,
"message": "Internal server error"
}Body
Shared CosyVoice v3 TTS request fields. Submit as an async task; poll GET /api/v1/tasks/{task_id} for the audio URL in result.resources.
Text to synthesize. Required. Max 20,000 Unicode characters. Supports plain text, SSML (set enable_ssml to true), and LaTeX formulas per Alibaba documentation.
1 - 20000"There is a large garden behind my house."
System or cloned voice ID for cosyvoice-v3-flash. Full official CosyVoice voice catalog (use only voices listed under cosyvoice-v3-flash for system voices): https://help.aliyun.com/zh/model-studio/cosyvoice-voice-list . Do not mix Plus and Flash system voices. Cloned or designed voice IDs are also accepted. Sample system voices (not exhaustive): longanyang, longhuhu_v3, longpaopao_v3, longshanshan_v3, longjiaxin_v3, loongkyong_v3, longfei_v3, longyingxiao_v3, longyingxun_v3, longxiaochun_v3, longantai_v3, longmiao_v3, longjiqi_v3, longanran_v3, longshuo_v3.
1 - 256"longanyang"
Optional speaking-style instruction for Instruct-capable system voices. Enforced weighted length ≤100 (CJK ideographs / Han count as 2; other characters count as 1). Alibaba requires fixed Chinese formats from the CosyVoice voice list for system voices.
"Speak in a friendly customer-service tone."
Response
Task submitted successfully. Poll GET /api/v1/tasks/{task_id} until the task completes; synthesized audio is returned on the task result.
Response object for asynchronous task submission.