# MiniMax Music 2.6 API

> MiniMax Music 2.6 by MiniMax 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.6
API reference: https://www.sandbase.ai/models/minimax/music/2.6/docs

## Facts

- Provider: MiniMax
- Type: Audio model
- Model ID: `minimax/music/2.6`
- 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.6",
  "lyrics": "[verse]\nStreetlights flicker, the night breeze sighs\nShadows stretch as I walk alone\nAn old coat wraps my silent sorrow\nWandering, longing, where should I go\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",
  "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.6 through SandBase?

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

## README

### MiniMax Music 2.6

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

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Style: genre, mood, instruments. |
| `lyrics` | string | `[verse]
Streetlights flicker, the night breeze sighs
Shadows stretch as I walk alone
An old coat wraps my silent sorrow
Wandering, longing, where should I go
[chorus]
Pushing the wooden door, the aroma spreads
In a familiar corner, a stranger gazes` | Lyrics with `[verse]` / `[chorus]` markers. |
| `is_instrumental` | boolean | false | Generate without vocals. |
| `lyrics_optimizer` | boolean | false | Let MiniMax polish the lyrics. |
| `sample_rate` | 16000 / 24000 / 32000 / 44100 | — | Sample rate of generated audio. |
| `bitrate` | 32000 / 64000 / 128000 / 256000 | — | Bitrate of generated audio. |
| `format` | `mp3` / `wav` / `pcm` | — | Format of generated audio. |

#### Billing

$0.15 per song.

| Request | Price |
|---|---|
| One song | $0.15 |

Failed runs are not charged.

#### Prompting

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

#### Also on SandBase

Related: `minimax/music/3` (newer, up to 5 minutes).
