# MiniMax Music 2.5 API

> MiniMax Music 2.5 composes a full song with vocals and accompaniment from a style prompt and lyrics, or an instrumental track without lyrics.

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

## Facts

- Provider: MiniMax
- Type: Audio model
- Model ID: `minimax/music/2.5`
- Price: From $0.15 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/2.5",
  "format": "mp3",
  "lyrics": "[verse]\nStreetlights flicker, the night breeze sighs\nShadows stretch as I walk alone\n[chorus]\nWandering, longing, where should I go",
  "prompt": "Indie folk, melancholic, introspective, longing, solitary walk, coffee shop",
  "bitrate": 256000,
  "sample_rate": 44100,
  "is_instrumental": false,
  "lyrics_optimizer": false
}'
```

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.5 through SandBase?

Create a SandBase API key, then send requests with the model ID "minimax/music/2.5" 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.5 and the other models in the catalog; you do not need to sign up with MiniMax separately.

## README

### MiniMax Music 2.5

MiniMax Music 2.5 writes a song with vocals from a style prompt and lyrics, or an instrumental track.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, up to 2000 chars, required | — | Style: genre, mood, instruments, scenario. |
| `lyrics` | string, up to 3500 chars | `""` | Lyrics with `[Verse]` / `[Chorus]` style tags. Needed unless one of the two switches below is on. |
| `is_instrumental` | boolean | false | Generate without vocals. |
| `lyrics_optimizer` | boolean | false | Write lyrics from the prompt when `lyrics` is empty. |
| `sample_rate` | 16000 / 24000 / 32000 / 44100 | 44100 | Sample rate in Hz. |
| `bitrate` | 32000 / 64000 / 128000 / 256000 | 256000 | Bitrate in bits per second. |
| `format` | `mp3` / `wav` / `pcm` | `mp3` | Output file format. |

#### Billing

$0.15 per song.

| Request | Price |
|---|---|
| One song | $0.15 |
| 10 songs | $1.50 |

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