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 |
|---|---|---|
Authorization | yes | Токен носителя для аутентификации |
Content-Type | yes | application/json |
requestBody
Запрос на создание MiniMax
commonParams
| paramName | paramType | required | description | example |
|---|---|---|---|---|
prompt | string | yes | Подсказка о создании музыки | Cinematic orchestral pop, emotional female vocal, warm piano, strings, gradual build, polished studio mix. |
lyrics | string | no | Дополнительные тексты песен | Verse 1: The city lights are fading\nChorus: We rise into the morning glow |
bitrate | number | no | Битрейт аудио | 256000 |
sample_rate | number | no | Частота дискретизации звука | 44100 |
callback_url | string | no | Необязательный URL обратного вызова | https://api.example.com/webhooks/minimax |
public | boolean | no | Может ли задача быть общедоступной | false |
endpoint.generate.responseSectionsHeading
endpoint.generate.responseSections.generateResponse.title
| field | paramType | description | example |
|---|---|---|---|
code | number | endpoint.generate.responseSections.generateResponse.fields.code.description | 200 |
message | string | endpoint.generate.responseSections.generateResponse.fields.message.description | success |
data.task_id | string | endpoint.generate.responseSections.generateResponse.fields.dataTaskId.description | n74abc123music |
data.status | string | endpoint.generate.responseSections.generateResponse.fields.dataStatus.description | IN_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"
}'