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

# Lyria music API

> Google Lyria music via Gemini generateContent.

# Lyria music API

| Action | Method | Path |
| - | - | - |
| Generate | `POST` | `/v1beta/models/{model}:generateContent` |

Model examples: `lyria-3.5` (full song), `lyria-3-clip-preview` (\~30s). Set `generationConfig.responseModalities` to `["AUDIO","TEXT"]`.

**Host:** `https://api.omniall.ai` · Auth `Authorization: Bearer sk-...`.

```bash theme={null}
curl -X POST "https://api.omniall.ai/v1beta/models/lyria-3-clip-preview:generateContent" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [{"role": "user", "parts": [{"text": "Soft piano melody for a rainy afternoon"}]}],
    "generationConfig": {"responseModalities": ["AUDIO", "TEXT"]}
  }'
```

Full details: **API Reference → Audio → Google Lyria**.


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