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

# Create Music

> Generate music with Lyria 3 Pro

Generate music using Google DeepMind's **Lyria 3 Pro** model. Provide a sound prompt describing the desired style and/or lyrics to create original tracks.

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

## Tips

* **Sound Prompt**: Describe the musical style, mood, instruments, and tempo (e.g., `"emotional pop with gentle piano, warm synths, and a catchy beat"`)
* **Lyrics**: Use section tags like `[Verse]`, `[Chorus]`, `[Bridge]` for structured output
* **Image-Guided**: Provide an `imageUrl` to let the model infer mood and style from an image
* **Instrumental**: Set `makeInstrumental: true` to generate without vocals
* **Reproducibility**: Use `seed` for deterministic generation — same seed + same parameters = same output


## OpenAPI

````yaml POST /producer/audios
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/audios:
    post:
      tags:
        - producer
      summary: 音频生成
      description: |-
        音频生成接口（action: create_music）。
        返回 taskId，使用 /producer/tasks 接口轮询获取结果
      operationId: ApiPublicController_createAudio
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AudioRequestDto'
      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:
    AudioRequestDto:
      type: object
      properties:
        action:
          type: string
          enum:
            - create_music
          description: Action type to perform
          example: create_music
        soundPrompt:
          type: string
          description: Sound/style prompt describing the desired music style
          example: driving energetic beat, rapid rhythm, high BPM
        lyrics:
          type: string
          description: |-
            Lyrics content with section tags like [Verse], [Chorus], etc.
                For create_music: either soundPrompt or lyrics should be provided.
                Set makeInstrumental=true to ignore lyrics.
          example: |-
            [Verse 1]
            I've been running in circles...

            [Chorus]
            I keep coming back to you...
        title:
          type: string
          maxLength: 80
          description: Song title (max 80 characters)
          example: Back to You
        model:
          type: string
          enum:
            - Lyria 3 Pro
          description: Music generation model (currently only Lyria 3 Pro)
          example: Lyria 3 Pro
        seed:
          type: number
          description: Random seed for reproducible generation
          example: 877369
        makeInstrumental:
          type: boolean
          description: 'Generate instrumental only (ignores lyrics). Default: false'
          example: false
        imageUrl:
          type: string
          description: >-
            Image URL for image-guided generation (will be uploaded
            automatically)
          example: https://example.com/cover.jpg
      required:
        - action
    TaskIdDto:
      type: object
      properties:
        taskId:
          type: string
          description: 任务 ID，用于后续查询结果
      required:
        - taskId
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````