AI Models
Lyria 3.5
Generate music from text with Lyria 3.5, Google DeepMind's newest generation of Lyria. Returns audio plus a short text description.
POST
$0.16/call/v1/media/queueOverview
Lyria 3.5 is the newest generation of Google DeepMind's Lyria music model. Generate music from a text prompt; each job returns the audio track plus a short text description of what was generated.
| Property | Value |
|---|---|
| Model ID | google/lyria-3.5 |
| Alias | lyria-3-5 |
| Upstream Model | lyria-3.5 |
| Output | Music track (audio) plus a short text description |
| Pricing | $0.16/track |
Usage
All media models use the async job queue. Submit a job, then poll for the result.
Step 1: Submit Job
const res = await fetch('https://api.yepapi.com/v1/media/queue', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'google/lyria-3.5',
prompt: 'A warm neo-soul groove with Rhodes piano, brushed drums, and a soft muted trumpet melody',
}),
});
const { data } = await res.json();
// data.jobId — use this to poll for resultscurl -X POST https://api.yepapi.com/v1/media/queue \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "google/lyria-3.5", "prompt": "A warm neo-soul groove with Rhodes piano and brushed drums"}'Step 2: Poll for Result
const status = await fetch(`https://api.yepapi.com/v1/media/status/${data.jobId}`, {
headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status — "pending" | "processing" | "completed" | "failed"
// job.result.audio — { mimeType, base64 } when completed
// job.result.text — short text description of the generated trackcurl https://api.yepapi.com/v1/media/status/JOB_ID \
-H "x-api-key: YOUR_API_KEY"Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
model | string | Yes | google/lyria-3.5 | — |
prompt | string | Yes | Text description of the music | — |
Features
- Newest generation of Google DeepMind's Lyria
- Text-to-music from descriptive prompts
- Returns audio plus a short text description of the track
- Same request shape as Lyria 3 Pro
- Flat $0.16 per track
Under the Hood
Powered by Google's Gemini API directly.