> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modellix.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.



## OpenAPI

````yaml /model-api/alibaba/alibaba-t2s.json post /alibaba/cosyvoice-v3-flash
openapi: 3.1.0
info:
  title: Alibaba CosyVoice and Qwen-Audio Text-to-Speech Models API
  description: >-
    CosyVoice and Qwen-Audio text-to-speech on Alibaba: system-voice CosyVoice
    v3 Plus/Flash, Qwen-Audio 3.0 TTS Plus/Flash, plus one-shot voice design
    (cosyvoice-design). Submit an async task, then poll GET
    /api/v1/tasks/{task_id} for the audio. For system voices, see the Alibaba
    CosyVoice and Qwen-Audio-TTS voice lists.
  version: 1.0.0
  contact:
    name: Modellix Support
    email: support@modellix.ai
servers:
  - url: https://api.modellix.ai/api/v1
    description: >-
      The text-to-speech models API from Alibaba (CosyVoice v3, Qwen-Audio 3.0
      TTS, and cosyvoice-design).
security:
  - bearerAuth: []
paths:
  /alibaba/cosyvoice-v3-flash:
    post:
      summary: CosyVoice v3 Flash
      description: >-
        [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.
      operationId: cosyvoice3FlashAsync
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CosyVoice3FlashTTSRequest'
            examples:
              basic:
                summary: Minimal synthesis with system voice
                value:
                  text: There is a large garden behind my house.
                  voice: longanyang
              with_controls:
                summary: System voice with format and prosody
                value:
                  text: Please check your order status.
                  voice: longanyang
                  format: mp3
                  sample_rate: 22050
                  rate: 1.1
                  pitch: 1
                  language_hint: en
              dialect_voice:
                summary: Dialect system voice (Henan-capable longanhuan_v3)
                value:
                  text: Have you eaten yet?
                  voice: longanhuan_v3
                  format: wav
                  sample_rate: 24000
      responses:
        '200':
          description: >-
            Task submitted successfully. Poll GET /api/v1/tasks/{task_id} until
            the task completes; synthesized audio is returned on the task
            result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncTaskResponse'
              example:
                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
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    CosyVoice3FlashTTSRequest:
      allOf:
        - $ref: '#/components/schemas/CosyVoice3TTSRequestBase'
        - type: object
          required:
            - text
            - voice
          properties:
            voice:
              type: string
              description: >-
                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.
              minLength: 1
              maxLength: 256
              example: longanyang
              x-systemVoiceIds:
                - 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
            enable_markdown_filter:
              type: boolean
              default: false
              description: >-
                Filter Markdown markers before synthesis. Only supported on
                cosyvoice-v3-flash with cloned voices.
    AsyncTaskResponse:
      description: Response object for asynchronous task submission.
      type: object
      required:
        - code
        - message
        - data
      properties:
        code:
          type: integer
          description: Response code, 0 indicates success
          example: 0
        message:
          type: string
          description: Response message
          example: success
        data:
          type: object
          required:
            - status
            - task_id
            - model_id
          description: >-
            Task submission details. Poll GET /api/v1/tasks/{task_id} until
            status is success; audio appears in result.resources.
          properties:
            status:
              type: string
              enum:
                - pending
                - processing
              description: Initial task status
              example: pending
            task_id:
              type: string
              description: Unique task identifier for polling
              example: task-cosyvoice-v3-plus-001
            model_id:
              type: string
              description: Model ID in provider/model format
              example: alibaba/cosyvoice-v3-plus
            get_result:
              type: object
              description: >-
                Endpoint to query the task result. See Common API: Query Task
                Result.
              properties:
                method:
                  type: string
                  example: GET
                url:
                  type: string
                  example: >-
                    https://api.modellix.ai/api/v1/tasks/task-cosyvoice-v3-plus-001
    CosyVoice3TTSRequestBase:
      type: object
      description: >-
        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.
      properties:
        text:
          type: string
          description: >-
            Text to synthesize. Required. Max 20,000 Unicode characters.
            Supports plain text, SSML (set enable_ssml to true), and LaTeX
            formulas per Alibaba documentation.
          minLength: 1
          maxLength: 20000
          example: There is a large garden behind my house.
        format:
          type: string
          description: Audio encoding format. Default mp3.
          enum:
            - mp3
            - pcm
            - wav
            - opus
          default: mp3
          example: mp3
        sample_rate:
          type: integer
          description: Audio sample rate in Hz. Default 22050.
          enum:
            - 8000
            - 16000
            - 22050
            - 24000
            - 44100
            - 48000
          default: 22050
          example: 24000
        volume:
          type: integer
          description: Output volume. Default 50. Range 0 (silent) to 100 (maximum).
          minimum: 0
          maximum: 100
          default: 50
          example: 50
        rate:
          type: number
          description: Speech rate multiplier. Default 1.0. Range 0.5 (slow) to 2.0 (fast).
          minimum: 0.5
          maximum: 2
          default: 1
          example: 1
        pitch:
          type: number
          description: Pitch multiplier. Default 1.0. Range 0.5 (lower) to 2.0 (higher).
          minimum: 0.5
          maximum: 2
          default: 1
          example: 1
        bit_rate:
          type: integer
          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.
          minimum: 6
          maximum: 510
          example: 32
        instruction:
          type: string
          description: >-
            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.
          example: Speak in a friendly customer-service tone.
        language_hint:
          type: string
          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
        seed:
          type: integer
          description: >-
            Random seed for reproducible synthesis when text, voice, and other
            parameters are identical. Default 0. Range 0 to 65535.
          minimum: 0
          maximum: 65535
          default: 0
          example: 0
        enable_ssml:
          type: boolean
          description: >-
            Whether to parse text as SSML. Default false. When true, text must
            follow Alibaba CosyVoice SSML rules.
          default: false
          example: false
        hot_fix:
          type: object
          description: >-
            Text hot-fix before synthesis. Optional object with pronunciation
            (custom pinyin for Chinese words) and replace (text substitution)
            arrays per Alibaba HTTP API.
          example:
            replace:
              - Modellix: Modelix
        enable_aigc_tag:
          type: boolean
          default: false
          description: >-
            Embed AIGC invisible watermark into wav/mp3/opus output. Supported
            on cosyvoice-v3-plus and cosyvoice-v3-flash.
        aigc_propagator:
          type: string
          description: AIGC ContentPropagator. Only effective when enable_aigc_tag is true.
        aigc_propagate_id:
          type: string
          description: AIGC PropagateID. Only effective when enable_aigc_tag is true.
    ErrorResponse:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: integer
          description: Error code (equals HTTP status code)
          example: 400
        message:
          type: string
          description: 'Error message in format ''Category: detail'''
          example: 'Invalid parameters: voice is required for alibaba/cosyvoice-v3-plus'
  responses:
    BadRequest:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: 400
            message: >-
              Invalid parameters: voice is required for
              alibaba/cosyvoice-v3-plus
    Unauthorized:
      description: Unauthorized - Invalid or missing API Key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: 401
            message: 'Authentication failed: invalid API key'
    TooManyRequests:
      description: Too many requests - Rate limit exceeded
      headers:
        X-RateLimit-Limit:
          description: Maximum requests per minute
          schema:
            type: integer
            example: 100
        X-RateLimit-Remaining:
          description: Remaining quota in current window
          schema:
            type: integer
            example: 0
        X-RateLimit-Reset:
          description: Rate limit window reset time (Unix timestamp)
          schema:
            type: integer
            example: 1704067260
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: 429
            message: >-
              Rate limit exceeded: 100 requests per minute, retry after 60
              seconds
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: 500
            message: Internal server error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Modellix API Key. Format: Bearer <your_api_key>'

````