API 엔드포인트

MiniMax 엔진

POST/v2/minimax/generate

MiniMax 공급자 생성 API

통합 MiniMax 공급자를 통해 음악을 생성합니다.

POSThttps://udioapi.pro/api/v2/minimax/generate

팁

MiniMax 엔진: MiniMax가 필요할 때 이 엔드포인트를 사용하십시오.

폴링: SUCCESS 또는 FAILED가 될 때까지 /v2/minimax/feed?workId=...를 호출하세요.

요청 헤더

이름필수설명
이름Authorization필수예설명인증을 위한 Bearer 토큰
이름Content-Type필수예설명application/json

요청 본문

MiniMax 생성 요청

공통 매개변수

매개변수유형필수설명예시
매개변수prompt유형string필수예설명음악 생성 프롬프트예시Cinematic orchestral pop, emotional female vocal, warm piano, strings, gradual build, polished studio mix.
매개변수lyrics유형string필수예설명MiniMax Music 2.5에서는 필수이며 10~3000자여야 합니다.예시Verse 1: The city lights are fading\nChorus: We rise into the morning glow
매개변수bitrate유형number필수아니오설명오디오 비트레이트예시256000
매개변수sample_rate유형number필수아니오설명오디오 샘플링 속도예시44100
매개변수callback_url유형string필수아니오설명선택적 콜백 URL예시https://api.example.com/webhooks/minimax
매개변수public유형boolean필수아니오설명작업을 공개할 수 있는지 여부예시false

Response Fields

Generate Response

필드유형설명예시
필드code유형number설명Response code. 200 means the task was created successfully.예시200
필드message유형string설명Human-readable response message.예시success
필드data.task_id유형string설명MiniMax generation task ID. Use it as workId when polling the feed endpoint.예시n74abc123music
필드data.status유형string설명Initial task status.예시IN_PROGRESS

응답

json
{
  "code": 200,
  "message": "success",
  "data": {
    "task_id": "n74abc123music",
    "status": "IN_PROGRESS",
    "type": "text2music"
  }
}
json
{
  "code": 400,
  "message": "Bad Request: 'lyrics' is required for MiniMax Music 2.5 and must be between 10 and 3000 characters.",
  "data": null
}
json
{
  "code": 401,
  "message": "No API key provided in Authorization header",
  "data": null
}

코드 예시

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"
  }'
javascript
const response = await fetch('https://udioapi.pro/api/v2/minimax/generate', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    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'
  })
});

const data = await response.json();
console.log(data.data.task_id);
GET/v2/minimax/feed?workId=xxx

MiniMax 공급자 작업 상태 API

MiniMax 작업에 대한 상태 및 결과 URL을 가져옵니다.

GEThttps://udioapi.pro/api/v2/minimax/feed?workId=xxx

팁

생성 엔드포인트의 task_id를 workId로 사용하세요.

상태가 SUCCESS가 되면 응답에 오디오 URL이 포함됩니다.

요청 매개변수

매개변수유형필수설명
매개변수workId유형string필수예설명엔드포인트 생성에서 반환된 MiniMax 작업 ID

응답

json
{
  "code": 200,
  "message": "success",
  "data": {
    "task_id": "n74abc123music",
    "status": "IN_PROGRESS",
    "consumed_credits": 30,
    "error_message": null,
    "created_at": "2026-06-13 12:00:00",
    "type": "text2music",
    "request": {
      "prompt": "Cinematic orchestral pop...",
      "bitrate": 256000,
      "sample_rate": 44100
    },
    "response": null
  }
}
json
{
  "code": 200,
  "message": "success",
  "data": {
    "task_id": "n74abc123music",
    "status": "SUCCESS",
    "consumed_credits": 30,
    "error_message": null,
    "created_at": "2026-06-13 12:00:00",
    "type": "text2music",
    "request": {
      "prompt": "Cinematic orchestral pop...",
      "bitrate": 256000,
      "sample_rate": 44100
    },
    "response": [
      "https://example-cdn.com/generated-minimax-track.mp3"
    ]
  }
}
json
{
  "code": 404,
  "message": "Task not found",
  "data": null
}

코드 예시

curl
curl -X GET "https://udioapi.pro/api/v2/minimax/feed?workId=n74abc123music"
javascript
const response = await fetch('https://udioapi.pro/api/v2/minimax/feed?workId=n74abc123music');
const data = await response.json();

if (data.data.status === 'SUCCESS') {
  console.log('Audio URLs:', data.data.response);
}