lyria
Skill by OpenMontageInc
Guides an assistant through generating music with Google Lyria via the Gemini Interactions API. Built for creators and developers producing music for video with OpenMontage.
Install lyria
Built from the published package, never by AI.
git clone --depth 1 https://github.com/OpenMontageInc/OpenMontage /tmp/OpenMontage && mkdir -p ~/.claude/skills && cp -r /tmp/OpenMontage/.agents/skills/lyria ~/.claude/skills/lyriaRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/OpenMontageInc/OpenMontage /tmp/OpenMontage && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/OpenMontage/.agents/skills/lyria ~/.gemini/antigravity-cli/skills/lyriaAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an assistant a structured workflow for generating music with Google Lyria through the Gemini Interactions API. It explains how to choose between Lyria 3.5, Lyria 3 Clip, the legacy Lyria 3 Pro preview and the experimental Lyria RealTime model. It sets out a required sequence: confirm the musical role, announce the provider and cost, write one structured prompt, make one approved call, preserve the returned source, then probe and listen to the file.
The skill also covers prompt structure, instrumental-only output, custom lyrics and vocal direction, and authentication and failure diagnosis. Duration is treated as untrusted until a file probe confirms it, and exact-length music is produced as a separate derived master. It is written for people using OpenMontage's google_music adapter to create music for video.
Written from the project's SKILL.md and checked against it.
What it can do
- Model selectionHelps choose between Lyria 3.5, Lyria 3 Clip, the legacy Pro preview and Lyria RealTime.
- Structured prompt designSets out an ordered prompt contract covering purpose, tempo, instruments, structure, dynamics and exclusions.
- Vocal and lyric guidanceDefines vocal roles, language handling and custom lyric formatting with section labels.
- Instrumental-only promptsProvides a text block to exclude vocals, speech, choir and recognizable quotations.
- Exact-duration masteringDescribes deriving a trimmed production master with a fade while keeping the provider source unchanged.
- Duration probingUses ffprobe to check the real duration, codec, sample rate and channels of the generated file.
- Credential and error diagnosisExplains which API key or Vertex path is used and how to treat 403 and permission errors.
- Result recordingLists the provenance fields to record, including prompt, requested and probed duration, and cost.
What you need
- Gemini API key (GEMINI_API_KEY) or Google API key (GOOGLE_API_KEY)
- Vertex service-account credentials, if using Vertex instead
- OpenMontage google_music adapter
- ffprobe for checking generated audio files
Try asking
- Write a 30-second instrumental cue for a product video using Lyria.
- Which Lyria model should I use for a looping background score?
- Make an exact 20-second master from this Lyria track for my edit.
Good to know
- The OpenMontage google_music adapter does not expose Clip, WAV selection or RealTime controls.
- Full-song duration is set through prompt instructions, so the output length is not exact.
- Lyria 3 Pro preview is a legacy model and availability should be verified before use.
- Lyria RealTime is an experimental WebSocket workflow and is not routed through google_music.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/lyria/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB -
agents/openai.yaml231 B -
references/api-and-prompting.md9 KB
Alternatives to lyria
All alternatives →Keeps customer-facing CopilotKit Intelligence docs on one approved name per concept. Useful for writers, editors and reviewers of docs, nav labels, signup labels and image alt text in showcase/shell-docs.
Gets, makes and treats media for HyperFrames videos. It sources music, sound effects, images, voiceover, avatars and transcripts with HeyGen or free local tools, and applies colour grades and looks to footage.
Searches the user's uploaded photo library and connected device galleries to find, date, and describe photos. Built for personal photo requests and for cases where a photo could ground or personalize an answer.
Converts text, markdown, or another skill's summary into a listenable MP3 using local CPU-only neural text-to-speech. It rewrites the prose for listening first. Aimed at people who want audio briefings.
Generate Image creates new images and edits existing ones using OpenRouter models such as FLUX.2 Pro and Gemini 3 Pro. It is aimed at photos, illustrations, concept art and other visuals that are not technical diagrams.
Gives an AI assistant the HyperFrames CLI for building, checking, previewing and rendering video projects. It suits people who make videos from HTML compositions and want the assistant to run the full workflow.
Compare with intelligence-vocabulary, media-use or media_library
lyria: common questions
Does Lyria generate exact-length music for a video?
Full-song output is controlled through prompt instructions and timestamps, not an exact parameter. The skill advises probing the file and deriving an exact-duration master by trimming with a short fade.
What does a Lyria generation cost?
The skill lists Gemini Developer API prices of $0.04 per request for Clip and $0.08 per request for Lyria 3.5 and the legacy Pro preview, checked on 2026-10-10.
Can Lyria create vocals with custom lyrics?
Yes. The skill explains how to separate performance direction from a Lyrics block with section labels, and says returned vocals should be auditioned before approval.
How do I install lyria?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is lyria free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is lyria safe to use?
It scores 92 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to lyria?
Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.
