curl --request POST \
--url https://api.modellix.ai/api/v1/alibaba/cosyvoice-v3-plus \
--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-plus-001",
"model_id": "alibaba/cosyvoice-v3-plus",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-cosyvoice-v3-plus-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 Plus
Alibaba’s high-quality text-to-speech model for narration, audiobooks, and brand voiceovers. It speaks with system voices in Chinese or English, and can read styled delivery and formulas.
curl --request POST \
--url https://api.modellix.ai/api/v1/alibaba/cosyvoice-v3-plus \
--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-plus-001",
"model_id": "alibaba/cosyvoice-v3-plus",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-cosyvoice-v3-plus-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 voice for cosyvoice-v3-plus. Complete set from the Alibaba CosyVoice voice list (https://help.aliyun.com/zh/model-studio/cosyvoice-voice-list).
longanyang, longanhuan "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.