# Google Lyria 3 Clip Preview API

> Lyria 3 Clip is Google's music generation model for 30-second clips, loops, and previews, including vocals and lyrics. It generates 48 kHz stereo MP3 audio from a text prompt, optionally guided by an image.

Source: https://www.sandbase.ai/models/google/lyria-3-clip-preview
API reference: https://www.sandbase.ai/models/google/lyria-3-clip-preview#api

## Facts

- Provider: Google
- Type: Audio model
- Model ID: `google/lyria-3-clip-preview`
- 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-clip-preview",
  "image": "https://v3b.fal.media/files/b/0a93b559/qjT9o0CId1B65PbD6Yp06_9c94501900464c5aa98f302fa4b00375.png",
  "prompt": "A 30-second lo-fi hip hop loop with mellow Rhodes chords, vinyl crackle, and a laid-back drum groove."
}'
```

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 Clip Preview through SandBase?

Create a SandBase API key, then send requests with the model ID "google/lyria-3-clip-preview" 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 Clip Preview 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 Clip Preview and the other models in the catalog; you do not need to sign up with Google separately.

## README

### Lyria 3 Clip Preview

Lyria 3 Clip is Google's music model for 30-second clips and loops, with vocals and lyrics. An optional image sets the mood.

#### Fields

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

#### Output

| Field | Notes |
|---|---|
| `url` | MP3 file. |
| `lyrics` | Lyrics and caption the model used, when available. |

#### Billing

$0.04 per clip.

| Request | Price |
|---|---|
| One clip | $0.04 |
| 10 clips | $0.40 |

Failed runs are not charged.

#### Prompting

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

#### Also on SandBase

Related: `google/lyria-3.5`, `google/lyria-3-pro-preview`, `google/lyria-2`.
