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

# How to Use MiniMax Music 01 in Codex

MiniMax Music 01 turns your lyrics and a reference song into a vocal track up to 60 seconds long. Its reference-led approach suits chorus demos, sung intros, and short soundtrack ideas when you already have a sound in mind.

|  |  |
| --- | --- |
| Model | MiniMax Music 01 |
| Available through | fal |
| Category | Audio |
| Price | $0.0455 per generation. |
| Returns | audio |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with MiniMax Music 01 in Codex

- Read the project README and write a four-line launch jingle under 300 characters. Use MiniMax Music 01 with assets/audio/reference.mp3, first checking that it exceeds 15 seconds and contains music and vocals; enclose the lyrics in ##.
- Use the protagonist's dialogue in this project to draft a short character chorus. Generate it with MiniMax Music 01 using assets/audio/character-reference.wav, after checking that the recording exceeds 15 seconds and includes music and vocals. Keep the lyrics under 400 characters and wrap them in ##.
- Read the trailer brief and draft a compact vocal theme for a music segment no longer than 60 seconds. Use MiniMax Music 01 with the project's supplied vocal-and-music reference, and show me the lyrics before generating.
- Find the tutorial's three main actions in the project documentation and write a four-line mnemonic song. Use MiniMax Music 01 with the supplied reference recording, keeping the lyrics under 300 characters and enclosed in ##.
- Take the chorus in lyrics.txt and write two alternatives under 400 characters each. Generate both with MiniMax Music 01 using the same supplied reference recording, wrapping each lyric in ## so I can compare the wording.

## How to set up MiniMax Music 01 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 01**: 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": "fal-ai/minimax-music",
    "input": {
      "prompt": "## Fast and Limitless   \n In the heart of the code, where dreams collide,   \n\nFAL'\''s the name, taking tech for a ride.    \nGenerative media, blazing the trail,  …",
      "reference_audio_url": "https://fal.media/files/lion/OOTBTSlxKMH_E8H6hoSlb.mpga"
    }
  }'
```

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

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

## MiniMax Music 01 tools and prices

- [MiniMax (Hailuo AI) Music](https://spiral.ai/tools/fal/fal-ai/minimax-music) (fal): $0.0455 per generation.

## What can you do with MiniMax Music 01 in Codex?

Create short vocal themes for a game's characters, a product demo, or a project trailer. Your coding agent can turn project context into compact lyrics and use reference audio to guide MiniMax Music 01.

### Chorus demos

Turn a short original chorus and a reference recording into a sung sketch before developing the rest of the song.

### Sung podcast intros

Draft a few lines introducing your show, then generate a vocal theme using a reference that fits its tone.

### Product jingles

Explore a short sung product message with accompaniment, using reference audio to guide the musical style.

### Character theme sketches

Write a brief lyric from a character's perspective and test it as a vocal theme for a game or animated story.

### Short film song demos

Create a vocal song sketch for a scene that needs less than a minute of music, guided by a reference recording.

### Lyric comparisons

Generate two short lyric drafts against the same reference recording and listen for which wording works better when sung.

### Genre experiments

Try the same compact lyric with pop, rock, and electronic references to compare musical directions.

## Overview

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

## MiniMax Music 01 in other agents

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

## More Codex guides

- [MMAudio V2 Text to Audio](https://spiral.ai/integrations/codex/mmaudio-v2-text-to-audio)
- [MiniMax Music 1.5](https://spiral.ai/integrations/codex/minimax-music-1-5)
- [Lyria 3.5](https://spiral.ai/integrations/codex/lyria-3-5)
- [MiniMax Music 2.0](https://spiral.ai/integrations/codex/minimax-music-2-0)
- [Lyria 3 Pro](https://spiral.ai/integrations/codex/lyria-3-pro)
- [MiniMax Music 2.5](https://spiral.ai/integrations/codex/minimax-music-2-5)

## Questions about MiniMax Music 01 in Codex

**Can Codex use MiniMax Music 01?**

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

**How much does MiniMax Music 01 cost in Codex?**

$0.0455 per generation. 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 01 in Codex?**

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

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

**Does Codex wait while MiniMax Music 01 runs?**

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

**What is MiniMax Music 01 useful for?**

It suits short vocal demos where you have lyrics and a reference song to guide the sound. Try chorus sketches, sung podcast intros, or soundtrack ideas within its 60-second ceiling.

**Can MiniMax Music 01 make a full-length song?**

A single generation is capped at 60 seconds. Plan a short song section or demo around that limit.

**How should I choose reference audio?**

Choose a recording whose rhythm and vocal style fit your goal. Use WAV or MP3 audio longer than 15 seconds containing both music and vocals.

**How much lyric text can MiniMax Music 01 take?**

The current endpoint documentation allows up to 600 characters. Start with a compact verse or chorus so your draft suits the short output.

**How do I request accompaniment?**

Put ## at the beginning and end of your lyrics. The endpoint documentation identifies these markers as the instruction to add accompaniment.

