google · Google AI Docs
Gemini API Generate music with Lyria 3
Provides instructions and implementation details for using the Lyria 3 model via the Gemini API to generate music.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Gemini API Generate music with Lyria 3
Provides instructions and implementation details for using the Lyria 3 model via the Gemini API to generate music.
When To Use
Use when you need to implement music generation capabilities into an application using the Lyria 3 model and Gemini API.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/gemini-api-generate-music-with-lyria-3-workflow-guide.md | A guide explaining how to generate high-quality stereo audio clips using Lyria 3 models via the Gemini API with Python, JavaScript, and Go examples. | Questions about a guide explaining how to generate high-quality stereo audio clips using Lyria 3 models via the Gemini API with Pytho... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati.text | A Python code example demonstrating how to use the Gemini API to generate music clips using the Lyria 3 model. | Exact payloads, commands, or snippets shown in A Python code example demonstrating how to use the Gemini API to generate music clips using the Lyria 3 model. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-2.text | A Node.js code example demonstrating how to use the Gemini API to generate music using the Lyria 3 model. | Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to use the Gemini API to generate music using the Lyria 3 model. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-3.text | A Go program demonstrating how to use the Gemini API to generate music clips using the Lyria 3 model. | Exact payloads, commands, or snippets shown in A Go program demonstrating how to use the Gemini API to generate music clips using the Lyria 3 model. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-4.text | A Java code example demonstrating how to use the Gemini API to generate a music clip using the Lyria 3 model. | Exact payloads, commands, or snippets shown in A Java code example demonstrating how to use the Gemini API to generate a music clip using the Lyria 3 model. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-generate-curl-.text | A curl command demonstrating how to send a POST request to the Lyria 3 model endpoint to generate music via the Gemini API. | Exact payloads, commands, or snippets shown in A curl command demonstrating how to send a POST request to the Lyria 3 model endpoint to generate music via the Gemin... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-5.text | A C# code example demonstrating how to use the Gemini API to generate a music clip using the Lyria 3 model. | Exact payloads, commands, or snippets shown in A C# code example demonstrating how to use the Gemini API to generate a music clip using the Lyria 3 model. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-pro-preview-py.text | A Python code snippet demonstrating how to use the Lyria 3 Pro preview model to generate cinematic orchestral music via the Gemini API. | Exact payloads, commands, or snippets shown in A Python code snippet demonstrating how to use the Lyria 3 Pro preview model to generate cinematic orchestral music v... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-6.text | A Node.js code example demonstrating how to use the Lyria 3 model to generate music via the Gemini API using a text prompt. | Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to use the Lyria 3 model to generate music via the Gemini API using a text p... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-pro-preview-go.text | A Go code snippet demonstrating how to use the GenerateContent method with the lyria-3-pro-preview model to generate music via text prompt. | Exact payloads, commands, or snippets shown in A Go code snippet demonstrating how to use the GenerateContent method with the lyria-3-pro-preview model to generate... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-pro-preview-ge.text | A Python code example demonstrating how to use the Gemini API to generate cinematic orchestral music using the Lyria 3 Pro preview model. | Exact payloads, commands, or snippets shown in A Python code example demonstrating how to use the Gemini API to generate cinematic orchestral music using the Lyria... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-generate-curl--2.text | A curl command demonstrating how to send a POST request to the Lyria 3 model to generate music via the Gemini API. | Exact payloads, commands, or snippets shown in A curl command demonstrating how to send a POST request to the Lyria 3 model to generate music via the Gemini API. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-7.text | A C# code snippet demonstrating how to use the GenerateContentAsync method to generate music using the lyria-3-pro-preview model. | Exact payloads, commands, or snippets shown in A C# code snippet demonstrating how to use the GenerateContentAsync method to generate music using the lyria-3-pro-pr... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-pro-preview-py-2.text | A Python code snippet demonstrating how to use the Lyria 3 model to generate an atmospheric ambient audio track via the Gemini API. | Exact payloads, commands, or snippets shown in A Python code snippet demonstrating how to use the Lyria 3 model to generate an atmospheric ambient audio track via t... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-audio-generati.text | A Node.js code example demonstrating how to use the Lyria 3 model to generate an atmospheric ambient audio track via the Gemini API. | Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to use the Lyria 3 model to generate an atmospheric ambient audio track via... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-audio-generati-2.text | A Go code configuration snippet demonstrating how to set response modalities to audio and text for music generation using the Lyria 3 model. | Exact payloads, commands, or snippets shown in A Go code configuration snippet demonstrating how to set response modalities to audio and text for music generation u... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-audio-generati-3.text | A Java code snippet demonstrating how to configure GenerateContentConfig with audio response modalities and WAV format for the Lyria 3 model. | Exact payloads, commands, or snippets shown in A Java code snippet demonstrating how to configure GenerateContentConfig with audio response modalities and WAV forma... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-audio-generati-4.text | A C# code configuration demonstrating how to set response modalities to audio and text for music generation using the Lyria 3 model. | Exact payloads, commands, or snippets shown in A C# code configuration demonstrating how to set response modalities to audio and text for music generation using the... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-generate-curl--3.text | A curl command demonstrating how to request audio and text generation using the Lyria 3 model via the Gemini API. | Exact payloads, commands, or snippets shown in A curl command demonstrating how to request audio and text generation using the Lyria 3 model via the Gemini API. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-music-generation.text | A Python code snippet that iterates through a Gemini API response to extract and save generated lyrics and audio data. | Exact payloads, commands, or snippets shown in A Python code snippet that iterates through a Gemini API response to extract and save generated lyrics and audio data. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-music-generation-2.text | A Node.js code example demonstrating how to extract lyrics and audio data from a Gemini API response using the Lyria model. | Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to extract lyrics and audio data from a Gemini API response using the Lyria... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-music-generation-3.text | A Go code example demonstrating how to process Gemini API responses to extract both lyrics and audio data from Lyria music generation results. | Exact payloads, commands, or snippets shown in A Go code example demonstrating how to process Gemini API responses to extract both lyrics and audio data from Lyria... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-music-generation-4.text | A Java code example demonstrating how to use the Gemini API to generate music and lyrics using the Lyria model. | Exact payloads, commands, or snippets shown in A Java code example demonstrating how to use the Gemini API to generate music and lyrics using the Lyria model. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-music-generation-5.text | A C# code example demonstrating how to process Gemini API responses to extract both lyrics and inline audio data for music generation. | Exact payloads, commands, or snippets shown in A C# code example demonstrating how to process Gemini API responses to extract both lyrics and inline audio data for... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-music-generation-6.text | A sample JSON response from the Gemini API containing base64 encoded audio data for music generation. | Exact payloads, commands, or snippets shown in A sample JSON response from the Gemini API containing base64 encoded audio data for music generation. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-8.text | A Python code example demonstrating how to use the Lyria 3 model to generate ambient music based on an image input. | Exact payloads, commands, or snippets shown in A Python code example demonstrating how to use the Lyria 3 model to generate ambient music based on an image input. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-9.text | A Node.js code example demonstrating how to generate music using the Lyria 3 model by providing an image as a prompt. | Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to generate music using the Lyria 3 model by providing an image as a prompt. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-music-generation-7.text | A Go code example demonstrating how to generate music using the Lyria model by providing an image as a prompt. | Exact payloads, commands, or snippets shown in A Go code example demonstrating how to generate music using the Lyria model by providing an image as a prompt. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-10.text | A Java code example demonstrating how to use the Gemini API to generate music with the Lyria 3 model using text and image inputs. | Exact payloads, commands, or snippets shown in A Java code example demonstrating how to use the Gemini API to generate music with the Lyria 3 model using text and i... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-generate-curl--4.text | A curl command demonstrating how to send a POST request to the Lyria 3 model to generate music using text and image input. | Exact payloads, commands, or snippets shown in A curl command demonstrating how to send a POST request to the Lyria 3 model to generate music using text and image i... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-11.text | A C# code example demonstrating how to use the Lyria 3 model to generate music using text and image inputs via the GenerateContentAsync method. | Exact payloads, commands, or snippets shown in A C# code example demonstrating how to use the Lyria 3 model to generate music using text and image inputs via the Ge... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-music-generation-8.text | A text file containing a sample prompt for generating an indie pop song using the Lyria model via the Gemini API. | Exact payloads, commands, or snippets shown in A text file containing a sample prompt for generating an indie pop song using the Lyria model via the Gemini API. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-music-generation-9.text | A text example demonstrating a music generation prompt containing lyrics for a dreamy indie pop song using the Lyria model. | Exact payloads, commands, or snippets shown in A text example demonstrating a music generation prompt containing lyrics for a dreamy indie pop song using the Lyria... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-music-generation-10.text | A text example demonstrating a music generation prompt for the Lyria model including lyrics and style descriptions. | Exact payloads, commands, or snippets shown in A text example demonstrating a music generation prompt for the Lyria model including lyrics and style descriptions. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-music-generation-11.text | A Java code snippet demonstrating how to structure a text prompt for generating indie pop music using the Lyria model via the Gemini API. | Exact payloads, commands, or snippets shown in A Java code snippet demonstrating how to structure a text prompt for generating indie pop music using the Lyria model... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-music-generation-12.text | A C# code snippet demonstrating how to structure a music generation prompt using the Lyria model within the Gemini API. | Exact payloads, commands, or snippets shown in A C# code snippet demonstrating how to structure a music generation prompt using the Lyria model within the Gemini API. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-generate-curl--5.text | A curl command demonstrating how to send a POST request to the Lyria 3 model to generate music using text prompts. | Exact payloads, commands, or snippets shown in A curl command demonstrating how to send a POST request to the Lyria 3 model to generate music using text prompts. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-music-generation-13.text | A text-based example of a structured multi-segment prompt used to generate music with the Lyria model. | Exact payloads, commands, or snippets shown in A text-based example of a structured multi-segment prompt used to generate music with the Lyria model. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-music-generation-14.text | A text-based example of a structured musical prompt containing time-stamped instructions for melody, instrumentation, and mood for the Lyria model. | Exact payloads, commands, or snippets shown in A text-based example of a structured musical prompt containing time-stamped instructions for melody, instrumentation,... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-music-generation-15.text | A text-based example of a structured musical prompt containing time-stamped instructions for melody, instrumentation, and mood for the Lyria model. | Exact payloads, commands, or snippets shown in A text-based example of a structured musical prompt containing time-stamped instructions for melody, instrumentation,... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-music-generation-16.text | A text-based example of a structured musical prompt containing time-stamped instructions for melody, instrumentation, and mood. | Exact payloads, commands, or snippets shown in A text-based example of a structured musical prompt containing time-stamped instructions for melody, instrumentation,... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-music-generation-17.text | A text-based example of a structured musical prompt containing time-stamped instructions for melody, instrumentation, and mood. | Exact payloads, commands, or snippets shown in A text-based example of a structured musical prompt containing time-stamped instructions for melody, instrumentation,... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-generate-curl--6.text | A curl command demonstrating how to send a POST request to the Lyria 3 model endpoint for music generation using the Gemini API. | Exact payloads, commands, or snippets shown in A curl command demonstrating how to send a POST request to the Lyria 3 model endpoint for music generation using the... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-12.text | A Python code example demonstrating how to use the Lyria 3 model to generate an instrumental chiptune melody via the Gemini API. | Exact payloads, commands, or snippets shown in A Python code example demonstrating how to use the Lyria 3 model to generate an instrumental chiptune melody via the... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-13.text | A Node.js code snippet demonstrating how to use the Lyria 3 model to generate an 8-bit chiptune melody via the Gemini API. | Exact payloads, commands, or snippets shown in A Node.js code snippet demonstrating how to use the Lyria 3 model to generate an 8-bit chiptune melody via the Gemini... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-14.text | A Go code snippet demonstrating how to use the GenerateContent method to create a chiptune melody using the Lyria 3 model. | Exact payloads, commands, or snippets shown in A Go code snippet demonstrating how to use the GenerateContent method to create a chiptune melody using the Lyria 3 m... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-15.text | A Python code example demonstrating how to use the Gemini API to generate a chiptune melody using the Lyria 3 model. | Exact payloads, commands, or snippets shown in A Python code example demonstrating how to use the Gemini API to generate a chiptune melody using the Lyria 3 model. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-16.text | A C# code snippet demonstrating how to use the GenerateContentAsync method to generate music using the lyria-3-clip-preview model. | Exact payloads, commands, or snippets shown in A C# code snippet demonstrating how to use the GenerateContentAsync method to generate music using the lyria-3-clip-p... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-generate-curl--7.text | A curl command demonstrating how to send a POST request to the Lyria 3 model endpoint to generate music via text prompt. | Exact payloads, commands, or snippets shown in A curl command demonstrating how to send a POST request to the Lyria 3 model endpoint to generate music via text prompt. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-pro-preview-py-3.text | A Python code snippet demonstrating how to call the lyria-3-pro-preview model to generate music using a text prompt. | Exact payloads, commands, or snippets shown in A Python code snippet demonstrating how to call the lyria-3-pro-preview model to generate music using a text prompt. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-17.text | A JavaScript code snippet demonstrating how to use the Lyria 3 model to generate music via the Gemini API using a text prompt. | Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating how to use the Lyria 3 model to generate music via the Gemini API using a tex... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-pro-preview-go-2.text | A Go code snippet demonstrating how to use the GenerateContent method with the lyria-3-pro-preview model to generate music via a text prompt. | Exact payloads, commands, or snippets shown in A Go code snippet demonstrating how to use the GenerateContent method with the lyria-3-pro-preview model to generate... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-18.text | A Python code example demonstrating how to use the Gemini API to generate music with the Lyria 3 model using a text prompt. | Exact payloads, commands, or snippets shown in A Python code example demonstrating how to use the Gemini API to generate music with the Lyria 3 model using a text p... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-pro-preview-ge-2.text | A C# code snippet demonstrating how to use the Gemini API to generate music with the Lyria 3 model using the GenerateContentAsync method. | Exact payloads, commands, or snippets shown in A C# code snippet demonstrating how to use the Gemini API to generate music with the Lyria 3 model using the Generate... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-generate-curl--8.text | A curl command demonstrating how to send a POST request to the Lyria 3 model to generate music via a text prompt. | Exact payloads, commands, or snippets shown in A curl command demonstrating how to send a POST request to the Lyria 3 model to generate music via a text prompt. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-python-music-g.text | A Python code snippet demonstrating how to use the Gemini API and Lyria 3 model to generate music via client interactions. | Exact payloads, commands, or snippets shown in A Python code snippet demonstrating how to use the Gemini API and Lyria 3 model to generate music via client interact... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-19.text | A Node.js code example demonstrating how to use the GoogleGenAI client to generate music using the Lyria 3 model with a specific musical prompt. | Exact payloads, commands, or snippets shown in A Node.js code example demonstrating how to use the GoogleGenAI client to generate music using the Lyria 3 model with... |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-3-music-generati-20.text | A curl command demonstrating how to send a POST request to the Gemini API to generate music using the Lyria 3 model. | Exact payloads, commands, or snippets shown in A curl command demonstrating how to send a POST request to the Gemini API to generate music using the Lyria 3 model. |
examples/gemini-api-generate-music-with-lyria-3-gemini-api-lyria-music-generation-18.text | A text file containing sample lyrics used to demonstrate music generation with the Lyria model via the Gemini API. | Exact payloads, commands, or snippets shown in A text file containing sample lyrics used to demonstrate music generation with the Lyria model via the Gemini API. |
What This Skill Covers
- Lyria 3 is Google's family of music generation models, available through the Gemini API. With Lyria 3, you can generate high-quality, 44.1 kHz stereo audio f...
- Main sections:
Generate a music clip,Python,JavaScript,Go,Java.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://ai.google.dev/gemini-api/docs/music-generation
