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

# Lyria RealTime

> Google's real-time AI music generation model.

Google's real-time AI music generation model. Generates high-quality music from text prompts with streaming audio output.

| | |
| - | - |
| Model id | `models/lyria-realtime-exp` |
| Media | audio |
| Submit to | `POST /v1/audio` |
| Price | 20 credits per\_minute before discounts |
| Typical time | about 140.0 s |

## Request

**Required:** `prompt_tags`\
**Optional:** `bpm`, `duration`, `energy`, `sample_count`, `temperature`, `tempo`

```json theme={null}
{
  "model": "models/lyria-realtime-exp",
  "prompt_tags": [
    "warm indian wedding underscore soft tablas strings hopeful"
  ],
  "bpm": 90,
  "duration": 30,
  "energy": "medium",
  "sample_count": 1,
  "temperature": 1.0,
  "tempo": "medium"
}
```

| Field | Allowed | Default |
| - | - | - |
| `bpm` | 60.0 – 200.0 BPM | `90` |
| `duration` | 5.0 – 30.0 seconds | `30` |
| `energy` | `low`, `medium`, `high` | `"medium"` |
| `sample_count` | 1.0 – 4.0 | `1` |
| `temperature` | 0.0 – 2.0 | `1.0` |
| `tempo` | `slow`, `medium`, `fast` | `"medium"` |

Reference inputs take asset ids from [`POST /v1/uploads`](/uploads) or an earlier output's `asset_id`.
Prices and allowed values come from the live catalog; `GET /v1/models/models/lyria-realtime-exp` is always current.


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