MuseSpark
MuseSpark
Models & toolsAudio models

Minimax Music Cover API guide

Minimax Music Cover API: Create a new musical interpretation from a source audio reference and a style prompt with Minimax Music Cover. Keep the audio accessible while the task runs.

Model overview

Create a new musical interpretation from a source audio reference and a style prompt with Minimax Music Cover. Keep the audio accessible while the task runs.

API integration

DocumentationValue
API invocation identifierminimax-music-cover
IntegrationAsync 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.

audiostringNon-nullRequired

URL of the reference song in MP3 format, between 6 seconds and 6 minutes. Music-cover currently only supports audio with vocals.

Media types: audio/mpeg, .mp3.

promptstringNon-nullRequired

Target style description for the cover, 10-300 characters. Example: 'R&B Neo-Soul: warm tenor, Rhodes piano, smooth groove, late-night vibe'.

Length: minimum 10; maximum 300.

batch_sizeintegerNon-nullOptional

Standard quantity control field. The allowed range for this item is 1-6.

Repeats MuseSpark execution within one logical task. This is separate from a model-native output count.

Value: minimum 1; maximum 6.

Studio preset: 1.

No parameters match. Clear the search or reset the filters.

Model rules

Dependencies

  • The source audio provides the track to reinterpret. Use prompt to describe the target genre, instrumentation, tempo, mood and vocal style rather than supplying new lyrics.

Reference media

  • Use a publicly accessible source audio URL. Upload or host the audio before creating the task.

batch_size controls repeated MuseSpark executions. Output grouping, sequential image generation, and video shot count are separate concepts.

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-cover",
  "parameters": {
    "batch_size": 1,
    "audio": "YOUR_AUDIO",
    "prompt": "A paper city under soft morning light"
  }
}'

Parameters used: batch_size · audio · 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.

The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.