{"servers":[{"url":"https://api.modellix.ai/api/v1/alibaba/qwen-audio-3.0-tts-flash"}],"post":{"description":"[Core Function] Qwen-Audio 3.0 TTS Flash is Alibaba's low-latency Qwen-Audio text-to-speech model on the same SpeechSynthesizer endpoint family as CosyVoice. [Strengths] Fast synthesis with voice, format, sample-rate, prosody, SSML, instruction, language_hint, and AIGC watermark controls; system voices include longanhuan_v3.6, longjielidou_v3.6, loongeva_v3.6, and loongjohn (see the Qwen-Audio-TTS voice list). [Best For] Voice assistants, interactive prompts, short announcements, multilingual product flows, and latency-sensitive batch TTS using Qwen-Audio voices. [Limitations] Does not expose hot_fix or Markdown filtering. Do NOT mix Plus-only voices (e.g. longanlingxin) with Flash. Use Plus when maximum narration quality matters more than turnaround time. [Routing] Choose Flash when speed matters most. Choose qwen-audio-3.0-tts-plus for premium narration quality.","operationId":"qwenAudio30TTSFlashAsync","requestBody":{"content":{"application/json":{"examples":{"basic":{"summary":"Minimal synthesis with Qwen-Audio voice","value":{"text":"There is a large garden behind my house.","voice":"longanhuan_v3.6"}},"with_controls":{"summary":"Qwen-Audio voice with format and prosody","value":{"format":"mp3","language_hint":"fil","pitch":1,"rate":1.1,"sample_rate":22050,"text":"Please check your order status.","voice":"longanhuan_v3.6"}}},"schema":{"allOf":[{"description":"Shared Qwen-Audio 3.0 TTS request fields. Submit as an async task; poll GET /api/v1/tasks/{task_id} for the audio URL in result.resources. Qwen-Audio TTS does not expose hot_fix or Markdown filtering.","properties":{"aigc_propagate_id":{"description":"AIGC PropagateID. Only effective when enable_aigc_tag is true.","type":"string"},"aigc_propagator":{"description":"AIGC ContentPropagator. Only effective when enable_aigc_tag is true.","type":"string"},"bit_rate":{"description":"Audio bit rate in kbps. Optional. Range 6 to 510. Only supported when format is opus; do not use for mp3, pcm, or wav.","example":32,"maximum":510,"minimum":6,"type":"integer"},"enable_aigc_tag":{"default":false,"description":"Embed AIGC invisible watermark into wav/mp3/opus output. Supported on Qwen-Audio 3.0 TTS Plus and Flash.","type":"boolean"},"enable_ssml":{"default":false,"description":"Whether to parse text as SSML. Default false. When true, text must follow Alibaba SpeechSynthesizer SSML rules.","example":false,"type":"boolean"},"format":{"default":"mp3","description":"Audio encoding format. Default mp3.","enum":["mp3","pcm","wav","opus"],"example":"mp3","type":"string"},"instruction":{"description":"Optional speaking-style instruction. Enforced weighted length ≤100 (CJK ideographs / Han count as 2; other characters count as 1).","example":"Speak in a friendly customer-service tone.","type":"string"},"language_hint":{"description":"Target language hint for pronunciation (numbers, symbols, minor languages).","enum":["zh","en","fr","de","ja","ko","ru","pt","th","id","vi","es","it","ms","fil","ar"],"example":"en","type":"string"},"pitch":{"default":1,"description":"Pitch multiplier. Default 1.0. Range 0.5 (lower) to 2.0 (higher).","example":1,"maximum":2,"minimum":0.5,"type":"number"},"rate":{"default":1,"description":"Speech rate multiplier. Default 1.0. Range 0.5 (slow) to 2.0 (fast).","example":1,"maximum":2,"minimum":0.5,"type":"number"},"sample_rate":{"default":22050,"description":"Audio sample rate in Hz. Default 22050.","enum":[8000,16000,22050,24000,44100,48000],"example":24000,"type":"integer"},"seed":{"default":0,"description":"Random seed for reproducible synthesis when text, voice, and other parameters are identical. Default 0. Range 0 to 65535.","example":0,"maximum":65535,"minimum":0,"type":"integer"},"text":{"description":"Text to synthesize. Required. Max 20,000 Unicode characters. Supports plain text and SSML (set enable_ssml to true) per Alibaba documentation.","example":"There is a large garden behind my house.","maxLength":20000,"minLength":1,"type":"string"},"volume":{"default":50,"description":"Output volume. Default 50. Range 0 (silent) to 100 (maximum).","example":50,"maximum":100,"minimum":0,"type":"integer"}},"type":"object"},{"properties":{"voice":{"description":"Voice ID for qwen-audio-3.0-tts-flash only. Use a Flash system voice (e.g. longanhuan_v3.6, longjielidou_v3.6, loongeva_v3.6, loongjohn) or a Flash base/cloned voice ID from the official Qwen-Audio-TTS voice list: https://help.aliyun.com/zh/model-studio/qwen-audio-tts-voice-list . Do not mix Plus system voices with Flash.","example":"longanhuan_v3.6","maxLength":256,"minLength":1,"type":"string"}},"required":["text","voice"],"type":"object"}]}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"code":0,"data":{"get_result":{"method":"GET","url":"https://api.modellix.ai/api/v1/tasks/task-qwen-audio-3-tts-flash-001"},"model_id":"alibaba/qwen-audio-3.0-tts-flash","status":"pending","task_id":"task-qwen-audio-3-tts-flash-001"},"message":"success"},"schema":{"description":"Response object for asynchronous task submission.","properties":{"code":{"description":"Response code, 0 indicates success","example":0,"type":"integer"},"data":{"description":"Task submission details. Poll GET /api/v1/tasks/{task_id} until status is success; audio appears in result.resources.","properties":{"get_result":{"description":"Endpoint to query the task result. See Common API: Query Task Result.","properties":{"method":{"example":"GET","type":"string"},"url":{"example":"https://api.modellix.ai/api/v1/tasks/task-cosyvoice-v3-plus-001","type":"string"}},"type":"object"},"model_id":{"description":"Model ID in provider/model format","example":"alibaba/cosyvoice-v3-plus","type":"string"},"status":{"description":"Initial task status","enum":["pending","processing"],"example":"pending","type":"string"},"task_id":{"description":"Unique task identifier for polling","example":"task-cosyvoice-v3-plus-001","type":"string"}},"required":["status","task_id","model_id"],"type":"object"},"message":{"description":"Response message","example":"success","type":"string"}},"required":["code","message","data"],"type":"object"}}},"description":"Task submitted successfully. Poll GET /api/v1/tasks/{task_id} until the task completes; synthesized audio is returned on the task result."},"400":{"content":{"application/json":{"example":{"code":400,"message":"Invalid parameters: voice is required for alibaba/cosyvoice-v3-plus"},"schema":{"properties":{"code":{"description":"Error code (equals HTTP status code)","example":400,"type":"integer"},"message":{"description":"Error message in format 'Category: detail'","example":"Invalid parameters: voice is required for alibaba/cosyvoice-v3-plus","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Invalid request parameters"},"401":{"content":{"application/json":{"example":{"code":401,"message":"Authentication failed: invalid API key"},"schema":{"properties":{"code":{"description":"Error code (equals HTTP status code)","example":400,"type":"integer"},"message":{"description":"Error message in format 'Category: detail'","example":"Invalid parameters: voice is required for alibaba/cosyvoice-v3-plus","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Unauthorized - Invalid or missing API Key"},"429":{"content":{"application/json":{"example":{"code":429,"message":"Rate limit exceeded: 100 requests per minute, retry after 60 seconds"},"schema":{"properties":{"code":{"description":"Error code (equals HTTP status code)","example":400,"type":"integer"},"message":{"description":"Error message in format 'Category: detail'","example":"Invalid parameters: voice is required for alibaba/cosyvoice-v3-plus","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Too many requests - Rate limit exceeded","headers":{"X-RateLimit-Limit":{"description":"Maximum requests per minute","schema":{"example":100,"type":"integer"}},"X-RateLimit-Remaining":{"description":"Remaining quota in current window","schema":{"example":0,"type":"integer"}},"X-RateLimit-Reset":{"description":"Rate limit window reset time (Unix timestamp)","schema":{"example":1704067260,"type":"integer"}}}},"500":{"content":{"application/json":{"example":{"code":500,"message":"Internal server error"},"schema":{"properties":{"code":{"description":"Error code (equals HTTP status code)","example":400,"type":"integer"},"message":{"description":"Error message in format 'Category: detail'","example":"Invalid parameters: voice is required for alibaba/cosyvoice-v3-plus","type":"string"}},"required":["code","message"],"type":"object"}}},"description":"Internal server error"}},"summary":"Qwen-Audio 3.0 TTS Flash","x-mint":{"href":"alibaba/qwen-audio-3-0-tts-flash"}}}