Mozart Developers
How do developers use Google Lyria through an API?
Developers use Google Lyria through two Google APIs: the Gemini API, which serves lyria-3.5 and lyria-3-clip-preview, and Vertex AI on Google Cloud, which serves lyria-3-pro-preview, lyria-3-clip-preview and lyria-002. Hosts such as fal and Replicate also run Lyria models behind their own keys.
This page lists each route with its model IDs, status and pricing model as Google's and each host's pages describe them on 29 Nov 2026. It also shows a real run of the Mozart music API, which makes 2 songs per request for 25 credits.
The REST API needs an API plan (Starter, Build, Scale or Growth), from $20 a month, or prepaid API credits, and spends API credits.
Updated November 29, 2026
On this page
On this page: routes to Lyria, the Gemini API, Vertex AI, fal and Replicate, timeline and a real Mozart run.
Which routes to Lyria can I use today?
Lyria is a model family inside Google's two AI platforms, not a separate product, and some model hosts also list it. Routes as each provider's pages showed them on 29 Nov 2026:
| Route | Who runs it | Lyria models listed | How you authenticate |
|---|---|---|---|
| Gemini API | lyria-3.5, lyria-3-clip-preview, lyria-realtime-exp | Gemini API key from Google AI Studio | |
| Vertex AI | Google Cloud | lyria-3-pro-preview, lyria-3-clip-preview, lyria-002 | Google Cloud project and credentials |
| fal | fal | google/lyria-3.5, fal-ai/lyria3, fal-ai/lyria3/pro, fal-ai/lyria2 | fal API key |
| Replicate | Replicate | google/lyria-3.5, google/lyria-3, google/lyria-3-pro, google/lyria-2 | Replicate API token |
The Gemini API has the newest model; Vertex AI suits teams already on Google Cloud.
How do I call Lyria on the Gemini API?
Google's music generation guide says "Lyria 3.5 is Google's family of music generation models, available through the Gemini API."
- Endpoint.
POST https://generativelanguage.googleapis.com/v1beta/interactions, orclient.interactions.create(model=..., input=...)in Google's SDKs. - Models.
lyria-3.5makes songs of about two minutes by default, adjustable through the prompt.lyria-3-clip-preview"always generates a 30-second clip." - Output. Audio comes back as base64 in
output_audio, with lyrics or structure inoutput_text. MP3 is the default;lyria-3.5can return WAV. - Editing. The guide says music generation is single-turn: you can't edit a clip you already made.
- Pricing model. The Gemini API pricing page charges per song for each Lyria model, and lists the Lyria 3 models as a legacy family.
Lyria RealTime is a separate, streaming model. Google's RealTime guide says "Lyria RealTime is an experimental model" that uses a WebSocket connection, and that it "generates instrumental music only."
How do I call Lyria on Vertex AI?
Vertex AI is Google Cloud's route, with Google Cloud projects, regions and quotas.
- Lyria 3. The Lyria 3 model page lists
lyria-3-pro-preview(a full song) andlyria-3-clip-preview(30-second clips), both at the Preview launch stage, as MP3, with text and image input. - Lyria 2. The Lyria 2 model page lists
lyria-002as generally available, with WAV output and short clips. - Pricing model. The Vertex AI pricing page charges each Lyria output as one count: a full song for Lyria 3 Pro, a 30-second clip for Lyria 3, and one music output for Lyria 2.
How do fal and Replicate describe their Lyria models?
Both are model hosts. You sign up with them, use their keys and pay through their billing.
- fal. Its Lyria 3.5 page calls it "Google DeepMind's latest music generation model", with the endpoint
https://fal.run/google/lyria-3.5. It returns an MP3 file and the lyrics, and fal prices each generation. - Replicate. Its Lyria 3.5 page says the model "writes and performs full songs from a text prompt and up to 10 images" and that "each prediction returns one audio file." It recommends
google/lyria-3for 30-second clips.
How has Lyria's API access changed?
- 9 Apr 2025. Google adds Lyria to Vertex AI "in preview with allowlist" (Google Cloud blog).
- 25 Mar 2026. Vertex AI's model page gives this as the release date of
lyria-3-pro-previewandlyria-3-clip-preview(Vertex AI docs). - 8 Apr 2026. Google Cloud says "Lyria 3, Google's family of music generation models, is available on Vertex AI in public preview," through the Vertex AI API and Media Studio (Google Cloud blog).
- 4 Sep 2026. Google says Lyria 3.5 "is now available in the Gemini app and the Gemini API" (Google blog).
How do I make a song with the Mozart API?
Mozart is a separate music API with its own models and mzk_ keys. One POST /v1/songs call returns a job that ends with 2 songs, with vocals and lyrics or instrumental. This Python script starts a job and waits for it.
import os, uuid, requests
API = "https://api.mozartai.com"
S = requests.Session()
S.headers["Authorization"] = f"Bearer {os.environ['MOZART_API_KEY']}"
body = {"model": "hans-2", "instrumental": True,
"prompt": "Cinematic ambient instrumental for a product demo, slow piano, warm synth pads, soft strings"}
job = S.post(f"{API}/v1/songs", json=body,
headers={"Idempotency-Key": str(uuid.uuid4())}).json()["job"]
while True:
r = S.post(f"{API}/v1/jobs/wait",
json={"job_ids": [job["id"]], "until": "playable", "wait_seconds": 25}).json()
if r["all_settled"]:
print(r["jobs"][0]["status"], r["jobs"][0]["song_ids"])
breakThe finished job, trimmed, from our run:
{
"status": "succeeded",
"song_ids": ["7f2677c6-def5-443e-ba3a-0cedf7270a04", "112c79b1-231e-4898-b8d3-22a8c6fdf607"],
"outputs": [
{"type": "audio", "song_id": "7f2677c6-def5-443e-ba3a-0cedf7270a04", "content_type": "audio/mpeg", "duration_seconds": 193.52},
{"type": "audio", "song_id": "112c79b1-231e-4898-b8d3-22a8c6fdf607", "content_type": "audio/mpeg", "duration_seconds": 169.2}
],
"credits_refunded": false,
"error": null
}What did our test run show?
In our test on 29 November 2026 we sent that instrumental prompt once, after a dry run to check the price.
| Step | Seconds from first call |
|---|---|
| Dry run returned the price | 0.3 |
| Job started | 3.3 |
Job succeeded, both songs playable | 174 |
| First download link returned | 186 |
The two instrumentals were "Paper Model" at 193.5 seconds and "Golden Hinge" at 169.2 seconds, each with cover art. To get a file, call POST /v1/songs/{song_id}/download with mp3, wav, flac or m4a. Your times will differ with load and prompt.
The same key runs covers, the stem separation API, the audio to MIDI API and the mastering API. For assistants there is the Mozart MCP server: The MCP server signs in with your Mozart account and spends your plan's credits. Making songs needs Creator or above. The mozart CLI is coming soon.
What limits should I plan for with Mozart?
- Two songs per request. Each
POST /v1/songscall makes 2 songs. - No length setting on the default model.
hans-2picks each song's length and refusesduration_seconds. - Short-lived links. Download and output links expire at
url_expires_at; save the files you keep. - Rate limits. Up to 60 write requests a minute per key. See rate limits and daily caps.
Endpoints are in the API reference; plans are in API pricing.
Frequently asked questions
Does Google Lyria have an API?
Yes. Google serves Lyria through the Gemini API, with an API key from Google AI Studio, and through Vertex AI on Google Cloud, with a Google Cloud project. On 29 Nov 2026 the Gemini API listed lyria-3.5 and lyria-3-clip-preview, and Vertex AI listed lyria-3-pro-preview, lyria-3-clip-preview and lyria-002.
Which Lyria model makes full songs?
On the Gemini API, lyria-3.5, which Google's guide says makes songs of about two minutes by default, adjustable through the prompt. On Vertex AI, lyria-3-pro-preview, which Google's model page says makes a full song. lyria-3-clip-preview always makes a 30-second clip.
How is the Lyria API priced?
Per generation. Google's Gemini API and Vertex AI pricing pages both charge each Lyria song or clip as one unit, at a set price per model. Check the Gemini API pricing page or the Vertex AI pricing page on the day you build, since preview models can change.
What is Lyria RealTime?
An experimental Gemini API model, models/lyria-realtime-exp, that streams music over a WebSocket connection while you steer it. Google's guide says it "generates instrumental music only."
Can I use Lyria on fal or Replicate?
Yes. fal lists google/lyria-3.5, fal-ai/lyria3, fal-ai/lyria3/pro and fal-ai/lyria2, and prices each generation. Replicate lists google/lyria-3.5, google/lyria-3, google/lyria-3-pro and google/lyria-2. Both use your fal or Replicate key, not a Google key.
Is Lyria 3.5 on Vertex AI?
Not on the Vertex AI Lyria model page we checked on 29 Nov 2026, which listed the Lyria 3 preview models and Lyria 2. Google's 4 Sep 2026 post announced Lyria 3.5 for the Gemini app and the Gemini API.
Is Mozart built on Lyria?
No. Mozart runs its own music models behind its own REST API, with its own keys. It is not affiliated with, endorsed by or sponsored by Google.
Related pages
ElevenLabs Music API pricing compared
Per-minute pricing against a per-song music API.
Read the guideDoes Suno have an API?
What Suno offers developers today, and the alternatives.
Read the guideStem separation API
Split a song into vocals, drums, bass and other.
Read the guideAudio to MIDI API
Turn a song or a recording into a .mid file.
Read the guideMastering API
Bring a generated song up to streaming loudness.
Read the guide
Make a song with the Mozart API
The REST API needs an API plan (Starter, Build, Scale or Growth), from $20 a month, or prepaid API credits, and spends API credits. See API pricing and the Terms of Service.
Mozart is not affiliated with, endorsed by or sponsored by Google, Google DeepMind, fal or Replicate. Google, Lyria, Gemini, Google AI Studio and Vertex AI are trademarks of Google LLC. fal and Replicate are trademarks of their owners. All are used here only to identify their products.