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

# Lyria 2

> Google Lyria 2 music generation. English prompts only, short instrumental clips (~30 s, WAV). Use Lyria 3 Pro for other languages or longer pieces.

Model id `lyria-2` · Google · audio · 1 mode: `text-to-music`.

> [!NOTE]
>
> This page reflects the current catalog. Inputs, allowed values, limits and prices can change as the model evolves; the field names and their meaning do not. For the exact schema at any time, your agent calls [`get_model`](https://docs.argil.ai/v2/mcp/tools) with the mode.

## Text To Music

Mode `text-to-music`. Google Lyria 2 music generation. English prompts only, short instrumental clips (\~30 s, WAV). Use Lyria 3 Pro for other languages or longer pieces. Enabled on request.

### Input

| Field | Type | Required | Allowed | Default | Description |
| - | - | - | - | - | - |
| `prompt` | string | Yes | up to 2,000 characters | | The music to make: mood, genre, instruments, tempo (BPM) and key. |
| `negative_prompt` | string | | | | What to avoid in the music (e.g. vocals, distortion). |
| `seed` | integer | | | | Seed for a reproducible clip. |

### Pricing

3.87 credits per generated clip.

Fixed price: charged as estimated.

For the exact price of a request, use [`estimate_generation`](https://docs.argil.ai/v2/mcp/tools).

### Example

The arguments of [`generate_media`](https://docs.argil.ai/v2/mcp/tools#generate_media):

```json theme={null}
{
  "model": "lyria-2",
  "mode": "text-to-music",
  "input": {
    "prompt": "Calm lo-fi piano loop with soft vinyl crackle"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.