POST
/v2/minimax/generateПоставщик MiniMax создает API
Создавайте музыку с помощью встроенного провайдера MiniMax.
POST
https://udioapi.pro/api/v2/minimax/generatetips
Поставщик MiniMax: используйте эту конечную точку, когда вам нужен MiniMax.
Опрос: Вызов /v2/minimax/feed?workId=... до тех пор, пока не будет достигнут УСПЕХ или НЕ СБОЙ.
requestHeaders
| name | required | description |
|---|---|---|
nameAuthorization | requiredyes | descriptionТокен носителя для аутентификации |
nameContent-Type | requiredyes | descriptionapplication/json |
requestBody
Запрос на создание MiniMax
commonParams
| paramName | paramType | required | description | example |
|---|---|---|---|---|
paramNameprompt | paramTypestring | requiredyes | descriptionПодсказка о создании музыки | exampleCinematic orchestral pop, emotional female vocal, warm piano, strings, gradual build, polished studio mix. |
paramNamelyrics | paramTypestring | requiredno | descriptionДополнительные тексты песен | exampleVerse 1: The city lights are fading\nChorus: We rise into the morning glow |
paramNamebitrate | paramTypenumber | requiredno | descriptionБитрейт аудио | example256000 |
paramNamesample_rate | paramTypenumber | requiredno | descriptionЧастота дискретизации звука | example44100 |
paramNamecallback_url | paramTypestring | requiredno | descriptionНеобязательный URL обратного вызова | examplehttps://api.example.com/webhooks/minimax |
paramNamepublic | paramTypeboolean | requiredno | descriptionМожет ли задача быть общедоступной | examplefalse |
endpoint.generate.responseSectionsHeading
endpoint.generate.responseSections.generateResponse.title
| field | paramType | description | example |
|---|---|---|---|
fieldcode | paramTypenumber | descriptionendpoint.generate.responseSections.generateResponse.fields.code.description | example200 |
fieldmessage | paramTypestring | descriptionendpoint.generate.responseSections.generateResponse.fields.message.description | examplesuccess |
fielddata.task_id | paramTypestring | descriptionendpoint.generate.responseSections.generateResponse.fields.dataTaskId.description | examplen74abc123music |
fielddata.status | paramTypestring | descriptionendpoint.generate.responseSections.generateResponse.fields.dataStatus.description | exampleIN_PROGRESS |
responses
json
{
"code": 200,
"message": "success",
"data": {
"task_id": "n74abc123music",
"status": "IN_PROGRESS",
"type": "text2music"
}
}codeExamples
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"
}'