{"query":"music generation","count":2,"total":2,"results":[{"id":"google-ai.music-gen.lyria-3-clip","provider":"google-ai","provider_display":"Google AI (Gemini API)","name":"Google: Lyria 3 Clip","summary":"Compose a 30-second music clip from a text prompt with Lyria 3 Clip on Google's own API; the MP3 returns inline as base64.","method":"POST","path":"/models/{model}:generateContent","scope":"any_account","tier":"core","kind":"data","domain":"models","call_template":"treg call google-ai.music-gen.lyria-3-clip --method POST --query model=lyria-3-clip-preview --data '{\"contents\":[{\"parts\":[{\"text\":\"An upbeat lo-fi hip hop instrumental with warm piano chords and soft vinyl crackle.\"}]}]}'","cost":{"type":"per_success","value":0.04,"per":1,"unit":"call","currency":"USD","source":"docs","source_url":"https://ai.google.dev/gemini-api/docs/pricing","checked":"2026-09-30","confidence":"documented","note":"$0.04 per 30-second clip, flat. Live 2026-09-30 a prompt returned a 30 s, 192 kbps MP3 (0.73 MB) in 14 s. Only a STOP answer is billed.","usd":0.04},"async":null,"platform_eligible":true,"platform_blocked":null,"miss":null,"status":null,"status_note":null,"superseded_by":null,"verified":"2026-09-30","added":"2026-09-29","docs_url":"https://ai.google.dev/gemini-api/docs/music-generation","has_example":true,"input":{"pathParams":{"model":{"type":"string","required":true,"enum":["lyria-3-clip-preview"],"example":"lyria-3-clip-preview"}},"body":{"contents":{"type":"array","required":true,"example":[{"parts":[{"text":"An upbeat lo-fi hip hop instrumental with warm piano chords."}]}],"note":"One user turn: {parts: [{text: prompt}]}. Describe genre, mood, instruments and tempo; ask for an instrumental or supply lyrics in the prompt. The answer carries an MP3 part (inlineData, audio/mpeg) and a text part with the lyrics or section markers."}},"bodyType":"json"},"test_request":{"pathParams":{"model":"lyria-3-clip-preview"},"body":{"contents":[{"parts":[{"text":"An upbeat lo-fi hip hop instrumental with warm piano chords and soft vinyl crackle."}]}]}},"capability":"music-gen.lyria-3-clip.generate","capability_description":"Lyria 3 Clip (30-second clip)","platform":"music-gen","platform_label":"Music generation","score":23.3166,"observed":null},{"id":"google-ai.music-gen.lyria-3-5","provider":"google-ai","provider_display":"Google AI (Gemini API)","name":"Google: Lyria 3.5","summary":"Compose a full song (about three minutes) from a text prompt with Lyria 3.5 on Google's own API; the MP3 returns inline as base64 with its lyrics or section markers.","method":"POST","path":"/models/{model}:generateContent","scope":"any_account","tier":"core","kind":"data","domain":"models","call_template":"treg call google-ai.music-gen.lyria-3-5 --method POST --query model=lyria-3.5 --data '{\"contents\":[{\"parts\":[{\"text\":\"An upbeat lo-fi hip hop instrumental with warm piano chords and soft vinyl crackle.\"}]}]}'","cost":{"type":"per_success","value":0.08,"per":1,"unit":"call","currency":"USD","source":"docs","source_url":"https://ai.google.dev/gemini-api/docs/pricing","checked":"2026-09-30","confidence":"documented","note":"$0.08 per song, flat. usageMetadata reports tokens but no audio meter and is not the bill. Live 2026-09-30 a prompt returned a 179 s, 192 kbps MP3 (4.3 MB, 5.7 MB as base64) in 36 s; longer songs approach the 8 MiB buffer, so the answer is spooled. Only a STOP answer is billed.","usd":0.08},"async":null,"platform_eligible":true,"platform_blocked":null,"miss":null,"status":null,"status_note":null,"superseded_by":null,"verified":"2026-09-30","added":"2026-09-29","docs_url":"https://ai.google.dev/gemini-api/docs/music-generation","has_example":true,"input":{"pathParams":{"model":{"type":"string","required":true,"enum":["lyria-3.5"],"example":"lyria-3.5"}},"body":{"contents":{"type":"array","required":true,"example":[{"parts":[{"text":"An upbeat lo-fi hip hop instrumental with warm piano chords."}]}],"note":"One user turn: {parts: [{text: prompt}]}. Describe genre, mood, instruments and tempo; ask for an instrumental or supply lyrics in the prompt. The answer carries an MP3 part (inlineData, audio/mpeg) and a text part with the lyrics or section markers."}},"bodyType":"json"},"test_request":{"pathParams":{"model":"lyria-3.5"},"body":{"contents":[{"parts":[{"text":"An upbeat lo-fi hip hop instrumental with warm piano chords and soft vinyl crackle."}]}]}},"capability":"music-gen.lyria-3-5.generate","capability_description":"Lyria 3.5 (full song)","platform":"music-gen","platform_label":"Music generation","score":23.3166,"observed":null}],"hints":["treg catalog get google-ai.music-gen.lyria-3-clip   # params, cost and an example response","treg call google-ai.music-gen.lyria-3-clip --method POST --query model=lyria-3-clip-preview --data '{\"contents\":[{\"parts\":[{\"text\":\"An upbeat lo-fi hip hop instrumental with warm piano chords and soft vinyl crackle.\"}]}]}'   # run it — key injected server-side"]}