ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

Minimax Music

ਇੰਟੀਗ੍ਰੇਟ ਕਰੋ

ਮਾਡਲ 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"

ਇਹ ਬੇਨਤੀ: $0.03 30 API ਕ੍ਰੈਡਿਟ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ

ਸਟਾਈਲ ਵਰਣਨ ਅਤੇ ਸੰਰਚਨਾ ਟੈਗਾਂ ਵਾਲੇ ਪੂਰੇ ਬੋਲਾਂ ਤੋਂ Music 2.0 ਟ੍ਰੈਕ

MiniMax · ਆਡੀਓ

ਤੁਹਾਡਾ ਪਹਿਲਾ ਨਤੀਜਾ ਇੱਥੇ ਹੋਵੇਗਾ

ਹੇਠਾਂ ਬੇਨਤੀ ਬਣਾਓ ਅਤੇ ਆਪਣੀ API ਕੁੰਜੀ ਨਾਲ ਚਲਾਓ। ਆਉਟਪੁੱਟ ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਕਾਪੀ ਕੀਤੇ ਜਾਂਦੇ ਹਨ ਅਤੇ ਹਮੇਸ਼ਾ ਲਈ ਜਾਂ ਮੁਫ਼ਤ ਵਿੱਚ 7 ਦਿਨ ਤੱਕ ਰੱਖੇ ਜਾਂਦੇ ਹਨ।

ਰਿਕਵੈਸਟ ਬਣਾਓ

ਕੰਟਰੋਲ ਮਾਡਲ ਸਕੀਮਾ ਤੋਂ ਤਿਆਰ ਹੁੰਦੇ ਹਨ। ਤੁਸੀਂ ਬਦਲਾਅ ਕਰਦੇ ਹੀ ਕੋਡ ਅਤੇ ਕੀਮਤ ਅੱਪਡੇਟ ਹੋ ਜਾਂਦੇ ਹਨ।

•ਲੋੜੀਂਦਾ 88 / 2000

10–300 ਅੱਖਰਾਂ ਦਾ ਸੰਗੀਤ ਪ੍ਰੌਂਪਟ। ਇੱਛਿਤ ਦ੍ਰਿਸ਼ ਦੇ ਨਾਲ ਸੰਗੀਤਕ ਸ਼ੈਲੀ ਅਤੇ ਮਿਜ਼ਾਜ ਦੱਸੋ।

•ਲੋੜੀਂਦਾ 88 / 3000

10–3000 ਅੱਖਰਾਂ ਦੇ ਗੀਤ ਦੇ ਬੋਲ, ਲਾਈਨਾਂ ਨੂੰ n ਨਾਲ ਵੱਖ ਕਰਦੇ ਹੋਏ। [Intro], [Verse], [Chorus], [Bridge] ਅਤੇ [Outro] ਵਰਗੇ ਵਿਕਲਪਿਕ ਬੰਦੋਬਸਤ ਮਾਰਕਰ ਢਾਂਚੇ ਨੂੰ ਸੁਧਾਰ ਸਕਦੇ ਹਨ।

ਉੱਨਤ enable_safety_checker · audio_setting

ਆਡੀਓ ਨੂੰ ਕੌਂਫਿਗਰ ਕਰਨ ਲਈ ਸੈਟਿੰਗਾਂ।

POST /run/minimax-music/v2?wait=20 ਕੋਟ → $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"

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

ਤੁਹਾਡੀ key ਇਸ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਰਹਿੰਦੀ ਹੈ: ਇਹ ਸਿਰਫ਼ Doitong API ਨੂੰ ਭੇਜੀ ਜਾਂਦੀ ਹੈ ਅਤੇ ਸਿਰਫ਼ ਤਾਂ ਹੀ (localStorage) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। API ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Minimax Music ਬਾਰੇ

`prompt` ਤੋਂ ਗੀਤ ਬਣਾਉਂਦਾ ਹੈ, ਜਿਸ ਵਿੱਚ ਸਟਾਈਲ, ਮੂਡ ਅਤੇ ਦ੍ਰਿਸ਼ ਦਾ ਵਰਣਨ ਹੁੰਦਾ ਹੈ, ਅਤੇ `lyrics_prompt` ਵਿੱਚ [Intro], [Verse], [Chorus], [Bridge] ਅਤੇ [Outro] ਵਰਗੇ ਵਿਕਲਪਿਕ ਟੈਗਾਂ ਵਾਲੇ ਬੋਲ ਹੁੰਦੇ ਹਨ। ਬੋਲ 3000 ਅੱਖਰਾਂ ਤੱਕ ਹੋ ਸਕਦੇ ਹਨ। `audio_setting` ਆਉਟਪੁੱਟ ਕਨਫ਼ਿਗਰੇਸ਼ਨ ਨੂੰ ਨਿਯੰਤਰਿਤ ਕਰਦਾ ਹੈ।

ਪੈਰਾਮੀਟਰ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
promptਲੋੜੀਂਦਾ
ਕਿਸਮstring
≤ 2,000 ਅੱਖਰ≥ 10 ਅੱਖਰ
10–300 ਅੱਖਰਾਂ ਦਾ ਸੰਗੀਤ ਪ੍ਰੌਂਪਟ। ਇੱਛਿਤ ਦ੍ਰਿਸ਼ ਦੇ ਨਾਲ ਸੰਗੀਤਕ ਸ਼ੈਲੀ ਅਤੇ ਮਿਜ਼ਾਜ ਦੱਸੋ।
lyrics_promptਲੋੜੀਂਦਾ
ਕਿਸਮstring
≤ 3,000 ਅੱਖਰ≥ 10 ਅੱਖਰ
10–3000 ਅੱਖਰਾਂ ਦੇ ਗੀਤ ਦੇ ਬੋਲ, ਲਾਈਨਾਂ ਨੂੰ n ਨਾਲ ਵੱਖ ਕਰਦੇ ਹੋਏ। [Intro], [Verse], [Chorus], [Bridge] ਅਤੇ [Outro] ਵਰਗੇ ਵਿਕਲਪਿਕ ਬੰਦੋਬਸਤ ਮਾਰਕਰ ਢਾਂਚੇ ਨੂੰ ਸੁਧਾਰ ਸਕਦੇ ਹਨ।
audio_settingਵਿਕਲਪਿਕ
ਕਿਸਮobject
ਆਡੀਓ ਨੂੰ ਕੌਂਫਿਗਰ ਕਰਨ ਲਈ ਸੈਟਿੰਗਾਂ।
audio_setting.sample_rateਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟ44100
80001600022050240003200044100
ਤਿਆਰ ਕੀਤੇ ਆਡੀਓ ਦੀ ਸੈਂਪਲਿੰਗ ਦਰ।
audio_setting.bitrateਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟ256000
3200064000128000256000
ਤਿਆਰ ਕੀਤੇ ਆਡੀਓ ਦਾ ਬਿਟਰੇਟ।
audio_setting.formatਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟmp3
mp3pcmflac
ਆਡੀਓ ਦਾ ਫਾਰਮੈਟ।
enable_safety_checkerਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
false ਸੈੱਟ ਕਰਕੇ ਸਕ੍ਰੀਨਿੰਗ ਨੂੰ ਢਿੱਲਾ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ, ਜੇ ਕਾਲਰ ਅਧਿਕਾਰਤ ਹੋਵੇ।
ਲੋੜੀਂਦਾ

ਆਉਟਪੁੱਟ

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"
  }
}
ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ, ਤੁਹਾਡੀ ਚੋਣਹਰ outputs[].url ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਇੱਕ ਕਾਪੀ ਹੈ: ਹਮੇਸ਼ਾ ਲਈ ਰੱਖੀ ਜਾਂਦੀ ਹੈ (ਪ੍ਰਤੀ GB-ਮਹੀਨਾ ਭੁਗਤਾਨ) ਜਾਂ 7 ਦਿਨ ਤੱਕ ਮੁਫ਼ਤ, ਤੁਹਾਡੀ ਖਾਤਾ ਸੈਟਿੰਗ ਜਾਂ ?storage= ਅਨੁਸਾਰ।
ਹਰ ਮਾਡਲ ’ਤੇ ਇੱਕੋ ਜਿਹਾ ਰੂਪਤਸਵੀਰਾਂ, ਵੀਡੀਓ ਅਤੇ ਆਡੀਓ ਸਭ ਲਈ type, url, content_type, width, height ਅਤੇ duration। output ਮਾਡਲ ਦਾ ਆਪਣਾ ਨਤੀਜਾ ਆਬਜੈਕਟ ਹੈ।
ਆਉਟਪੁੱਟ ਦੇ ਫ਼ੀਲਡ
audio
object {url, content_type, file_name, file_size}ਮਾਡਲ ਵੱਲੋਂ ਤਿਆਰ ਕੀਤਾ ਸੰਗੀਤ।

ਹੋਰ ਮਾਡਲ: ਟੈਕਸਟ ਤੋਂ ਸੰਗੀਤ

AI ਏਜੰਟਾਂ ਲਈ: ਇਹ ਪੰਨਾ Markdown ਵਜੋਂ ਇੱਥੇ ਹੈ https://doitong.com/pa/developers/models/minimax-music/v2.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt