# Google Lyria 3.5 API

> Lyria 3.5 is Google's flagship music generation model for full-length songs up to a few minutes, with verses, choruses, bridges, expressive vocals, timed lyrics, and rich instrumental arrangements. It generates high-quality 44.1kHz stereo audio from a text prompt, optionally guided by an image.

Source: https://www.sandbase.ai/models/google/lyria-3.5
API reference: https://www.sandbase.ai/models/google/lyria-3.5/docs

## Facts

- Provider: Google
- Type: Audio model
- Model ID: `google/lyria-3.5`
- Price: $0 per 1M input tokens, $0 per 1M output tokens
- Capabilities: text to music
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "google/lyria-3.5",
  "prompt": "An uplifting indie pop song with bright acoustic guitar, warm female vocals, and a catchy chorus about a summer road trip, 110 BPM."
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call Google Lyria 3.5 through SandBase?

Create a SandBase API key, then send requests with the model ID "google/lyria-3.5" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### How much does Google Lyria 3.5 cost?

$0 per 1M input tokens and $0 per 1M output tokens, billed per request from your SandBase balance. Discounts, when available, are shown in the pricing on this page.

### Do I need a separate Google account?

No. One SandBase API key and balance gives you access to Google Lyria 3.5 and the other models in the catalog; you do not need to sign up with Google separately.

## README

### Lyria 3.5

Lyria 3.5 is Google's music model for full songs: verses, choruses, and bridges with expressive vocals, timed lyrics, and full arrangements. An optional image sets the mood.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Genre, mood, instruments, tempo, vocal style, and lyrics. Up to 5,000 characters. |
| `image` | image URL | — | Optional image whose mood the music should match. |

#### Billing

$0.10 per song.

| Request | Price |
|---|---|
| One song | $0.10 |

Failed runs are not charged.

#### Prompting

- Name the genre, tempo, and instrumentation first, then the vocal style.
- Mark lyric sections, e.g. `[Verse]`, `[Chorus]`.

#### Limits

- One song per request.
