Minimax Music 2.6 API guide
Minimax Music 2.6 API: Generate music using a musical direction prompt and optional lyrics with Minimax Music 2.6. The is_instrumental setting distinguishes instrumental work from requests with vocals; sample-rate and bitrate controls configure the audio output.
Model overview
Generate music using a musical direction prompt and optional lyrics with Minimax Music 2.6. The is_instrumental setting distinguishes instrumental work from requests with vocals; sample-rate and bitrate controls configure the audio output.
API integration
| Documentation | Value |
|---|---|
| API invocation identifier | minimax-music-2.6 |
| Integration | Async task API |
Use this invocation identifier in API requests. Check your authorized model catalog for access. Follow the Quickstart for your first complete call.
Request parameters
Studio presets describe the form setup, not guaranteed server defaults. Send preset values explicitly to reproduce them.
Prompt for the music generation.
Length: minimum 1; maximum 2000.
Whether to generate instrumental music (no vocals).
Studio preset: false.
Optional lyrics. Leave empty for automatic lyrics, or generate instrumental music without vocals. Supplied lyrics must contain 10–3000 characters.
Length: minimum 0; maximum 3000.
Sample rate for the generated music
Allowed values: 16000, 24000, 32000, 44100.
Studio preset: 44100.
Bitrate for the generated music
Allowed values: 60000, 32000, 64000, 128000, 256000.
Studio preset: 256000.
No parameters match. Clear the search or reset the filters.
Model rules
- When
lyricsis provided, keeplyrics, when supplied, at least 10.
Parameter meaning
- Describe music style using genre, mood, key instruments, tempo and vocal character. Lyrics belong in lyrics; prompt guides the arrangement.
- Use structure tags such as [Verse], [Chorus], [Bridge] and [Outro] to guide song arrangement. Leave lyrics empty for automatic lyrics from the style prompt.
- bitrate controls encoded audio quality and sample_rate controls sampling frequency. Select only the public enum values shown in this guide; higher settings increase output fidelity.
Dependencies
- Enable is_instrumental for a backing track without vocals. Its role differs from automatic lyric generation; an instrumental request is intended to contain no sung lyrics.
Request examples
Replace example media URLs and YOUR_... input identifiers with your own valid resources. Examples are checked against the exported item schema; media access and paid execution are separate runtime checks.
Set MUSESPARK_API_KEY and a stable MUSESPARK_REQUEST_ID before submitting. Preserve the request ID for retries of the same request and use a new ID for new work. Python examples use requests; JavaScript examples use Node.js 20 or later. The standalone Quickstart includes task polling and recovery.
Standard request
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "minimax-music-2.6",
"parameters": {
"bitrate": 256000,
"sample_rate": 44100,
"is_instrumental": false,
"prompt": "A paper city under soft morning light"
}
}'Parameters used: bitrate · sample_rate · is_instrumental · prompt.
Output
Creation returns a task ID inside data. Poll that task until completion, then save data.result.output_urls and any data.result.batch_results. See the task lifecycle for terminal states, result retention, and errors.
Troubleshooting
For rejected inputs, check the field type, accepted values, and conditional requirements in Request parameters and Model rules. Correct the affected fields before submitting again.
If creation times out, preserve the request identity and any known task ID. Follow Errors, timeouts and retries before submitting again.
Related docs
The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.