MiniMax Music 3.0 API リファレンス
仕上がったステレオ楽曲。ボーカル入りもインストも
PopNow の API キー 1 つで、MiniMax Music 3.0 を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりのクレジット、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。
パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。
概要
- 開発元
- MiniMax
- 出力
- 音声
- 最安
- 27 クレジット 1 リクエストあたり ($0.27)
1 クレジット = 0.01 米ドル。タスクの受付時に上限額を確保し、完了時に実際の使用量で精算します(整数クレジットに切り上げ、差額は返却)。失敗したタスクには課金されません。実行前に正確な金額を知りたいときは POST /api/v1/jobs/quote を呼んでください。
音楽
minimax/music-3.0/text-to-audio
料金
| オプション | クレジット (1 リクエストあたり) | 米ドル |
|---|---|---|
既定 | 27 | $0.27 |
パラメーター
| フィールド | 型 | 既定値 | 指定できる値 | 説明 |
|---|---|---|---|---|
prompt必須 | string | — | 2,000 文字まで | Style brief for the song: genre, mood, tempo, instruments and the kind of voice. The words to sing go in lyrics. |
lyrics任意 | string | — | 3,000 文字まで | Words to sing, one line per row. Section tags such as [Verse], [Chorus] and [Bridge] on their own rows shape the arrangement. |
generate_lyrics任意 | boolean | true | — | Write lyrics from the prompt when lyrics is empty. Lyrics you send are sung as written. |
instrumental任意 | boolean | false | — | Generate music with no vocals; lyrics are not needed. |
bitrate任意 | integer | 256000 | 32000, 64000, 128000, 256000 | MP3 bitrate in bits per second. |
sample_rate任意 | integer | 44100 | 16000, 24000, 32000, 44100 | Sample rate in Hz. |
リクエスト例
このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "minimax/music-3.0/text-to-audio",
"input": {
"prompt": "An upbeat indie pop song about a summer road trip, bright guitars, hand claps and a catchy whistled hook"
}
}'レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
