Skip to content

Minimax Music

Integrate

Model id minimax-music/v2
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/minimax-music/v2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "lyrics_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: $0.03 30 API credits Run it on this page

Get API key
MiniMax · Audio

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required 88 / 2000

Music prompt of 10–300 characters. Specify the intended scenario along with the musical style and mood.

•required 88 / 3000

Song lyrics of 10–3000 characters, with n separating lines. Optional arrangement markers such as [Intro], [Verse], [Chorus], [Bridge], and [Outro] can improve the structure.

Advanced enable_safety_checker · audio_setting

Settings for configuring audio.

POST /run/minimax-music/v2?wait=20 quote → $0.03
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/minimax-music/v2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "lyrics_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Minimax Music

Creates a song from `prompt`, describing style, mood and scenario, and `lyrics_prompt`, holding the lyrics with optional tags like [Intro], [Verse], [Chorus], [Bridge] and [Outro]. Lyrics can be up to 3000 characters. `audio_setting` controls output configuration.

Parameters

NameType DefaultAllowed Description
promptrequired
Typestring
≤ 2,000 characters≥ 10 characters
Music prompt of 10–300 characters. Specify the intended scenario along with the musical style and mood.
lyrics_promptrequired
Typestring
≤ 3,000 characters≥ 10 characters
Song lyrics of 10–3000 characters, with n separating lines. Optional arrangement markers such as [Intro], [Verse], [Chorus], [Bridge], and [Outro] can improve the structure.
audio_settingoptional
Typeobject
Settings for configuring audio.
audio_setting.sample_rateoptional
Typeenum
Default44100
80001600022050240003200044100
Sampling rate for the generated audio.
audio_setting.bitrateoptional
Typeenum
Default256000
3200064000128000256000
Bitrate for the generated audio.
audio_setting.formatoptional
Typeenum
Defaultmp3
mp3pcmflac
Format for the audio.
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Screening can be relaxed by setting false, provided the caller is authorized.
required

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "minimax-music/v2",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 30,
    "usd": "0.03",
    "charged": 30,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "lyrics_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_name": "0-output.mp3",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "audio",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_size": 1843200,
      "duration": 12,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
audio
object {url, content_type, file_name, file_size}Music produced by the model.

More models: Text to Music

For AI agents: this page as Markdown is at https://doitong.com/developers/models/minimax-music/v2.md. All models and guides: https://doitong.com/developers/llms.txt