PopNowAPI ドキュメント
本文

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任意booleantrue—Write lyrics from the prompt when lyrics is empty. Lyrics you send are sung as written.
instrumental任意booleanfalse—Generate music with no vocals; lyrics are not needed.
bitrate任意integer25600032000, 64000, 128000, 256000MP3 bitrate in bits per second.
sample_rate任意integer4410016000, 24000, 32000, 44100Sample rate in Hz.

リクエスト例

このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。

POST /api/v1/jobs/createTask
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 を付けて通知を受け取ります。

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

次に読む

このページの内容