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

# Lyria 3 Pro

> Generate one full song with vocals and lyrics using Google Lyria 3 Pro. Describe it in `prompt`, and optionally add reference images. There is no separate instrumental switch; ask for it in the prompt.

**Pricing** (per song):

| Option | Tokens | USD |
|---|---|---|
| Per song | 5.2 | $0.104 |

**Result**: one `json` item `{ "type": "audio", "value": "https://...mp3", "lyrics": "..." }`. `lyrics` is the text Lyria returns with the audio (the lyrics, or a description of the song structure). All audio carries Google's inaudible SynthID watermark. Result links expire (see `link_expired_at`).



## OpenAPI

````yaml api-reference/audio-generations/openapi-lyria-3-pro.json POST /api/v1/audio/generations
openapi: 3.1.0
info:
  title: GoEnhance API - Lyria 3 Pro
  description: >-
    Generate a full song with vocals and lyrics from a prompt and optional
    images.
  version: 1.0.0
servers:
  - url: https://api.goenhance.ai
security: []
paths:
  /api/v1/audio/generations:
    post:
      tags:
        - AudioGenerations
      summary: Lyria 3 Pro
      description: >-
        Generate one full song with vocals and lyrics using Google Lyria 3 Pro.
        Describe it in `prompt`, and optionally add reference images. There is
        no separate instrumental switch; ask for it in the prompt.


        **Pricing** (per song):


        | Option | Tokens | USD |

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

        | Per song | 5.2 | $0.104 |


        **Result**: one `json` item `{ "type": "audio", "value":
        "https://...mp3", "lyrics": "..." }`. `lyrics` is the text Lyria returns
        with the audio (the lyrics, or a description of the song structure). All
        audio carries Google's inaudible SynthID watermark. 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:
                    - lyria-3-pro
                  description: Model name. Must be `lyria-3-pro`.
                prompt:
                  type: string
                  maxLength: 3000
                  description: >-
                    Required. What the song should be: genre, mood, instruments,
                    theme, and vocals or not (e.g. add `Instrumental only, no
                    vocals`). Max 3000 characters.
                image_urls:
                  type: array
                  items:
                    type: string
                    format: uri
                  maxItems: 10
                  description: >-
                    Optional. Up to 10 reference images (each up to 30 MB) that
                    the song should be inspired by.
                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
                - prompt
            example:
              model: lyria-3-pro
              prompt: >-
                An uplifting synth-pop anthem about city lights at night, female
                vocals
      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: 5.2
                    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: 5.2
                '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: prompt is required
          headers: {}
        '401':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
          headers: {}
      deprecated: false

````