Lyria 3 Clip Preview
/v1/chat/completions30 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 high-quality, 48kHz stereo audio from text prompts or from images. These models deliver structural coherence, including vocals, timed lyrics, and full instrumental arrangements. Lyria 3 Clip can generate short clips, loops, previews.
Request body
Parameters supported by this model. Values, defaults, and limits are read from the model registry.
Model identifier. Set to google/lyria-3-clip-preview.
Default: google/lyria-3-clip-preview
Conversation messages in system, user, or assistant order.
Maximum number of tokens the model may generate in the response.
Range: −∞ to 65536
Sampling temperature. Lower values are more deterministic; higher values are more creative.
Range: 0 to 2
Default: 1
Nucleus sampling threshold. Use this or temperature, but usually not both.
Range: 0 to 1
When true, returns incremental Server-Sent Events instead of one completed response.
Default: false
Controls the response format, including JSON mode or structured JSON output when supported.
Seed used to make sampling more reproducible when the provider supports it.
Response Schema
Fields returned by this model API response.
Generated completion choices.
Unique chat completion identifier.
Model that generated the response.
Token usage when available.
Model capabilities
Capabilities declared by the model registry.
Default: chat, vision, structured_output
Maximum context window accepted by this model.
Default: 1048576 tokens
Execution mode declared by the model registry.
Default: sync

