Sand AISand AI MAGI-2MAGI-2 is now on SandBase: 1080p video with native audioTry it now

Lyria 2

google/lyria-2

Lyria 2 is Google's text-to-music model that generates a 30-second instrumental track as 48 kHz WAV audio from a description of genre, mood, instruments, and tempo.

Base price
$0.10USD / run
Execution
async
Model type
audio
Input fields
3
Production route

Try the model

Playground

Open playground
Input
Description of the music to generate: genre, mood, instruments, tempo. Up to 2000 characters.
What to exclude from the generated audio.
Random seed for reproducible results. Leave empty for a random seed.
OutputReady

Your output will appear here

Complete the inputs, then click Run.

Model card

Specifications

Pricing

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
Google
Model ID
google/lyria-2
Execution
async
Base URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

API README

Lyria 2

Lyria 2 is Google's instrumental music model: one 30-second 48 kHz WAV clip per request.

Fields

FieldTypeDefaultNotes
promptstring, up to 2000 chars, required—Genre, mood, instruments, tempo.
negative_promptstringlow qualityWhat to leave out, e.g. vocals.
seedintegerrandomFix it to compare prompt changes.

Billing

$0.10 per 30-second clip.

RequestPrice
One clip$0.10
10 clips$1.00

Failed runs are not charged.

Prompting

  • Lyria 2 makes instrumentals only; describe instruments and mood rather than lyrics.

Also on SandBase

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

Start building

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

Production API
Unified Run API endpoint
https://api.sandbase.ai/v1/run
Model ID
google/lyria-2
# 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-2",
  "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.",
  "negative_prompt": "vocals, slow tempo"
}
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"
01

Input Schema

3 parameters · 1 required · 2 optional

ParameterTypeRequiredDescription
promptstringRequiredDescription of the music to generate: genre, mood, instruments, tempo. Up to 2000 characters. · Min length: 1 · Max length: 2000
seedintegerOptionalRandom seed for reproducible results. Leave empty for a random seed.
negative_promptstringOptionalWhat to exclude from the generated audio. · Default: "low quality"
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-readable error description

Async Workflow

This model runs asynchronously. Submit a request, then poll for the result.

  1. Submit: POST to /v1/run and read the returned id.
  2. Poll: GET /v1/run/{id} until status is completed, failed or timeout.
  3. Retrieve: read outputs from the completed response.

Choose your model

Compare models

All image & video models
ModelTypeDefault priceReleased
Lyria 2This model
Google
Audio$0.10 / runMay 20, 2025
GoogleAudio$0.04 / runSep 25, 2026
GoogleAudio$0.03 / runSep 25, 2026
GoogleAudio$0.10 / runSep 15, 2026
GoogleAudio$0.05 / runApr 16, 2026
GoogleAudio$0.08 / runMar 30, 2026

Questions

FAQ

How do I call Google Lyria 2 through SandBase?

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

Do I need a separate Google account?

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