Lyria 3 Clip Preview API1M context
30 second duration clips are priced at $0.04 per clip.
Pricing & specs mirror our live pricing as of July 2026 (pay-as-you-go).
What is Lyria 3 Clip Preview?
30 second duration clips are priced at $0.04 per clip. Lyria 3 is Google's family of music generation models, available through the Gemini API. With Lyria 3, you can generate...
Lyria 3 Clip Preview on the release timeline
Lyria 3 Clip Preview pricing
Lyria 3 Clip Preview has a free tier ($0 in / $0 out, rate-limited). Confirm current terms on live pricing before production use.
What Lyria 3 Clip Preview costs per month
| Workload | Tokens in / out (monthly) | Est. cost |
|---|---|---|
| Support chatbot | 40M / 12M | Free |
| RAG / knowledge base | 200M / 20M | Free |
| Coding agent | 80M / 25M | Free |
| Batch extraction | 150M / 8M | Free |
| Content generation | 20M / 40M | Free |
Cost = input price × input volume + output price × output volume. The same five workloads run on every model page, so any two compare directly.
Lyria 3 Clip Preview vs alternatives
| Model | Input / 1M | Output / 1M | Context | Our test |
|---|---|---|---|---|
| Lyria 3 Clip Preview | Free | Free | 1M | — |
| Lyria 3 Pro Preview | Free | Free | 1M | — |
| Gemma 3 4B | $0.05 | $0.10 | 131K | — |
| Gemma 3n 4B | $0.06 | $0.12 | 33K | — |
| Llama 3.1 8B Instruct | $0.02 | $0.03 | 131K | — |
| Mistral Nemo | $0.02 | $0.03 | 131K | — |
When not to use Lyria 3 Clip Preview
- The free tier is rate-limited — route production traffic through a paid model.
- It is served by a single provider, so there is less failover headroom during an outage.
Specs
| Model ID | google/lyria-3-clip-preview |
| Modality | text+image->text+audio (input: text, image) |
| Context window | 1,048,576 tokens |
| Max output | 65,536 tokens |
| Tool / function calling | — |
| Structured output (JSON) | ✅ Yes |
| Released | 2026-03-30 |
| Open weights | — (hosted API only) |
How to call Lyria 3 Clip Preview
from openai import OpenAI
client = OpenAI(base_url="https://api.datallmlab.com/v1", api_key="YOUR_DATALLM_LAB_KEY")
resp = client.chat.completions.create(
model="google/lyria-3-clip-preview",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)curl https://api.datallmlab.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"google/lyria-3-clip-preview","messages":[{"role":"user","content":"Hello"}]}'import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.datallmlab.com/v1", apiKey: process.env.DATALLM_KEY });
const r = await client.chat.completions.create({
model: "google/lyria-3-clip-preview",
messages: [{ role: "user", content: "Hello" }],
});
console.log(r.choices[0].message.content);The same key routes Lyria 3 Clip Preview and 300+ other models — switch models by changing one string. How OpenAI-compatible APIs work.
Prompting tips for Lyria 3 Clip Preview
- Be explicit and show the shape of the answer. Spell out format, tone and constraints up front, and include one short example of the output you want — Lyria 3 Clip Preview follows concrete instructions better than abstract ones.
- Huge 1M context — but anchor the ask. You can paste whole documents or codebases; models attend most to the start and end, so put the key instruction at the top and restate it after long inputs.
- It reads images. Send image parts alongside your text and ask for specific outputs (named JSON fields, a table, "what changed") rather than "describe this".
- Constrain JSON with a schema. Use
response_format/ structured outputs rather than "reply in JSON" to get valid, parseable objects every time.
Tips are derived from Lyria 3 Clip Preview's actual capabilities — context window, tool & JSON support, modality and price tier — not generic advice.
Open-source tools for Lyria 3 Clip Preview
Popular open-source frameworks and agents to build with Lyria 3 Clip Preview over the API — star counts pulled from GitHub (July 2026).
Listed by GitHub stars; inclusion is by ecosystem relevance (agent frameworks, SDKs and gateways), not affiliation. Stars change — see each repo for current numbers.
Migrating to Lyria 3 Clip Preview
Coming from OpenAI or another gateway? On an OpenAI-compatible setup the only changes are base_url → https://api.datallmlab.com/v1 and model → google/lyria-3-clip-preview. Messages, streaming and the rest of your code stay the same. Routing & failover guide.
Rate limits & reliability
Rate limits here are the DataLLM Lab gateway's, not the upstream vendor's. On 429 (rate limited) or 503 (provider busy), retry with exponential backoff. See the error-code guide and failover setup.
Related reading
Call Lyria 3 Clip Preview with one key
300+ models behind one OpenAI-compatible endpoint — better prices, better uptime, no subscriptions.
Get an API keyCompare pricingFrequently asked questions
What is Lyria 3 Clip Preview?
30 second duration clips are priced at $0.04 per clip. It accepts text, image input with a 1M-token context window and was released on 2026-03-30. On DataLLM Lab it is callable through one OpenAI-compatible endpoint.
How much does Lyria 3 Clip Preview cost?
Lyria 3 Clip Preview currently has a free tier ($0 input / $0 output, rate-limited). Free tiers change — check live pricing before relying on it.
What is the context window of Lyria 3 Clip Preview?
1M tokens, with up to 66K max output tokens.
Is Lyria 3 Clip Preview open source?
No open weights are published — it is available through hosted API access only.
How do I call the Lyria 3 Clip Preview API?
Point any OpenAI SDK at https://api.datallmlab.com/v1 and set model to "google/lyria-3-clip-preview". One DataLLM Lab key routes this model and 300+ others; no code changes beyond the base URL and model string.
What are good alternatives to Lyria 3 Clip Preview?
Close options by price and capability include Lyria 3 Pro Preview, Gemma 3 4B, Gemma 3n 4B — all callable with the same DataLLM Lab key.