← All models
Full-length songs are priced at $0.08 per song. Lyria 3 is Google's family of music generation models, available through the Gemini API. With Lyria 3, you can generate high-quality, 48kHz...
At a glance
- Context window
- 1Mtokens
- Max output
- 66Ktokens
- Knowledge to
- —
- Released
- 2026
Capabilities
CapabilitiesVisionStructured output
InputTextImage
OutputTextAudio
Performance
Reference uptime
100%
Aug 18Sep 16
Median latency
2,089 ms
Aug 18Sep 16
Throughput
17.9 tok/s
Aug 18Sep 16
IranRouter uptime comes from our own automated probes; the reference figures are daily measurements of this model's upstream routes. Each card shows a 30-day average, and a day without data stays empty.
Supported parameters
max_tokensresponse_formatseedtemperaturetop_p
Parameters this model accepts; anything else is ignored.
Quick start
from openai import OpenAI
client = OpenAI(
api_key="ir-...",
base_url="https://iranrouter.com/v1",
)
resp = client.chat.completions.create(
model="google/lyria-3-pro-preview",
messages=[{"role": "user", "content": "سلام!"}],
)
print(resp.choices[0].message.content)Only base_url and the key change; the rest of your code stays as it is.