POST
/v2/minimax/generateAPI de génération du moteur MiniMax
Générez de la musique via le moteur MiniMax intégré.
POST
https://udioapi.pro/api/v2/minimax/generateConseils
Moteur MiniMax : utilisez ce point de terminaison lorsque vous avez besoin de MiniMax.
Interrogation : Appelez /v2/minimax/feed?workId=... jusqu'à ce que SUCCÈS ou ÉCHEC.
En-têtes de requête
| Nom | Requis | Description |
|---|---|---|
NomAuthorization | RequisOui | DescriptionJeton du porteur pour l'authentification |
NomContent-Type | RequisOui | Descriptionapplication/json |
Corps de la requête
Demande de génération MiniMax
Paramètres communs
| Paramètre | Type | Requis | Description | Exemple |
|---|---|---|---|---|
Paramètreprompt | Typestring | RequisOui | DescriptionInvite de génération de musique | ExempleCinematic orchestral pop, emotional female vocal, warm piano, strings, gradual build, polished studio mix. |
Paramètrelyrics | Typestring | RequisOui | DescriptionObligatoires pour MiniMax Music 2.5 ; 10 à 3 000 caractères. | ExempleVerse 1: The city lights are fading\nChorus: We rise into the morning glow |
Paramètrebitrate | Typenumber | RequisNon | DescriptionDébit audio | Exemple256000 |
Paramètresample_rate | Typenumber | RequisNon | DescriptionTaux d'échantillonnage audio | Exemple44100 |
Paramètrecallback_url | Typestring | RequisNon | DescriptionURL de rappel facultative | Exemplehttps://api.example.com/webhooks/minimax |
Paramètrepublic | Typeboolean | RequisNon | DescriptionSi la tâche peut être publique | Exemplefalse |
Response Fields
Generate Response
| Champ | Type | Description | Exemple |
|---|---|---|---|
Champcode | Typenumber | DescriptionResponse code. 200 means the task was created successfully. | Exemple200 |
Champmessage | Typestring | DescriptionHuman-readable response message. | Exemplesuccess |
Champdata.task_id | Typestring | DescriptionMiniMax generation task ID. Use it as workId when polling the feed endpoint. | Exemplen74abc123music |
Champdata.status | Typestring | DescriptionInitial task status. | ExempleIN_PROGRESS |
Réponses
json
{
"code": 200,
"message": "success",
"data": {
"task_id": "n74abc123music",
"status": "IN_PROGRESS",
"type": "text2music"
}
}Exemples de code
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"
}'