MiniMax Music 2.0
minimax/music/v2MiniMax 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.
- Base price
- $0.03USD / run
- Execution
- async
- Model type
- audio
- Input fields
- 5
Try the model
Playground
Your output will appear here
Complete the inputs, then click Run.
Model card
Specifications
Pricing
- Base price
- $0.03 / run
Context & modalities
- Input
- Schema-defined
- Output
- audio
Capabilities
- Chat
- Not supported
- Vision
- Not supported
- Reasoning
- Not supported
- Structured output
- Not supported
- Function calling
- Not supported
- Audio input
- Not supported
Access
- Provider
- MiniMax
- Model ID
- minimax/music/v2
- Execution
- async
- Base URL
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
API 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
promptand words inlyrics.
Also on SandBase
Related: minimax/music/2.6, minimax/music/3, minimax/music/2.5.
Start building
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"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
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Input Schema
5 parameters · 2 required · 3 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
lyrics | string | Required | Lyrics of the song, 10–3000 characters. Use \n to separate lines and structure tags such as [Intro], [Verse], [Chorus], [Bridge], [Outro]. · Min length: 10 · Max length: 3000 |
prompt | string | Required | Style of the music: genre, mood, and scenario. 10–2000 characters. · Min length: 10 · Max length: 2000 |
format | string | Optional | File format of the generated audio. · Options: mp3, pcm, flac · Default: "mp3" mp3pcmflac |
bitrate | integer | Optional | Bitrate of the generated audio, in bits per second. · Options: 32000, 64000, 128000, 256000 · Default: 256000 3200064000128000256000 |
sample_rate | integer | Optional | Sample rate of the generated audio, in Hz. · Options: 8000, 16000, 22050, 24000, 32000, 44100 · Default: 44100 80001600022050240003200044100 |
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model runs asynchronously. Submit a request, then poll for the result.
- Submit: POST to /v1/run and read the returned
id. - Poll: GET /v1/run/{id} until status is
completed,failedortimeout. - Retrieve: read
outputsfrom the completed response.
Choose your model
Compare models
| Model | Type | Default price | Released |
|---|---|---|---|
MiniMax Music 2.0This model MiniMax | Audio | $0.03 / run | Oct 30, 2025 |
MiniMax | Audio | $0.12 / run | Oct 5, 2026 |
MiniMax | Audio | $0.15 / run | Apr 11, 2026 |
MiniMax | Audio | $0.15 / run | Apr 11, 2026 |
MiniMax | Audio | $0.10 / run | Feb 4, 2026 |
MiniMax | Audio | $0.06 / run | Feb 4, 2026 |
Questions
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.
