SandBase is live — $1 in free credits on signupStart free ›

Google modelsaudio generation api

google/lyria-2

Lyria 2 is Google's AI audio generation model. Produce high-quality music tracks, sound effects, and audio landscapes from natural language prompts.

Input
The text prompt describing the music you want to generate
A seed for deterministic generation. If provided, the model will attempt to produce the same audio given the same prompt and other parameters.
Idle

Example output — click Run to generate your own

API README

Lyria 2

google/lyria-2 generates instrumental music from a natural-language brief describing genre, mood, instrumentation, tempo, arrangement, and production character. Lyria 2 is designed to develop a coherent musical idea rather than emitting an isolated sound, balancing structural progression with detailed timbre and expressive performance. This combination makes the model a practical choice when the creative outcome depends on those qualities rather than on a generic media conversion.

For production work with google/lyria-2, the resulting track can support scores, background beds, concept demos, brand music, and creative exploration when a written direction needs to become polished original audio. The result is most reliable when the source material and creative brief clearly describe the intended subject, progression, visual or sonic character, and the qualities that must remain unchanged.

Highlights

Instrumental composition develops melody, harmony, rhythm, and arrangement from text.

Musical coherence sustains a recognizable idea across the generated piece.

Style interpretation translates genre, mood, era, instrumentation, and production language into sound.

High-fidelity synthesis renders detailed instruments, spatial character, and polished musical texture.

Pricing

Billing unitPrice
Per request$0.1

When to Use

✅ Good fit❌ Consider alternatives
The model's named workflow matches the source material and intended outputA different input modality or model route is required
A managed asynchronous result is suitable for the production pipelineA synchronous, interactive editor is essential
The documented controls cover the required duration, framing, or formatThe project needs controls outside this endpoint's schema
Creative iteration benefits from a repeatable request structureExact deterministic pixels, frames, geometry, or samples are mandatory
A finished downloadable media asset is the desired deliverableEditable source layers or a native project file are required

Prompt Guide

For generation, state the intended result first, then add the subject or source treatment, progression, style, and delivery constraints. Keep one creative variable per phrase, use the documented field names for controls, and change one setting at a time when comparing results.

{
  "prompt": "A lush, ambient soundscape featuring the serene sounds of a flowing river, complemented by the distant chirping of birds, and a gentle, melancholic piano melody that slowly unfolds."
}

Technical Specs

SpecValue
Model IDgoogle/lyria-2
Inputsprompt, seed
Required inputsprompt
Output fieldscontent_type, url
ExecutionAsync (submit, then poll for result)

Related Models

Related Models