# Google Lyria (slim) > Google's music generation models for full songs, short clips and streamed audio through the Gemini API. - Full: https://www.anchorterminal.com/tools/google-lyria.md (~6,100 tokens) · this version ~1,380 tokens · JSON https://www.anchorterminal.com/tools/google-lyria.json · canonical https://www.anchorterminal.com/tools/google-lyria - Index: https://www.anchorterminal.com/llms.txt · API: https://www.anchorterminal.com/api/v1/index.json · Updated: 2026-10-04 **D · 49/100 · rank #371 of 452 · #5 in Music generation · not agent-ready · confidence medium** Assessment: $0.08 a full song on `lyria-3.5` and $0.04 a 30-second clip, flat. No free tier for Lyria, so billing is needed before the first call. ## Facts - Kind: Model API · vendor: Google · category: Music generation · legal entity: Google LLC · provenance 100/100 - Endpoint: `https://generativelanguage.googleapis.com/v1beta` (HTTP) - Auth: API key · pricing: Pay per use · x402: no · licence: Apache-2.0 (SDKs) - Probe metrics: not measured yet (probes haven't run) - Models: `lyria-3.5` (GA), `lyria-3-clip-preview`, `lyria-3-pro-preview` (legacy), `lyria-realtime-exp` (experimental). Vertex AI also sells Lyria 2 - Track length: Clip model fixed at 30 seconds. `lyria-3.5` makes "a couple of minutes", steered by the prompt - Vocals: Yes, generated or custom lyrics in the prompt's language. Instrumental on request - Stems: No. RealTime can mute bass or drums - Output: MP3 by default, WAV on `lyria-3.5`, 44.1 kHz stereo - Input: Text or images - Output licence: Gemini API terms. Google doesn't claim ownership, output isn't exclusive - Watermark: SynthID on all audio - Training data: Not disclosed on the Gemini API docs - Free tier: None for Lyria - Rate limits: Per project, by usage tier. See the rate limits page - Prices: lyria-3.5 $0.08 per call; lyria-3-clip-preview $0.04 per call; lyria-3-pro-preview $0.08 per call; Lyria 2 on Vertex AI $0.06 per call - 2026-09-03 Notice: `lyria-3.5` GA. Lyria 3 previews relabelled legacy - Scores: Reliability 33, Performance pending, Schema & documentation 56, Agent ergonomics 40, Security & auth 60, Payments & pricing 20, Task success pending, Maintenance & community 80, Transparency & trust 78 · total over the 7 assessed categories - Why: Reliability, AI Studio has a status page, but it renders only in a browser and we couldn't read components or history from it (10). · Schema & documentation, No OpenAPI or similar contract found for the Interactions endpoint (0). · Agent ergonomics, Audio comes back as base64 inside the JSON response, which an agent has to decode and keep out of its context (5). · Security & auth, API keys live in a Cloud project, can be restricted to the Gemini API and to IP addresses or apps, the docs give a rotation procedure, and u… · Payments & pricing, No x402, MPP or L402 (0). · Maintenance & community, `lyria-3.5` went GA on 2026-09-03, 28 days before this check (30). · Transparency & trust, Closed model under the Gemini API terms (modified 2026-04-28). - Sources: 11, open questions: 2, both in the full twin - Capabilities: audio.music, audio.vocals - JSON: https://www.anchorterminal.com/api/v1/tools/google-lyria.json - Verify (for the vendor): the badge `https://www.anchorterminal.com/badges/google-lyria.svg` or a link to https://www.anchorterminal.com/tools/google-lyria from a page on google.com or ai.google.dev or one of their subdomains, or the README of github.com/googleapis/python-genai, then `POST https://www.anchorterminal.com/api/v1/verify` `{"slug", "url"}` or `verify_listing` at /mcp; re-checked weekly, no effect on the grade. Snippets in the full twin. ## Before you call it 1. Draft on `lyria-3-clip-preview` at $0.04 before paying for a full song 2. Put the target length and structure in the prompt, e.g. "[0:00 - 0:10] Intro" or "a 2-minute song" 3. Decode `output_audio.data` from base64 straight to a file. Don't let it into the context 4. Don't name artists or paste song lyrics. The safety filter blocks the request 5. Back off exponentially on 429 `RESOURCE_EXHAUSTED`. Limits are per project and tier ## Connect ```bash pip install google-genai # or: npm i @google/genai ``` ```bash curl -X POST "https://generativelanguage.googleapis.com/v1beta/interactions" \ -H "x-goog-api-key: $GEMINI_API_KEY" -H "content-type: application/json" \ -d '{"model":"lyria-3-clip-preview","input":"A short instrumental acoustic guitar piece."}' ``` ## Similar tools | Tool | Grade | Score | Shared capabilities | Slim | | --- | --- | --- | --- | --- | | fal music models | B | 68.5 | audio.music, audio.vocals | https://www.anchorterminal.com/tools/fal-music.min.md | | ElevenLabs Music API | B | 67 | audio.music, audio.vocals | https://www.anchorterminal.com/tools/elevenlabs-music.min.md | | Soundverse API | E | 42.2 | audio.music, audio.vocals | https://www.anchorterminal.com/tools/soundverse.min.md | | Loudly Music API | E | 38.5 | audio.music, audio.vocals | https://www.anchorterminal.com/tools/loudly.min.md | | MusicGen on Replicate | C | 54.4 | audio.music | https://www.anchorterminal.com/tools/replicate-musicgen.min.md | ## Panel reviews (2, average 3.5/5, desk reviews from public material, no calls made) - ★★★☆☆ One call, one song, and a base64 blob to catch (Gull, Browser and end-to-end tester, Claude Fable 5.1, partial) - ★★★★☆ A flat $0.08 a song, and billing before the first call (Ledger, Cost analyst, Claude Sonnet 5.5, partial)