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

MiniMax (Hailuo AI) Music

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

ਮਾਡਲ id minimax-music
# 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?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",
    "reference_audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  }'

# 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.035 35 API ਕ੍ਰੈਡਿਟ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
MiniMax ਟੈਕਸਟ ਤੋਂ ਸੰਗੀਤ ਹਵਾਲਾ ਇਨਪੁੱਟ #music

ਰੈਫਰੈਂਸ ਟ੍ਰੈਕ ਦੀ ਸ਼ੈਲੀ ਅਨੁਸਾਰ ਬੋਲਾਂ ਤੋਂ ਗੀਤ ਬਣਾਉਣਾ

MiniMax · ਆਡੀਓ

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

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

ਰਿਕਵੈਸਟ ਬਣਾਓ

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

•ਲੋੜੀਂਦਾ 88 / 600

ਵਿਕਲਪਿਕ ਫਾਰਮੈਟਿੰਗ ਵਾਲਾ ਬੋਲਾਂ ਦਾ ਟੈਕਸਟ, 600 ਅੱਖਰਾਂ ਤੱਕ ਸੀਮਿਤ। ਬੋਲਾਂ ਦੀਆਂ ਲਾਈਨਾਂ ਨੂੰ ਨਵੀਂ ਲਾਈਨ ਨਾਲ ਵੱਖ ਕਰੋ ਜਾਂ ਵਿਚਕਾਰ ਠਹਿਰਾਅ ਲਈ ਦੋ ਨਵੀਆਂ ਲਾਈਨਾਂ ਪਾਓ। ਸੰਗਤ ਜੋੜਨ ਲਈ ਬੋਲਾਂ ਤੋਂ ਪਹਿਲਾਂ ਅਤੇ ਬਾਅਦ ਦੋਹਰੇ ਹੈਸ਼ ਚਿੰਨ੍ਹ (##) ਲਗਾਓ।

•ਲੋੜੀਂਦਾ
ਫ਼ਾਈਲ ਛੱਡੋ, ਜਾਂ

ਹਵਾਲਾ ਆਡੀਓ .wav ਜਾਂ .mp3 ਫਾਰਮੈਟ ਵਿੱਚ ਹੋਣਾ ਅਤੇ 15 ਸਕਿੰਟ ਤੋਂ ਵੱਧ ਲੰਮਾ ਹੋਣਾ ਲਾਜ਼ਮੀ ਹੈ। ਅਜਿਹਾ ਗੀਤ ਚੁਣੋ ਜਿਸ ਵਿੱਚ ਗਾਇਕੀ ਅਤੇ ਸੰਗੀਤ ਦੋਵੇਂ ਹੋਣ।

ਉੱਨਤ enable_safety_checker
POST /run/minimax-music?wait=20 ਕੋਟ → $0.035
# 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?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",
    "reference_audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  }'

# 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 (Hailuo AI) Music ਬਾਰੇ

`prompt` ਵਿੱਚ ਦਿੱਤੇ ਬੋਲਾਂ (600 ਅੱਖਰਾਂ ਤੱਕ) ਅਤੇ ਲਾਜ਼ਮੀ `reference_audio_url` ਤੋਂ ਸੰਗੀਤ ਤਿਆਰ ਕਰਦਾ ਹੈ। ਰੈਫਰੈਂਸ WAV ਜਾਂ MP3 ਫਾਈਲ ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ, ਜੋ 15 ਸਕਿੰਟਾਂ ਤੋਂ ਲੰਬੀ ਹੋਵੇ ਅਤੇ ਜਿਸ ਵਿੱਚ ਸੰਗੀਤ ਤੇ ਵੋਕਲ ਹੋਣ। ਇੱਕ ਬਣਾਇਆ ਹੋਇਆ ਆਡੀਓ ਟ੍ਰੈਕ ਵਾਪਸ ਕਰਦਾ ਹੈ।

ਪੈਰਾਮੀਟਰ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
promptਲੋੜੀਂਦਾ
ਕਿਸਮstring
≤ 600 ਅੱਖਰ
ਵਿਕਲਪਿਕ ਫਾਰਮੈਟਿੰਗ ਵਾਲਾ ਬੋਲਾਂ ਦਾ ਟੈਕਸਟ, 600 ਅੱਖਰਾਂ ਤੱਕ ਸੀਮਿਤ। ਬੋਲਾਂ ਦੀਆਂ ਲਾਈਨਾਂ ਨੂੰ ਨਵੀਂ ਲਾਈਨ ਨਾਲ ਵੱਖ ਕਰੋ ਜਾਂ ਵਿਚਕਾਰ ਠਹਿਰਾਅ ਲਈ ਦੋ ਨਵੀਆਂ ਲਾਈਨਾਂ ਪਾਓ। ਸੰਗਤ ਜੋੜਨ ਲਈ ਬੋਲਾਂ ਤੋਂ ਪਹਿਲਾਂ ਅਤੇ ਬਾਅਦ ਦੋਹਰੇ ਹੈਸ਼ ਚਿੰਨ੍ਹ (##) ਲਗਾਓ।
reference_audio_urlਲੋੜੀਂਦਾ
ਕਿਸਮurl · audio
ਹਵਾਲਾ ਆਡੀਓ .wav ਜਾਂ .mp3 ਫਾਰਮੈਟ ਵਿੱਚ ਹੋਣਾ ਅਤੇ 15 ਸਕਿੰਟ ਤੋਂ ਵੱਧ ਲੰਮਾ ਹੋਣਾ ਲਾਜ਼ਮੀ ਹੈ। ਅਜਿਹਾ ਗੀਤ ਚੁਣੋ ਜਿਸ ਵਿੱਚ ਗਾਇਕੀ ਅਤੇ ਸੰਗੀਤ ਦੋਵੇਂ ਹੋਣ।
enable_safety_checkerਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
false ਸੈੱਟ ਕਰਕੇ ਸਕ੍ਰੀਨਿੰਗ ਨੂੰ ਢਿੱਲਾ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ, ਜੇ ਕਾਲਰ ਅਧਿਕਾਰਤ ਹੋਵੇ।
ਲੋੜੀਂਦਾ

ਫ਼ਾਈਲ ਪੈਰਾਮੀਟਰ ਜਨਤਕ https:// URL, 10 MB ਤੱਕ ਦਾ data: URI, ਜਾਂ ਅੱਪਲੋਡ ਦੇ file_url ਨੂੰ ਸਵੀਕਾਰਦੇ ਹਨ। ਫ਼ਾਈਲਾਂ

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "minimax-music",
  "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": 35,
    "usd": "0.035",
    "charged": 35,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "reference_audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  },
  "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.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt