lyria
Installation
SKILL.md
Lyria Music Generation Skill
Generate high-fidelity 44.1 kHz stereo audio, full songs with structured lyrics, instrumental soundtracks, and thematic compositions from text prompts or visual reference images using Google's Lyria foundation models (lyria-3.5, lyria-3-clip-preview, and lyria-3-pro-preview) via the official gemini-api CLI (gemini-api music) for terminal and coding agent workflows, or the Google Gen AI SDKs for application backends.
Prerequisites: gemini-api CLI Setup
The gemini-api CLI is a zero-dependency binary that writes generated audio files directly to disk and prints only the output file path to stdout, avoiding raw base64 audio payloads in agent context windows.
# 1. Verify or install gemini-api CLI on macOS and Linux
command -v gemini-api >/dev/null 2>&1 || (curl -fsSL https://raw.githubusercontent.com/google-gemini/gemini-api-cli/main/scripts/install.sh | bash)
# Windows (PowerShell): iwr -useb https://raw.githubusercontent.com/google-gemini/gemini-api-cli/main/scripts/install.ps1 | iex
# 2a. Authenticate with a Gemini API Key (environment variable or OS keychain)
export GEMINI_API_KEY="your-api-key"
# Or store credentials in the OS keychain:
gemini-api configure --api-key "your-api-key"