POST
/v2/minimax/generateMiniMax Music API Oluşturma
Entegre MiniMax motoru aracılığıyla müzik oluşturun.
POST
https://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ı
| Ad | Zorunlu | Açıklama |
|---|---|---|
AdAuthorization | ZorunluEvet | AçıklamaKimlik doğrulama için taşıyıcı belirteci |
AdContent-Type | ZorunluEvet | Açıklamaapplication/json |
İstek Gövdesi
MiniMax oluşturma isteği
Ortak Parametreler
| Parametre | Tür | Zorunlu | Açıklama | Örnek |
|---|---|---|---|---|
Parametreprompt | Türstring | ZorunluEvet | AçıklamaMüzik oluşturma istemi | ÖrnekCinematic orchestral pop, emotional female vocal, warm piano, strings, gradual build, polished studio mix. |
Parametrelyrics | Türstring | ZorunluEvet | AçıklamaMiniMax Music 2.5 için zorunludur; 10-3000 karakter. | ÖrnekVerse 1: The city lights are fading\nChorus: We rise into the morning glow |
Parametrebitrate | Türnumber | ZorunluHayır | AçıklamaSes bit hızı | Örnek256000 |
Parametresample_rate | Türnumber | ZorunluHayır | AçıklamaSes örnekleme hızı | Örnek44100 |
Parametrecallback_url | Türstring | ZorunluHayır | Açıklamaİsteğe bağlı geri arama URL'si | Örnekhttps://api.example.com/webhooks/minimax |
Parametrepublic | Türboolean | ZorunluHayır | AçıklamaGörevin herkese açık olup olamayacağı | Örnekfalse |
endpoint.generate.responseSectionsHeading
endpoint.generate.responseSections.generateResponse.title
| Alan | Tür | Açıklama | Örnek |
|---|---|---|---|
Alancode | Türnumber | Açıklamaendpoint.generate.responseSections.generateResponse.fields.code.description | Örnek200 |
Alanmessage | Türstring | Açıklamaendpoint.generate.responseSections.generateResponse.fields.message.description | Örneksuccess |
Alandata.task_id | Türstring | Açıklamaendpoint.generate.responseSections.generateResponse.fields.dataTaskId.description | Örnekn74abc123music |
Alandata.status | Türstring | Açı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"
}
}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"
}'