[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [MiniMax Music 3](https://spiral.ai/integrations/codex/minimax-music-3)

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

|  |  |
| --- | --- |
| Model | MiniMax Music 3 |
| Available through | fal |
| Category | Audio |
| Price | $0.0026 per second. Billed on `duration`, default 60. |
| Returns | audio |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with MiniMax Music 3 in Codex

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

```bash
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.

```bash
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.

```bash
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.

```bash
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.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/codex

## MiniMax Music 3 tools and prices

- [MiniMax Music 3](https://spiral.ai/tools/fal/minimax/music-3) (fal): $0.0026 per second. Billed on `duration`, default 60.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| duration | 1 to 300 | 60 | Upper bound on the generated audio length in seconds. The model may stop earlier; the actual duration is returned in the output. |
| seed |  | — | Random seed for reproducibility. If not provided, a random seed will be used. |
| num_inference_steps | 1 to 100 | 30 | Number of flow-matching Euler steps per 8-second denoising chunk. More steps improve quality at the cost of speed. |
| guidance_scale | 0 to 20 | 1.7 | Classifier-free guidance scale of the flow-matching stage. |

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

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Codex guides](https://spiral.ai/integrations/codex)

## MiniMax Music 3 in other agents

- [Amp](https://spiral.ai/integrations/amp/minimax-music-3)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/minimax-music-3)
- [Claude](https://spiral.ai/integrations/claude-desktop/minimax-music-3)
- [Claude Code](https://spiral.ai/integrations/claude-code/minimax-music-3)
- [Cline](https://spiral.ai/integrations/cline/minimax-music-3)
- [Cursor](https://spiral.ai/integrations/cursor/minimax-music-3)
- [Devin](https://spiral.ai/integrations/devin/minimax-music-3)
- [dots](https://spiral.ai/integrations/dots/minimax-music-3)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/minimax-music-3)
- [Gemini](https://spiral.ai/integrations/gemini/minimax-music-3)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/minimax-music-3)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/minimax-music-3)
- [goose](https://spiral.ai/integrations/goose/minimax-music-3)
- [Grok](https://spiral.ai/integrations/grok/minimax-music-3)
- [Grok Build](https://spiral.ai/integrations/grok-build/minimax-music-3)
- [Hermes](https://spiral.ai/integrations/hermes/minimax-music-3)
- [Instinct](https://spiral.ai/integrations/instinct/minimax-music-3)
- [Manus](https://spiral.ai/integrations/manus/minimax-music-3)
- [Muse](https://spiral.ai/integrations/muse/minimax-music-3)
- [Muse Code](https://spiral.ai/integrations/muse-code/minimax-music-3)
- [n8n](https://spiral.ai/integrations/n8n/minimax-music-3)
- [Notion](https://spiral.ai/integrations/notion/minimax-music-3)
- [OpenClaw](https://spiral.ai/integrations/openclaw/minimax-music-3)
- [opencode](https://spiral.ai/integrations/opencode/minimax-music-3)
- [Perplexity](https://spiral.ai/integrations/perplexity/minimax-music-3)
- [Raycast](https://spiral.ai/integrations/raycast/minimax-music-3)
- [VS Code](https://spiral.ai/integrations/vscode/minimax-music-3)
- [Windsurf](https://spiral.ai/integrations/windsurf/minimax-music-3)
- [Zapier](https://spiral.ai/integrations/zapier/minimax-music-3)

## More Codex guides

- [MiniMax Music 2.6](https://spiral.ai/integrations/codex/minimax-music-2-6)
- [MiniMax Speech 2.5 HD](https://spiral.ai/integrations/codex/minimax-speech-2-5-hd)
- [MiniMax Music 2.5](https://spiral.ai/integrations/codex/minimax-music-2-5)
- [MiniMax Speech 2.5 Turbo](https://spiral.ai/integrations/codex/minimax-speech-2-5-turbo)
- [MiniMax Music 2.0](https://spiral.ai/integrations/codex/minimax-music-2-0)
- [MiniMax Speech 2.6 HD](https://spiral.ai/integrations/codex/minimax-speech-2-6-hd)

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

