minimax/music/2.6
MiniMax Music 2.6 text-to-music model with enhanced quality, lyrics support, instrumental generation, and configurable audio output.
Example output — click Run to generate your own
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
https://api.sandbase.ai/v1/runminimax/music/2.6Input Schema
7 parameters · 1 required · 6 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Required | A description of the music style, mood, genre, and scenario. · Min length: 1 · Max length: 2000 · Default: "Indie folk, melancholic, introspective, longing, solitary walk, coffee shop" |
format | string | Optional | Format of generated audio. · Options: mp3, wav, pcm mp3wavpcm |
lyrics | string | Optional | Lyrics of the song. Use \n to separate lines. Supports structure tags: [Intro], [Verse], [Pre Chorus], [Chorus], [Bridge], [Outro], [Interlude], [Hook], [Break], [Solo], [Inst]. · Max length: 3500 · Default: "[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" |
bitrate | integer | Optional | Bitrate of generated audio. · Options: 32000, 64000, 128000, 256000 3200064000128000256000 |
sample_rate | integer | Optional | Sample rate of generated audio. · Options: 16000, 24000, 32000, 44100 16000240003200044100 |
is_instrumental | boolean | Optional | When true, generates vocal-free instrumental music. · Default: false |
lyrics_optimizer | boolean | Optional | When true and lyrics is empty, auto-generates lyrics from the prompt. · Default: false |
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 uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom the completed response
Code Examples
Ready-to-run snippets
# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-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
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"API README
MiniMax Music 2.6
MiniMax Music 2.6 is a text-to-music endpoint for developing a written musical concept into a deliverable track. It gives creators a single workflow for exploring a song idea before moving the selected result into listening, editing, or publishing tools.
The request separates musical direction from lyrical content, making revisions easier to reason about: change the creative brief to explore a different sound, or revise the words while keeping the intended musical identity.
Highlights
Complete song generation. Turns lyrics and a style description into a complete musical work rather than an isolated melody or audio fragment.
Integrated singing and accompaniment. Generates the vocal performance together with its instrumental backing, keeping the sung and played parts within one coherent song.
Built-in arrangement. Produces the song arrangement as part of the same generation, organizing the supplied lyrical and stylistic direction into a finished musical structure.
Directed musical progression. Executes prompt-level direction for BPM, key, song structure, and emotional arc, allowing a track to build through a specified dramatic progression instead of staying musically static.
Pricing
| Billing unit | Price |
|---|---|
| Per request | $0.15 |
When to Use
| ✅ Good fit | ❌ Consider alternatives |
|---|---|
| The model's named workflow matches the source material and intended output | A different input modality or model route is required |
| A managed asynchronous result is suitable for the production pipeline | A synchronous, interactive editor is essential |
| The documented controls cover the required duration, framing, or format | The project needs controls outside this endpoint's schema |
| Creative iteration benefits from a repeatable request structure | Exact deterministic pixels, frames, geometry, or samples are mandatory |
| A finished downloadable media asset is the desired deliverable | Editable source layers or a native project file are required |
Prompt Guide
For music generation, state the intended result first, then add the subject or source treatment, progression, style, and delivery constraints. Keep one creative variable per phrase, use the documented field names for controls, and change one setting at a time when comparing results.
{
"prompt": "Indie folk, melancholic, introspective, longing, solitary walk, coffee shop"
}
Technical Specs
| Spec | Value |
|---|---|
| Model ID | minimax/music/2.6 |
| Inputs | bitrate, format, is_instrumental, lyrics, lyrics_optimizer, prompt, sample_rate |
| Required inputs | prompt |
| Output fields | content_type, duration_ms, url |
| Execution | Async (submit, then poll for result) |
| Format | mp3 / wav / pcm |
Related Models
minimax/music/2.5— Compare a nearby route in the same local model family.minimax/music/v1.5— Compare a nearby route in the same local model family.minimax/music/v2— Compare a nearby route in the same local model family.

