How to Use MiniMax Music 2.0 in opencode
MiniMax Music 2.0 turns your lyrics and a musical brief into complete vocal songs up to five minutes. Use verse, chorus, and bridge tags to shape songwriting demos, theme songs, or duets.
Prompts to try with MiniMax Music 2.0 in opencode
Copy an example into opencode, or ask in your own words.
Read the game's story documents and use MiniMax Music 2.0 to create an ending-song demo. Draft original lyrics under 3,000 characters with verse, chorus, and bridge tags, and a musical brief under 300 characters describing reflective folk with acoustic guitar.
Use the product README to draft a playful launch song with MiniMax Music 2.0. Keep the lyrics under 3,000 characters, organize them into verses and a chorus, and describe an upbeat pop arrangement in a brief under 300 characters.
Read the character dialogue in this project and write an original conversational song for MiniMax Music 2.0. Request a male-female duet, use verse and chorus tags, and keep the musical brief under 300 characters and lyrics under 3,000.
Take the original lyrics in this project's song draft and generate two takes with MiniMax Music 2.0. Keep the words and section tags unchanged; use a folk brief for one take and a rock brief for the other, each under 300 characters.
Read the narrative brief and use MiniMax Music 2.0 to make an a cappella theme-song demo. Write original lyrics under 3,000 characters with verse, chorus, and outro tags, and keep the vocal arrangement brief under 300 characters.
How to set up MiniMax Music 2.0 in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode 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 MiniMax Music 2.0
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": "fal", "model": "fal-ai/minimax-music/v2", "input": { "prompt": "Indie folk, melancholic, introspective, longing, solitary walk, coffee shop", "lyrics_prompt": "[verse]Streetlights flicker, the night breeze sighsShadows stretch as I walk aloneAn old coat wraps my silent sorrow\nWandering, longing, where should I…" } }'
Then paste one of the prompts above: opencode finds MiniMax Music 2.0 on Spiral, shows the price and runs it.
MiniMax Music 2.0 providers and prices
Spiral runs MiniMax Music 2.0 through fal. Open a card for today's price, with every fee included.
What can you do with MiniMax Music 2.0 in opencode?
Turn a project's story or creative brief into a vocal theme with MiniMax Music 2.0. A coding agent can use repository text to draft lyrics, organize song sections, and generate takes for review.
Songwriting demos
Hear original lyrics as a complete vocal song. Mark the verse, chorus, and bridge before generating a demo to review.
Video theme songs
Create a sung theme for a travel series or documentary, with lyrics that reflect its subject and a musical brief that sets the mood.
Game character songs
Turn a character's story into a vocal theme for a game trailer or ending sequence. Use the chorus to repeat the central idea.
Podcast theme demos
Draft a sung identity for a podcast using its premise as the lyric theme. Review the generated song for a passage to use in an edited intro.
Duet concepts
Try a song written as a conversation between two people. Request a male-female duet and review how the vocal exchange serves the lyrics.
A cappella arrangements
Explore a vocal song without instrumental accompaniment. Request a cappella singing and organize the lyrics into clear sections.
Genre auditions
Keep the lyrics fixed while trying different musical briefs. Compare the resulting takes before choosing a direction for a song.
More on MiniMax Music 2.0 and opencode
Overview
MiniMax Music 2.0 in other agents
Questions about MiniMax Music 2.0 in opencode
Can opencode use MiniMax Music 2.0?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run MiniMax Music 2.0 like any built-in tool.
How much does MiniMax Music 2.0 cost in opencode?
$0.039 per generation. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need a fal account to use MiniMax Music 2.0 in opencode?
No. Spiral runs MiniMax Music 2.0 on its own fal account. You sign in to Spiral once and never paste a key.
How long does it take to set up MiniMax Music 2.0 in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while MiniMax Music 2.0 runs?
MiniMax Music 2.0 runs in the background. opencode starts the run, checks on it and gives you the audio when it's ready.
What is MiniMax Music 2.0 useful for?
It suits complete vocal songs built around lyrics you supply, including songwriting demos and content soundtracks. You describe the musical direction separately from the words.
How long can a MiniMax Music 2.0 song be?
MiniMax describes songs with a potential length of up to five minutes. Treat that as an upper limit, rather than a promise that every generation will last five minutes.
How should I write a MiniMax Music 2.0 brief?
Give the musical brief a clear genre, mood, and instrumentation. Keep it within 300 characters, then put the sung words in the lyrics and use section tags to guide the arrangement.
Can MiniMax Music 2.0 edit a finished song?
It does not provide post-generation editing. Revise the lyrics or musical brief and generate another take when you want a change.
Can MiniMax Music 2.0 work from a reference recording?
No. Describe the sound in words; reference audio is not supported.
Start using MiniMax Music 2.0 in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


