Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/gemini-api-generate-music-with-lyria-3-workflow-guide.mdA 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.textA 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.textA 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.textA 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.textA 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-.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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