Lyria 3.5
google/lyria-3.5Lyria 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.
- Base price
- $0.10USD / run
- Execution
- async
- Model type
- audio
- Input fields
- 2
Try the model
Playground
PNG, JPEG, WebP, or GIF · 20 MiB maximum
What would you like to do next?
Examples
Select an example to load its inputs and result into the playground.
- Open result ↗
Input
{ "prompt": "A 30-second upbeat synthwave instrumental with punchy drums and a soaring lead synth." }
Model card
Specifications
Pricing
- Input
- $0 / 1M tokens
- Output
- $0 / 1M tokens
- Base price
- $0.10 / run
Context & modalities
- Input
- Schema-defined
- Output
- audio
Capabilities
- Chat
- Not supported
- Vision
- Not supported
- Reasoning
- Not supported
- Structured output
- Not supported
- Function calling
- Not supported
- Audio input
- Not supported
Access
- Provider
- Model ID
- google/lyria-3.5
- Execution
- async
- Base URL
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
API 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.
Start building
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"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."
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Input Schema
2 parameters · 1 required · 1 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Required | The text prompt describing the music you want to generate. Include genre, mood, instrumentation, tempo, vocals, and structure. Use duration hints (e.g. 'a 2-minute track') or section markers like '[0:00-0:30] Intro: ...' to control length and structure. Supports English, German, Spanish, French, Hindi, Japanese, Korean, and Portuguese. · Min length: 1 · Max length: 5000 |
image | string | Optional | Optional image used as inspiration; the music will match the mood and theme of the image. |
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model runs asynchronously. Submit a request, then poll for the result.
- Submit: POST to /v1/run and read the returned
id. - Poll: GET /v1/run/{id} until status is
completed,failedortimeout. - Retrieve: read
outputsfrom the completed response.
Choose your model
Compare models
| Model | Type | Default price | Released |
|---|---|---|---|
Lyria 3.5This model Google | Audio | $0.10 / run | Sep 15, 2026 |
Google | Audio | $0.04 / run | Sep 25, 2026 |
Google | Audio | $0.03 / run | Sep 25, 2026 |
Google | Audio | $0.05 / run | Apr 16, 2026 |
Questions
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.
