Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 85
  • 3.9k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-generation

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install music-generation in Claude Code

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

A

No 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 →

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.

music-generation Install

Add to stack

Loading.