Spiral gives your agent every tool with one account. Browse the tools →

Gemini CLI · AudioReleased 2026-06-15

How to Use Eleven Music v2 in Gemini CLI

Eleven Music v2 makes instrumental scores and vocal tracks, including fast rap and songs that change genre midway. Compared with Music v1, it improves composition, multilingual output, and vocal delivery.

Prompts to try with Eleven Music v2 in Gemini CLI

Copy an example into Gemini CLI, or ask in your own words.

Read the product demo script in this project, then use Eleven Music v2 to generate a 60-second instrumental electronic accompaniment. Request 100 BPM, muted synths, soft percussion, and no vocals; keep the arrangement sparse under narration.

Eleven Music v2Gemini CLI
Try asking
  • Read the game’s forest scene notes and use Eleven Music v2 to make a 90-second orchestral cue. Plan 30 seconds of quiet exploration, 30 seconds of rising tension, and 30 seconds of resolution, with woodwinds and strings but no vocals.

  • Use Eleven Music v2 to create a 15-second instrumental opening for the podcast described in this project’s README. Request warm electric piano, brushed drums, a relaxed jazz mood, and a gentle ending.

  • Use the advertising brief in this project to create a 30-second composition with Eleven Music v2. Give it a five-second hook, a restrained 20-second middle for narration, and a five-second instrumental finish.

  • Read the music brief in this project and use Eleven Music v2 to generate a two-minute genre transition study. Start with a string quartet, move into synthwave halfway through, and keep it instrumental.

How to set up Eleven Music v2 in Gemini CLI

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Or add it to ~/.gemini/settings.json yourself:

    gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start gemini and run:

    /mcp auth spiral
  3. Check it

    In Gemini CLI, run /mcp. From your shell:

    gemini mcp list

Use the Spiral skill

  1. Send Gemini CLI this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. 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

  1. Create an API key

    In the console, under API keys.

  2. Run Eleven Music v2

    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_v2",
        "input": {
          "seed": 0
        }
      }'

Then paste one of the prompts above: Gemini CLI finds Eleven Music v2 on Spiral, shows the price and runs it.

Eleven Music v2 providers and prices

Spiral runs Eleven Music v2 through ElevenLabs. Open a card for today's price, with every fee included.

ElevenLabsAudio

Settings you can ask for

Eleven Music v2 works from your prompt and lyrics text. Ask Gemini CLI for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seed0 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 formatauto, mp3_48000_128, mp3_48000_192, mp3_48000_240, mp3_48000_320, mp3_22050_32, mp3_24000_48, mp3_44100_32 and 18 moreauto

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 C2Paon or offoff

Whether to sign the generated song with C2PA. Applicable only for mp3 files.

MusicGenerationModetrack, loop, ambience, or video_to_music

Optional generation mode hint for prompt-based music generation. Can only be used with prompt.

Music length ms3000 to 600000

The length of the song to generate in milliseconds. Used only in conjunction with prompt. Must be between 3000ms and 600000ms. Optional - if not provided, the model will choose a length based on the prompt.

Finetune strengtha number up to 21

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 finetune_id is also provided.

Force instrumentalon or offoff

If true, guarantees that the generated song will be instrumental. If false, the song may or may not be instrumental depending on the prompt. Can only be used with prompt.

Use phonetic nameson or offoff

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 inpaintingon or offoff

Whether to store the generated song for inpainting.

Respect sections durationson or offon

Controls how strictly section durations in the composition_plan are enforced. Only used with composition_plan and only applies to music_v1; for music_v2 and music_v2_5 section durations are always enforced and this is ignored. When false for music_v1, the model may adjust individual section durations for better quality and latency, while preserving the total song duration from the plan.

Every API field of Eleven Music v2 is on its tool page: open its card above.

What can you do with Eleven Music v2 in Gemini CLI?

Turn project briefs and scene descriptions into music assets for demos, games, and videos. Use the project’s timing requirements to plan the arrangement before generating the track.

Podcast opening music

Create a 15-second instrumental opening with a clear motif and a gentle ending before the host starts speaking.

Product demo accompaniment

Generate a restrained 60-second electronic track with sparse instrumentation to sit beneath narration.

Short advertisement music

Build a 30-second cue with an opening hook, a quieter middle for the message, and a musical finish.

Game scene scores

Turn a written scene description into a 90-second score that moves from low tension to a climax and resolution.

Multilingual song concepts

Explore a song idea with Spanish, German, or Japanese vocals while keeping the musical directions in English.

Rap demos

Try a 60-second rap arrangement with dense verses, a contrasting hook, and an explicitly described vocal delivery.

Genre transition experiments

Plan a two-minute track that moves from orchestral music into electronic dance music within one composition.

Meditation accompaniment

Create five minutes of instrumental ambience with slow harmonic movement and no percussion or vocals.

Questions about Eleven Music v2 in Gemini CLI

Can Gemini CLI use Eleven Music v2?

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Eleven Music v2 like any built-in tool.

How much does Eleven Music v2 cost in Gemini CLI?

Up to $1.95 per run at the default inputs. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.

Do I need an ElevenLabs account to use Eleven Music v2 in Gemini CLI?

No. Spiral runs Eleven Music v2 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 v2 in Gemini CLI?

About two minutes: add the server, then sign in, then check it.

Does Gemini CLI wait while Eleven Music v2 runs?

Eleven Music v2 runs in the background. Gemini CLI starts the run, checks on it and gives you the audio when it's ready.

How long can an Eleven Music v2 track be?

Tracks can run from 3 seconds to 10 minutes. A composition plan can divide the track into up to 30 sections.

Can Eleven Music v2 make both songs and instrumental music?

Yes. It generates vocal songs, including fast rap and dense lyrical phrasing, as well as instrumental scores and ambient tracks.

Which languages can Eleven Music v2 sing in?

Documented examples include English, Spanish, German, and Japanese. For composition plans, keep the musical style descriptions in English even when the lyrics use another language.

What should I put in an Eleven Music v2 prompt?

Specify the genre, mood, instruments, tempo, and production era. Add concrete exclusions, such as no vocals or no distorted guitar, when those choices matter.

Can Eleven Music v2 follow a specific song structure?

Yes. Use a composition plan when you need defined sections, lyrics placement, or a complex arrangement; it can also change genre within a continuous track.

Get started

Start using Eleven Music v2 in Gemini CLI

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Gemini CLI:

Set up Gemini CLI

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options