API Uç Noktaları

MiniMax Music

POST/v2/minimax/generate

MiniMax Music API Oluşturma

Entegre MiniMax motoru aracılığıyla müzik oluşturun.

POSThttps://udioapi.pro/api/v2/minimax/generate

İpuçları

MiniMax motoru: MiniMax'a ihtiyacınız olduğunda bu uç noktayı kullanın.

Yoklama: BAŞARI veya BAŞARISIZ olana kadar /v2/minimax/feed?workId=... numaralı telefonu arayın.

İstek Başlıkları

AdZorunluAçıklama
AdAuthorizationZorunluEvetAçıklamaKimlik doğrulama için taşıyıcı belirteci
AdContent-TypeZorunluEvetAçıklamaapplication/json

İstek Gövdesi

MiniMax oluşturma isteği

Ortak Parametreler

ParametreTürZorunluAçıklamaÖrnek
ParametrepromptTürstringZorunluEvetAçıklamaMüzik oluşturma istemiÖrnekCinematic orchestral pop, emotional female vocal, warm piano, strings, gradual build, polished studio mix.
ParametrelyricsTürstringZorunluEvetAçıklamaMiniMax Music 2.5 için zorunludur; 10-3000 karakter.ÖrnekVerse 1: The city lights are fading\nChorus: We rise into the morning glow
ParametrebitrateTürnumberZorunluHayırAçıklamaSes bit hızıÖrnek256000
Parametresample_rateTürnumberZorunluHayırAçıklamaSes örnekleme hızıÖrnek44100
Parametrecallback_urlTürstringZorunluHayırAçıklamaİsteğe bağlı geri arama URL'siÖrnekhttps://api.example.com/webhooks/minimax
ParametrepublicTürbooleanZorunluHayırAçıklamaGörevin herkese açık olup olamayacağıÖrnekfalse

endpoint.generate.responseSectionsHeading

endpoint.generate.responseSections.generateResponse.title

AlanTürAçıklamaÖrnek
AlancodeTürnumberAçıklamaendpoint.generate.responseSections.generateResponse.fields.code.descriptionÖrnek200
AlanmessageTürstringAçıklamaendpoint.generate.responseSections.generateResponse.fields.message.descriptionÖrneksuccess
Alandata.task_idTürstringAçıklamaendpoint.generate.responseSections.generateResponse.fields.dataTaskId.descriptionÖrnekn74abc123music
Alandata.statusTürstringAçıklamaendpoint.generate.responseSections.generateResponse.fields.dataStatus.descriptionÖrnekIN_PROGRESS

Yanıtlar

json
{
  "code": 200,
  "message": "success",
  "data": {
    "task_id": "n74abc123music",
    "status": "IN_PROGRESS",
    "type": "text2music"
  }
}
json
{
  "code": 400,
  "message": "Bad Request: 'lyrics' is required for MiniMax Music 2.5 and must be between 10 and 3000 characters.",
  "data": null
}
json
{
  "code": 401,
  "message": "No API key provided in Authorization header",
  "data": null
}

Kod Örnekleri

curl
curl -X POST "https://udioapi.pro/api/v2/minimax/generate" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Cinematic orchestral pop, emotional female vocal, warm piano, strings, gradual build, polished studio mix.",
    "lyrics": "Verse 1: The city lights are fading\nChorus: We rise into the morning glow",
    "bitrate": 256000,
    "sample_rate": 44100,
    "callback_url": "https://api.example.com/webhooks/minimax"
  }'
javascript
const response = await fetch('https://udioapi.pro/api/v2/minimax/generate', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    prompt: 'Cinematic orchestral pop, emotional female vocal, warm piano, strings, gradual build, polished studio mix.',
    lyrics: 'Verse 1: The city lights are fading\nChorus: We rise into the morning glow',
    bitrate: 256000,
    sample_rate: 44100,
    callback_url: 'https://api.example.com/webhooks/minimax'
  })
});

const data = await response.json();
console.log(data.data.task_id);
GET/v2/minimax/feed?workId=xxx

MiniMax Music Görev Durumu API'si

MiniMax görevi için durum ve sonuç URL'lerini alın.

GEThttps://udioapi.pro/api/v2/minimax/feed?workId=xxx

İpuçları

Oluşturma uç noktasındaki task_id öğesini workId olarak kullanın.

Durum BAŞARILI olduğunda, yanıt ses URL'lerini içerir.

İstek Parametreleri

ParametreTürZorunluAçıklama
ParametreworkIdTürstringZorunluEvetAçıklamaOluşturma uç noktasından döndürülen MiniMax görev kimliği

Yanıtlar

json
{
  "code": 200,
  "message": "success",
  "data": {
    "task_id": "n74abc123music",
    "status": "IN_PROGRESS",
    "consumed_credits": 30,
    "error_message": null,
    "created_at": "2026-06-13 12:00:00",
    "type": "text2music",
    "request": {
      "prompt": "Cinematic orchestral pop...",
      "bitrate": 256000,
      "sample_rate": 44100
    },
    "response": null
  }
}
json
{
  "code": 200,
  "message": "success",
  "data": {
    "task_id": "n74abc123music",
    "status": "SUCCESS",
    "consumed_credits": 30,
    "error_message": null,
    "created_at": "2026-06-13 12:00:00",
    "type": "text2music",
    "request": {
      "prompt": "Cinematic orchestral pop...",
      "bitrate": 256000,
      "sample_rate": 44100
    },
    "response": [
      "https://example-cdn.com/generated-minimax-track.mp3"
    ]
  }
}
json
{
  "code": 404,
  "message": "Task not found",
  "data": null
}

Kod Örnekleri

curl
curl -X GET "https://udioapi.pro/api/v2/minimax/feed?workId=n74abc123music"
javascript
const response = await fetch('https://udioapi.pro/api/v2/minimax/feed?workId=n74abc123music');
const data = await response.json();

if (data.data.status === 'SUCCESS') {
  console.log('Audio URLs:', data.data.response);
}