lyria-2 · Google · audio · 1 mode: text-to-music.
This page reflects the current catalog. Inputs, allowed values, limits and prices can change as the model evolves; the field names and their meaning do not. For the exact schema at any time, your agent calls
get_model with the mode.Text To Music
Modetext-to-music. Google Lyria 2 music generation. English prompts only, short instrumental clips (~30 s, WAV). Use Lyria 3 Pro for other languages or longer pieces. Enabled on request.
Input
Pricing
3.87 credits per generated clip. Fixed price: charged as estimated. For the exact price of a request, useestimate_generation.
Example
The arguments ofgenerate_media:
