# MiniMax Music 2.0 API

> MiniMax Music 2.0 composes a full song with vocals and accompaniment from a style prompt and structured lyrics, with selectable sample rate, bitrate, and file format.

Source: https://www.sandbase.ai/models/minimax/music/v2
API reference: https://www.sandbase.ai/models/minimax/music/v2#api

## Facts

- Provider: MiniMax
- Type: Audio model
- Model ID: `minimax/music/v2`
- Price: From $0.03 per run
- Capabilities: text to music
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax/music/v2",
  "format": "mp3",
  "lyrics": "[verse]\nStreetlights flicker, the night breeze sighs\nShadows stretch as I walk alone\n[chorus]\nPushing the wooden door, the aroma spreads\nIn a familiar corner, a stranger gazes",
  "prompt": "Indie folk, melancholic, introspective, longing, solitary walk, coffee shop",
  "bitrate": 256000,
  "sample_rate": 44100
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call MiniMax Music 2.0 through SandBase?

Create a SandBase API key, then send requests with the model ID "minimax/music/v2" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate MiniMax account?

No. One SandBase API key and balance gives you access to MiniMax Music 2.0 and the other models in the catalog; you do not need to sign up with MiniMax separately.

## README

### MiniMax Music 2.0

MiniMax Music 2.0 writes a full song with vocals and accompaniment from a style prompt and your lyrics.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, 10–2000 chars, required | — | Style: genre, mood, scenario. |
| `lyrics` | string, 10–3000 chars, required | — | Lyrics with `[Verse]` / `[Chorus]` style tags. |
| `sample_rate` | 8000 / 16000 / 22050 / 24000 / 32000 / 44100 | 44100 | Sample rate in Hz. |
| `bitrate` | 32000 / 64000 / 128000 / 256000 | 256000 | Bitrate in bits per second. |
| `format` | `mp3` / `pcm` / `flac` | `mp3` | Output file format. |

#### Billing

$0.03 per song.

| Request | Price |
|---|---|
| One song | $0.03 |
| 10 songs | $0.30 |

Failed runs are not charged.

#### Prompting

- Put style in `prompt` and words in `lyrics`.

#### Also on SandBase

Related: `minimax/music/2.6`, `minimax/music/3`, `minimax/music/2.5`.
