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

Codex · AudioReleased 2026-07-16

How to Use MiniMax Music 3 in Codex

MiniMax Music 3 turns lyrics and a sound description into songs up to five minutes long. Use it for vocal demos with changing arrangements, then check the sung words, tempo, and structure by ear.

Prompts to try with MiniMax Music 3 in Codex

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

Read the game's story brief and write original credits lyrics. Use MiniMax Music 3 with a 180-second limit, a quiet folk verse, warm lead vocals, and drums entering in the chorus.

MiniMax Music 3Codex
Try asking
  • Use the original lyrics in this project to make a MiniMax Music 3 demo capped at 120 seconds. Put section tags on separate lines and describe a piano opening that grows into a rock chorus.

  • Read the podcast description in the repository, write a four-line original theme, and generate it with MiniMax Music 3 using a 45-second limit, close lead vocals, upright bass, and brushed drums.

  • Create two MiniMax Music 3 demos from the project's original chorus, each capped at 60 seconds. Compare an acoustic arrangement with a synth-pop arrangement and save both briefs beside the audio.

  • Use MiniMax Music 3 to generate a song from the tutorial's key lesson, capped at 90 seconds. Write the mnemonic lyrics first, use clear solo vocals, and prepare a checklist for reviewing the sung instructions.

How to set up MiniMax Music 3 in Codex

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

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex 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 MiniMax Music 3

    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": "minimax/music-3",
        "input": {
          "prompt": "Genre: acoustic pop. BPM: 96. Key: C major. Warm and intimate, building gently into the chorus. Vocals: soft female lead, close and breathy, light stacked…",
          "lyrics": "[verse]\nMorning light filtering through the pine\nEvery quiet street is yours and mine\n[chorus]\nSoftly the world begins to breathe"
        }
      }'

Then paste one of the prompts above: Codex finds MiniMax Music 3 on Spiral, shows the price and runs it.

MiniMax Music 3 providers and prices

Spiral runs MiniMax Music 3 through fal. Open a card for today's price, with every fee included.

falAudio
MiniMax Music 3
minimax/music-3

Settings you can ask for

MiniMax Music 3 works from your prompt. Ask Codex for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Duration1 to 30060

Upper bound on the generated audio length in seconds. The model may stop earlier; the actual duration is returned in the output.

Seeda whole number

Random seed for reproducibility. If not provided, a random seed will be used.

Number of inference steps1 to 10030

Number of flow-matching Euler steps per 8-second denoising chunk. More steps improve quality at the cost of speed.

Guidance scale0 to 201.7

Classifier-free guidance scale of the flow-matching stage.

Every API field of MiniMax Music 3 is on its tool page: open its card above.

What can you do with MiniMax Music 3 in Codex?

Create vocal theme demos and song assets from your project's story, copy, or lyrics with MiniMax Music 3. Have the coding agent turn those materials into a section plan and a music description before generating audio for review.

Songwriting demos

Turn original lyrics into a vocal demo to hear how a verse, chorus, and bridge work together before recording performers.

Sung advertising concepts

Test a short original hook with different vocal deliveries and arrangements. Check every sung product name before choosing a take.

Game theme songs

Draft a vocal title or credits song from a written story brief, with a restrained opening and a fuller final chorus.

Educational songs

Set an original mnemonic or lesson recap to music. Review the sung facts and wording before sharing it with learners.

Podcast theme demos

Try a sung show title and recurring hook in a compact arrangement, then select and edit the passage that fits the opening.

Arrangement comparisons

Try the same original lyrics with acoustic, rock, or pop production briefs to compare vocal character, instrumentation, and chorus impact.

Questions about MiniMax Music 3 in Codex

Can Codex use MiniMax Music 3?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run MiniMax Music 3 like any built-in tool.

How much does MiniMax Music 3 cost in Codex?

$0.0026 per second. Billed on `duration`, default 60. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

Do I need a fal account to use MiniMax Music 3 in Codex?

No. Spiral runs MiniMax Music 3 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 3 in Codex?

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

Does Codex wait while MiniMax Music 3 runs?

MiniMax Music 3 runs in the background. Codex starts the run, checks on it and gives you the audio when it's ready.

How long can a MiniMax Music 3 song be?

Up to five minutes. Treat the requested length as a maximum, since the song may finish earlier.

How should I structure lyrics for MiniMax Music 3?

Put tags such as [verse], [chorus], and [bridge] on separate lines, with the lyrics underneath. Words sharing a line with a leading tag are dropped.

What makes a useful MiniMax Music 3 description?

Specify the genre, tempo, mood, vocal delivery, and core instruments. Then describe the musical progression, such as a sparse verse followed by drums and harmonies in the chorus.

Will MiniMax Music 3 follow every musical instruction exactly?

No. Tempo, key, instruments, sung words, and structure can differ from the request, so listen for the details your project depends on.

What audio format does MiniMax Music 3 return?

The documented output for the served version is a 44.1 kHz, 16-bit stereo WAV file.

Get started

Start using MiniMax Music 3 in Codex

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

Paste this into Codex:

Set up Codex

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