CosyVoice v3 Flash
[Core Function] CosyVoice v3 Flash is Alibaba’s low-latency text-to-speech model. [Strengths] Rich system voice catalog, fixed-format instruction on Instruct-capable system voices, SSML, hot_fix, AIGC watermark, Markdown filter (cloned voices only), and multiple audio formats with faster turnaround than Plus. [Best For] Voice assistants, interactive prompts, IVR, short announcements, dialect system voices, and latency-sensitive batch TTS. [Limitations] Do NOT use when maximum speech quality or long-form audiobook fidelity is the priority (use Plus). System-voice instruction must follow CosyVoice voice-list fixed Chinese formats. [Routing] Choose Flash when speed or a richer system-voice catalog matters most. Choose Plus for premium narration quality.
Authorizations
Modellix API Key. Format: Bearer <your_api_key>
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"
Audio encoding format. Default mp3.
mp3, pcm, wav, opus "mp3"
Audio sample rate in Hz. Default 22050.
8000, 16000, 22050, 24000, 44100, 48000 24000
Output volume. Default 50. Range 0 (silent) to 100 (maximum).
0 <= x <= 10050
Speech rate multiplier. Default 1.0. Range 0.5 (slow) to 2.0 (fast).
0.5 <= x <= 21
Pitch multiplier. Default 1.0. Range 0.5 (lower) to 2.0 (higher).
0.5 <= x <= 21
Audio bit rate in kbps. Optional. Range 6 to 510. Only supported when format is opus; do not use for mp3, pcm, or wav.
6 <= x <= 51032
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."
Target language hint for pronunciation (numbers, symbols, minor languages).
zh, en, fr, de, ja, ko, ru, pt, th, id, vi, es, it, ms, fil, ar "en"
Random seed for reproducible synthesis when text, voice, and other parameters are identical. Default 0. Range 0 to 65535.
0 <= x <= 655350
Whether to parse text as SSML. Default false. When true, text must follow Alibaba CosyVoice SSML rules.
false
Text hot-fix before synthesis. Optional object with pronunciation (custom pinyin for Chinese words) and replace (text substitution) arrays per Alibaba HTTP API.
Embed AIGC invisible watermark into wav/mp3/opus output. Supported on cosyvoice-v3-plus and cosyvoice-v3-flash.
AIGC ContentPropagator. Only effective when enable_aigc_tag is true.
AIGC PropagateID. Only effective when enable_aigc_tag is true.
Filter Markdown markers before synthesis. Only supported on cosyvoice-v3-flash with cloned voices.
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.