How to Use ElevenLabs Music in VS Code
ElevenLabs Music turns a written brief into songs with vocals or instrumental scores for videos, podcasts, and games. Use a text prompt to explore a direction, or a composition plan to guide sections and lyric placement.
Prompts to try with ElevenLabs Music in VS Code
Copy an example into VS Code, or ask in your own words.
Read the game's scene descriptions and use ElevenLabs Music to create a 60-second instrumental exploration cue: calm ambient electronic music, soft synthesizers, sparse piano, and 70 BPM.
Use the demo script in this project to brief ElevenLabs Music on a 90-second instrumental background: understated electronic music, warm bass, light percussion, and 100 BPM.
Read the trailer outline and use ElevenLabs Music to generate a 45-second orchestral score with a composition plan: 15 seconds of tension, 20 seconds of building strings and brass, then a 10-second resolution.
Use the original lyrics in this project's song draft with ElevenLabs Music to make a two-minute acoustic folk demo. Keep the verse and chorus order, with fingerpicked guitar and an intimate lead vocal.
Use ElevenLabs Music to create three separate 15-second instrumental title cues for this game's menu: one solo piano, one acoustic guitar, and one soft synthesizer. Keep each calm and slow.
How to set up ElevenLabs Music in VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
Use Add to VS Code on the console's Agents & MCP page, or run:
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}' - Sign in
VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.
Use the Spiral skill
- Send VS 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 ElevenLabs Music
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", "input": { "seed": 0 } }'
Then paste one of the prompts above: VS Code finds ElevenLabs Music on Spiral, shows the price and runs it.
ElevenLabs Music providers and prices
Spiral runs ElevenLabs Music through ElevenLabs. Open a card for today's price, with every fee included.
Settings you can ask for
ElevenLabs Music works from your prompt and lyrics text. Ask VS 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 | |
| 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. |
| Respect sections durations | on or off | on | Controls how strictly section durations in the |
Every API field of ElevenLabs Music is on its tool page: open its card above.
What can you do with ElevenLabs Music in VS Code?
Create music assets for a game's scenes, a product demo, or another project with ElevenLabs Music. Use project briefs and scripts to choose durations, instrumentation, and section structure.
Podcast intros
Create a short instrumental opening with a clear mood, named instruments, and a defined tempo. Try a 15-second piano-and-bass cue for an interview show.
Product demonstration backgrounds
Generate a restrained instrumental bed for a narrated demonstration. Specify sparse instrumentation and the length of the presentation.
Game scene scores
Describe the scene and its emotional direction, such as a quiet exploration sequence or a tense encounter. Request the instrumentation and tempo that fit the action.
Advertising music
Make a short musical cue around an ad's mood and running time. A 30-second upbeat funk brief can call for bass, rhythm guitar, and brass.
Songwriting demos
Hear original lyrics as a vocal song before developing the arrangement further. Use a composition plan when verse and chorus placement matters.
Songs in different languages
Create separate song demos with English, Spanish, German, or Japanese lyrics. Specify the language and musical direction for each recording.
Short film scoring
Turn a written scene description into an instrumental score. Describe the emotional progression and use a composition plan for a structured build and resolution.
Ambient backgrounds
Generate instrumental music for a calm video or listening session. Ask for sparse piano, soft synthesizers, and a slow tempo over a defined duration.
ElevenLabs Music 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 | 90.5% | 8.0s | 42 |
More on ElevenLabs Music and VS Code
Overview
ElevenLabs Music in other agents
Questions about ElevenLabs Music in VS Code
Can VS Code use ElevenLabs Music?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run ElevenLabs Music like any built-in tool.
How much does ElevenLabs Music cost in VS 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 VS Code plan is separate.
Do I need an ElevenLabs account to use ElevenLabs Music in VS Code?
No. Spiral runs ElevenLabs Music on its own ElevenLabs account. You sign in to Spiral once and never paste a key.
How long does it take to set up ElevenLabs Music in VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while ElevenLabs Music runs?
ElevenLabs Music runs in the background. VS Code starts the run, checks on it and gives you the audio when it's ready.
What is ElevenLabs Music useful for?
Use it for vocal songs, instrumental backgrounds, and scores shaped around a scene or mood. Specific briefs work well for video soundtracks, advertising cues, and game music.
How long can a track be?
Prompt-based generation supports 3 seconds to 10 minutes. Choose the length around the actual use, such as a 15-second intro or a two-minute background track.
Can ElevenLabs Music sing in other languages?
Yes. Supported examples include English, Spanish, German, and Japanese; state the desired lyric language in your brief.
How do I get music without singing?
Include 'instrumental only' in the prompt. Name the instruments, mood, and tempo so the brief describes the backing track you need.
When should I use a composition plan?
Use a composition plan when the arrangement or lyric placement matters, such as an intro followed by a verse and chorus. A text prompt is a quicker starting point when you are still choosing a musical direction.
Start using ElevenLabs Music in VS Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into VS Code:
set up https://spiral.ai/SKILL.md


