music-generation
Skill by letta-ai
Generates music from text prompts through Letta's hosted ElevenLabs Music endpoint. Suited to instrumental tracks, songs with lyrics, jingles and background music. No separate ElevenLabs API key is needed.
Install music-generation
Built from the published package, never by AI.
git clone --depth 1 https://github.com/letta-ai/letta-code /tmp/letta-code && mkdir -p ~/.claude/skills && cp -r /tmp/letta-code/src/skills/builtin/music-generation ~/.claude/skills/music-generationRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/letta-ai/letta-code /tmp/letta-code && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/letta-code/src/skills/builtin/music-generation ~/.gemini/antigravity-cli/skills/music-generationAntigravity 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 agent skill generates music with ElevenLabs Music, called through Letta's hosted endpoint at POST /v1/audio/music or /v1/audio/music/stream. The request follows the ElevenLabs "Compose music" format, and Letta forwards it using its own key and charges the organization's Letta credits. The default model is music_v2_5. Users can write a text prompt, or send a composition plan made of chunks with their own lyrics, durations and style tags for section-by-section control.
The skill covers song length rules, output formats such as MP3 and Opus, prompting advice, content restrictions on artist names and copyrighted lyrics, and error handling. It is aimed at developers and teams who want an assistant to create instrumental tracks, songs, or background music inside a Letta workflow.
Written from the project's SKILL.md and checked against it.
What it can do
- Prompt-based generationCreates a song or instrumental track from a text description, with optional length and force_instrumental.
- Composition plansBuilds songs section by section from chunks with lyrics, durations and positive or negative styles.
- Multiple output formatsReturns MP3, PCM, or Opus audio, selected with the output_format query parameter.
- Model selectionSupports music_v2_5 (default), music_v2, and music_v1 model IDs.
- Streaming outputUses the /v1/audio/music/stream endpoint so long songs do not wait on an idle connection.
What you need
- Letta API key (LETTA_API_KEY)
- Letta base URL (LETTA_BASE_URL)
- Letta Cloud account with enough Letta credits
- curl
Try asking
- Make a 30 second lo-fi hip hop beat with jazzy piano chords.
- Write a 90 BPM upbeat pop song plan with two verses and a chorus.
- Create an instrumental orchestral trailer track that builds to a big finish.
Good to know
- Songs must be between 3 seconds and 10 minutes long.
- Prompts cannot name specific artists, bands, or copyrighted lyrics.
- Inpainting and audio reference features return a 400 error through this endpoint.
- Composition plans allow up to 30 chunks, each 3,000 to 120,000 ms.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: src/skills/builtin/music-generation/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
LICENSE1 KB -
SKILL.md8 KB
Alternatives to music-generation
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
music-generation: common questions
Do I need an ElevenLabs API key to use this skill?
No. The skill calls Letta's hosted endpoint, which uses Letta's key and charges Letta credits. If Letta credentials are missing, the user must authenticate with Letta Cloud.
Which music model does it use by default?
It uses music_v2_5, described as the most advanced ElevenLabs music model and the endpoint's default. music_v2 and music_v1 are also supported.
How long does generation take?
The source says generation takes roughly 10 to 30 seconds per minute of music.
How do I install music-generation?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is music-generation free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is music-generation safe to use?
It scores 85 of 100. Grades: maintenance A, licence A, 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 music-generation?
Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.
