How to Use Eleven Music with metadata in Claude Code
Eleven Music with metadata creates vocal songs or instrumental scores for videos, podcasts, and games. It returns the composition plan and song metadata alongside the audio, making it useful when you need to inspect the arrangement or retain lyrics.
Prompts to try with Eleven Music with metadata in Claude Code
Copy an example into Claude Code, or ask in your own words.
Read the game's opening scene in this project. Use Eleven Music with metadata to create a 60-second instrumental exploration score with soft strings, sparse piano, and an uneasy mood; save the audio and returned metadata together.
Use Eleven Music with metadata to make a 30-second instrumental cue for the project's demo video: muted guitar, light percussion, 100 BPM, contemporary production, and a quiet middle for narration.
Inspect the game's victory screen. Use Eleven Music with metadata to create a 10-second instrumental brass-and-percussion cue that starts confidently and resolves with a clear final chord.
Use Eleven Music with metadata to generate a 45-second English folk song about fixing a stubborn bug, with acoustic guitar and conversational vocals. Request word timestamps and build a caption preview from the returned lyrics and timing.
Read the project's creative brief. Use Eleven Music with metadata to generate two 30-second instrumental directions, one acoustic and one electronic; save each track with its returned composition plan for comparison.
How to set up Eleven Music with metadata in Claude Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
This adds Spiral to the current project. Add --scope user to use it in every project.
claude mcp add --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.
Use the Spiral skill
- Send Claude Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Eleven Music with metadata
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "elevenlabs", "model": "music-detailed", "input": { "seed": 0 } }'
Then paste one of the prompts above: Claude Code finds Eleven Music with metadata on Spiral, shows the price and runs it.
Eleven Music with metadata providers and prices
Spiral runs Eleven Music with metadata through ElevenLabs. Open a card for today's price, with every fee included.
Settings you can ask for
Eleven Music with metadata works from your prompt and lyrics text. Ask Claude Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Seed | 0 to 2147483647 | Random seed to initialize the music generation process. Providing the same seed with the same parameters can help achieve more consistent results, but exact reproducibility is not guaranteed and outputs may change across system updates. Cannot be used in conjunction with prompt. | |
| Output format | auto, mp3_48000_128, mp3_48000_192, mp3_48000_240, mp3_48000_320, mp3_22050_32, mp3_24000_48, mp3_44100_32 and 18 more | auto | Output format of the generated audio. Formatted as codec_sample_rate_bitrate. Use "auto" (the default) to let the API pick the best format for the selected model: mp3_44100_128 for v1 models and mp3_48000_192 for v2 models. |
| Sign with C2Pa | on or off | off | Whether to sign the generated song with C2PA. Applicable only for mp3 files. |
| MusicGenerationMode | track, loop, ambience, or video_to_music | Optional generation mode hint for prompt-based music generation. Can only be used with | |
| Music length ms | 3000 to 600000 | The length of the song to generate in milliseconds. Used only in conjunction with | |
| With timestamps | on or off | off | Whether to return the timestamps of the words in the generated song. |
| Finetune strength | a number up to 2 | 1 | How strongly the finetune influences the generation. Defaults to 1.0 (full strength). Lower values soften the influence of the finetune, leaving more room for prompt-level steering. Only meaningful when |
| Force instrumental | on or off | off | If true, guarantees that the generated song will be instrumental. If false, the song may or may not be instrumental depending on the |
| Use phonetic names | on or off | off | If true, proper names in the prompt will be phonetically spelled in the lyrics for better pronunciation by the music model. The original names will be restored in word timestamps. |
| Store for inpainting | on or off | off | Whether to store the generated song for inpainting. |
| With waveform visual | on or off | off | Whether to return the visual waveform of the generated song. |
| Respect sections durations | on or off | on | Controls how strictly section durations in the |
Every API field of ElevenLabs Music · Song with Metadata is on its tool page: open its card above.
What can you do with Eleven Music with metadata in Claude Code?
Create music that fits a game's scenes, a product demo, or another project asset. Use the returned composition plan and metadata to keep the audio tied to its creative brief.
Podcast openings and endings
Create a short instrumental theme with a recognizable opening phrase and a clear ending for an episode.
Product demo music
Request a restrained instrumental score that matches a demo's pacing, with fewer instruments during the spoken explanation.
Game scene scores
Describe an exploration, encounter, or victory scene and request music with a matching mood and arrangement.
Short advertisement soundtracks
Build a 30-second cue around an opening hook, a quieter middle, and a closing musical phrase.
Multilingual song demos
Explore vocal songs in English, Spanish, German, or Japanese, retaining the returned lyrics and composition plan for review.
Film scene scoring drafts
Describe a scene's emotional progression and request an instrumental arrangement that moves from tension to resolution.
Music direction comparisons
Generate contrasting treatments of the same brief, such as acoustic folk and electronic pop, then compare the audio and returned plans.
Lyric video preparation
Generate a vocal song and use its returned lyrics and word timestamps as starting material for timed captions.
Eleven Music with metadata success rate and speed on Spiral
Success and speed over the last 24 hours, across every run of these tools on Spiral.
| Tool | Success | Median time | Runs |
|---|---|---|---|
| ElevenLabs Music · Song with Metadata | 92.0% | 17.2s | 50 |
More on Eleven Music with metadata and Claude Code
Overview
Eleven Music with metadata in other agents
More Claude Code guides
Questions about Eleven Music with metadata in Claude Code
Can Claude Code use Eleven Music with metadata?
Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Eleven Music with metadata like any built-in tool.
How much does Eleven Music with metadata cost in Claude Code?
$0.195 per minute of music. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.
Do I need an ElevenLabs account to use Eleven Music with metadata in Claude Code?
No. Spiral runs Eleven Music with metadata on its own ElevenLabs account. You sign in to Spiral once and never paste a key.
How long does it take to set up Eleven Music with metadata in Claude Code?
About two minutes: add the hosted server, then sign in.
Does Claude Code wait while Eleven Music with metadata runs?
Eleven Music with metadata runs in the background. Claude Code starts the run, checks on it and gives you the audio, json when it's ready.
How long can Eleven Music tracks be?
The detailed endpoint supports prompt-based tracks from 3 seconds to 10 minutes. Choose a duration that fits the intended cut before describing the arrangement.
Can Eleven Music make instrumental music?
Yes. Include instrumental only in the prompt, then describe the instruments, mood, and tempo you want.
Which languages can Eleven Music sing in?
Documented examples include English, Spanish, German, and Japanese. State the vocal language explicitly in your request.
Can I specify a verse, chorus, and outro?
Yes. Describe the sections in order and explain how the instrumentation or energy should change between them.
Will repeated prompts keep exactly the same sound?
Standard generations can vary in instrumentation, texture, production style, and feel. Keep those details explicit and review each result before using it across a series.
Start using Eleven Music with metadata in Claude Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Claude Code:
set up https://spiral.ai/SKILL.md


