Use this skill for AI music generation...
Generate music, songs, and audio using AI (Suno, Udio, Google Lyria).
At least one API key is required:
GOOGLE_API_KEY - For Google Lyria (same key as video/image) โ
SUNO_API_KEY - For Suno music generationUDIO_API_KEY - For Udio music generationGOOGLE_API_KEY as video/image generation โ
This determines which API to use:
| Need | API | Why |
|---|---|---|
| Vocals/Lyrics | Suno or Udio | Lyria cannot generate vocals |
| Instrumental only | Lyria (preferred) | Same API key as video/image, real-time control |
| Background music | Lyria | Best for soundtracks, game audio |
| Full songs | Suno | Best vocal quality |
Example prompt to user:
"I'll generate that music! Quick question:
Do you need vocals/lyrics?
What genre/mood? (e.g., chill lo-fi, epic orchestral, upbeat pop)
How long? (Lyria: any length, Suno: up to 4 min)
Any BPM preference? (e.g., 90 for chill, 128 for dance)"
Parse the user's music request for:
Transform the user request into an effective music generation prompt:
Example transformation:
For songs with vocals:
Lyrics format for Suno:
[Verse 1]
Your lyrics here
[Chorus]
Catchy chorus lyrics
[Verse 2]
More lyrics
Choose based on requirements:
| Use Case | Recommended API | Reason |
|---|---|---|
| Instrumental/background | Lyria | Same API key, any duration, real-time control |
| Full songs with vocals | Suno | Best vocal quality |
| Lo-fi beats | Lyria | Great for ambient/chill |
| Experimental/electronic | Udio | Strong in these genres |
| Specific lyrics needed | Suno | Lyrics input support |
| Game/video soundtrack | Lyria | Precise BPM/key control |
Execute the appropriate script from ${CLAUDE_PLUGIN_ROOT}/skills/music-generation/scripts/:
For Google Lyria (Instrumental):
python3 ${CLAUDE_PLUGIN_ROOT}/skills/music-generation/scripts/lyria.py \
--prompt "chill lo-fi hip hop, jazzy piano, vinyl crackle" \
--duration 60 \
--bpm 85
Lyria with key/scale:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/music-generation/scripts/lyria.py \
--prompt "ambient, ethereal synths, dreamy" \
--duration 120 \
--scale "C" \
--brightness 0.7
Lyria with multiple prompts (blended):
python3 ${CLAUDE_PLUGIN_ROOT}/skills/music-generation/scripts/lyria.py \
--prompt "minimal techno" \
--prompt "deep bass, 808" \
--bpm 128 \
--duration 90
For Suno (with vocals):
python3 ${CLAUDE_PLUGIN_ROOT}/skills/music-generation/scripts/suno.py \
--prompt "upbeat indie pop, summer vibes, acoustic guitar" \
--title "Summer Days"
For Udio:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/music-generation/scripts/udio.py \
--prompt "cinematic orchestral, epic trailer music" \
--duration 120
Missing API key: Inform the user which key is needed:
GOOGLE_API_KEY as video/image - https://aistudio.google.com/apikeyLyria requires google-genai package: pip install google-genai
User wants vocals but only has GOOGLE_API_KEY: Explain Lyria is instrumental-only, suggest Suno/Udio.
Content policy violation: Rephrase lyrics or prompt.
Generation failed: Retry with simplified prompt.
Quota exceeded: Suggest waiting or trying other provider.
Include specific genre tags for best results:
[pop, upbeat, female vocals, 128 BPM][jazz, smooth, saxophone, laid-back][electronic, synthwave, 80s, driving][classical, orchestral, emotional, strings]| Feature | Lyria | Suno | Udio |
|---|---|---|---|
| API Key | GOOGLE_API_KEY โ
|
SUNO_API_KEY |
UDIO_API_KEY |
| Max duration | Unlimited | 4 minutes | 2 minutes |
| Vocals | โ No | โ Excellent | โ Good |
| Instrumentals | โ Excellent | โ Great | โ Excellent |
| BPM control | โ 60-200 | โ No | โ No |
| Key/Scale control | โ Yes | โ No | โ No |
| Audio quality | 48kHz WAV | Very good | Excellent |
| Lyrics input | โ No | โ Yes | โ Yes |
| Real-time steering | โ Yes | โ No | โ No |
| Best for | Beats, soundtracks | Songs | Experimental |
Catchy pop song with female vocals, bright synths, and an anthemic chorus.
Feel-good energy, summer vibes, 120 BPM, radio-friendly production.
Epic orchestral trailer music with building tension. Powerful brass,
sweeping strings, thundering percussion. Dramatic and emotional.
Chill lo-fi hip hop beat, jazzy piano samples, vinyl crackle,
relaxed drums, perfect for studying. 85 BPM, nostalgic mood.
High-energy EDM track with massive drops, pulsing synths,
four-on-the-floor beat. Festival-ready, 128 BPM.
python3 lyria.py -p "lo-fi hip hop, jazzy piano, vinyl crackle, chill" \
--duration 300 --bpm 85 --brightness 0.3
python3 lyria.py -p "minimal techno, deep bass, 808 drums" \
--duration 120 --bpm 128 --density 0.7
python3 lyria.py -p "ambient, ethereal, soft pads, dreamy" \
--duration 180 --brightness 0.8 --density 0.2
python3 lyria.py -p "epic orchestral, cinematic, dramatic strings" \
--duration 90 --scale "D" --mode quality
-p flags to blend styles