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

# Download Audio

> Download audio in MP3, M4A, or WAV format

Download a generated audio file in the specified format.

<Info>
  This is an async task. The response contains a `taskId` — use [Get Task Status](/api-reference/producer/task) to poll for the download URL.
</Info>

## Format Recommendations

| Format | Best For                                             |
| ------ | ---------------------------------------------------- |
| `mp3`  | Sharing and streaming (smallest file size)           |
| `m4a`  | General use (default, good quality/size balance)     |
| `wav`  | Professional editing (uncompressed, highest quality) |

<Tip>
  Download URLs are temporary. Save the file promptly after receiving the URL.
</Tip>


## OpenAPI

````yaml POST /producer/download
openapi: 3.0.0
info:
  title: Producer - AI Music Generation
  description: >-
    Generate music with Google DeepMind's Lyria 3 Pro model. Supports
    text-to-music, lyrics-to-music, and image-guided generation with stem
    separation and multi-format export.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.mountsea.ai
    description: API Gateway
security: []
tags:
  - name: producer
    description: >-
      Music generation, audio upload, stem separation, and export endpoints
      powered by Lyria 3 Pro
paths:
  /producer/download:
    post:
      tags:
        - producer
      summary: 下载音频
      description: 下载指定格式的音频文件（支持 mp4/m4a/wav）。返回 taskId，使用 /producer/tasks 接口轮询获取结果
      operationId: ApiPublicController_downloadAudio
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DownloadAudioDto'
      responses:
        '200':
          description: 任务创建成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskIdDto'
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskIdDto'
      security:
        - bearerAuth: []
components:
  schemas:
    DownloadAudioDto:
      type: object
      properties:
        audioId:
          type: string
          description: 音频 ID
        format:
          enum:
            - mp3
            - m4a
            - wav
          type: string
          description: 格式（mp3/m4a/wav），默认 m4a
          default: m4a
      required:
        - audioId
    TaskIdDto:
      type: object
      properties:
        taskId:
          type: string
          description: 任务 ID，用于后续查询结果
      required:
        - taskId
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````