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

# MiniMax Music 3.0

> Generate one full song (up to about 5 minutes) with MiniMax Music 3.0.

- **With your lyrics**: send `lyrics` (and optionally a `prompt` for the style).
- **Lyrics written for you**: send only a `prompt`.
- **Instrumental**: `instrumental: true` plus a `prompt`.

**Pricing** (per song):

| Option | Tokens | USD |
|---|---|---|
| Per song (up to 5 min) | 9.75 | $0.195 |

**Result**: one `json` item `{ "type": "audio", "value": "https://...mp3", "audio_duration": 125.36, "lyrics": "..." }` (`lyrics` only when you sent them). Result links expire (see `link_expired_at`).



## OpenAPI

````yaml api-reference/audio-generations/openapi-minimax-music-3-0.json POST /api/v1/audio/generations
openapi: 3.1.0
info:
  title: GoEnhance API - MiniMax Music 3.0
  description: >-
    Generate a full song from your lyrics, or from a prompt with lyrics written
    for you.
  version: 1.0.0
servers:
  - url: https://api.goenhance.ai
security: []
paths:
  /api/v1/audio/generations:
    post:
      tags:
        - AudioGenerations
      summary: MiniMax Music 3.0
      description: >-
        Generate one full song (up to about 5 minutes) with MiniMax Music 3.0.


        - **With your lyrics**: send `lyrics` (and optionally a `prompt` for the
        style).

        - **Lyrics written for you**: send only a `prompt`.

        - **Instrumental**: `instrumental: true` plus a `prompt`.


        **Pricing** (per song):


        | Option | Tokens | USD |

        |---|---|---|

        | Per song (up to 5 min) | 9.75 | $0.195 |


        **Result**: one `json` item `{ "type": "audio", "value":
        "https://...mp3", "audio_duration": 125.36, "lyrics": "..." }` (`lyrics`
        only when you sent them). Result links expire (see `link_expired_at`).
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: false
          example: '{{Authorization}}'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  enum:
                    - minimax-music-3-0
                  description: Model name. Must be `minimax-music-3-0`.
                lyrics:
                  type: string
                  maxLength: 3500
                  description: >-
                    Lyrics to sing, with `\n` between lines. Supports section
                    tags such as `[Intro]`, `[Verse]`, `[Pre Chorus]`,
                    `[Chorus]`, `[Bridge]`, `[Outro]`, `[Inst]`, `[Solo]`. Max
                    3500 characters. Omit it and give a `prompt` to have the
                    lyrics written for you. Not allowed when `instrumental` is
                    `true`.
                prompt:
                  type: string
                  maxLength: 2000
                  description: >-
                    Style, mood and scenario of the music, e.g. `Pop,
                    melancholic, perfect for a rainy night`. Max 2000
                    characters. Required when `instrumental` is `true` or when
                    `lyrics` is omitted.
                instrumental:
                  type: boolean
                  default: false
                  description: >-
                    `true` = no vocals. Requires `prompt` and does not accept
                    `lyrics`.
                custom_callback_url:
                  type: string
                  format: uri
                  description: >-
                    Optional. A publicly accessible HTTPS URL. When the task
                    status changes (processing / success / failed), GoEnhance
                    sends a POST request to this URL. The request body is
                    identical to the response of GET /api/v1/jobs/detail. If
                    your server does not respond with HTTP 200, the notification
                    is retried up to 3 times, with a 3-second timeout per
                    attempt.
                  example: https://your-server.com/goenhance/callback
              required:
                - model
            example:
              model: minimax-music-3-0
              prompt: Indie folk, warm and nostalgic
              lyrics: |-
                [Verse]
                We folded paper boats in May
                [Chorus]
                Paper boats, carry me home
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      img_uuid:
                        type: string
                      cost:
                        type: number
                        description: >-
                          Tokens deducted for this request. This is the amount
                          actually charged, so it already reflects any discount
                          active on your account and can be lower than the
                          listed price. Tokens are deducted when the task is
                          accepted, and refunded automatically if the generation
                          ends in failure.
                        example: 9.75
                    required:
                      - img_uuid
                      - cost
                required:
                  - code
                  - msg
                  - data
              examples:
                '1':
                  summary: Success
                  value:
                    code: 0
                    msg: Success
                    data:
                      img_uuid: c12b656c-747a-44fd-9c80-add79b0c52d5
                      cost: 9.75
                '2':
                  summary: Insufficient tokens
                  value:
                    code: 100
                    msg: tokens is not enough
                quota:
                  summary: API key quota exceeded
                  value:
                    code: 101
                    msg: 'API key quota exceeded: 4990 of 5000 tokens used (monthly)'
                bad:
                  summary: Invalid parameters
                  value:
                    code: -1
                    msg: >-
                      Provide lyrics, or a prompt to have the lyrics written for
                      you
          headers: {}
        '401':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
          headers: {}
      deprecated: false

````