POST
/v2/minimax/generateAPI de generación de proveedor MiniMax
Genere música a través del proveedor MiniMax integrado.
POST
https://udioapi.pro/api/v2/minimax/generatetips
Proveedor de MiniMax: utilice este punto final cuando necesite MiniMax.
Encuesta: llame a /v2/minimax/feed?workId=... hasta que tenga ÉXITO o FALLE.
requestHeaders
| name | required | description |
|---|---|---|
Authorization | yes | Token de portador para autenticación |
Content-Type | yes | application/json |
requestBody
Solicitud de generación MiniMax
commonParams
| paramName | paramType | required | description | example |
|---|---|---|---|---|
prompt | string | yes | Mensaje de generación de música | Cinematic orchestral pop, emotional female vocal, warm piano, strings, gradual build, polished studio mix. |
lyrics | string | no | Letras opcionales | Verse 1: The city lights are fading\nChorus: We rise into the morning glow |
bitrate | number | no | tasa de bits de audio | 256000 |
sample_rate | number | no | Frecuencia de muestreo de audio | 44100 |
callback_url | string | no | URL de devolución de llamada opcional | https://api.example.com/webhooks/minimax |
public | boolean | no | Si la tarea puede ser pública | 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"
}'