跳至內容

MiniMax Music 3

整合

模型 id minimax/music-3
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/minimax/music-3?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Warm indie folk, acoustic guitar and soft brushed drums, gentle female vocal, 92 BPM, nostalgic summer evening",
    "lyrics": "[verse]\nPorch lights humming on the edge of town\nWe count the fireflies as the sun goes down\n[chorus]\nStay a little longer, the night is young\nSing me the song that we never sung",
    "duration": 30
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

此請求: $0.06 60 API 點數 · ≈ ₽6.45 在此頁面執行

取得 API 金鑰

範例

輸出 · ~84 秒

提示詞Warm indie folk, acoustic guitar and soft brushed drums, gentle female vocal, 92 BPM, nostalgic summer evening

30 s$0.06 · 60 API 點數

建立請求

控制項是根據模型結構描述生成的。變更設定時,程式碼和價格會同步更新。

•必填

音樂生成提示詞,可使用 Structured Caption 進行精確控制:將各段落專屬的編曲與人聲細節,和指定曲風、BPM、調性及情緒進展的全域中繼資料結合。一般描述涵蓋所需的風格和情緒、使用人聲與樂器的方式,以及編曲。

•必填

要演唱的歌詞;根據模型的輸入契約,與開頭結構標籤同一行的任何文字都會被捨棄。每個標籤都要獨立成行,包括 [intro]、[verse]、[pre-chorus]、[chorus]、[post-chorus]、[bridge]、[instrumental]、[solo] 和 [outro]。

音訊持續時間上限,以秒為單位,而非保證的輸出長度。回應會回報實際持續時間;若生成提早停止,該值可能較短。

進階 num_inference_steps · guidance_scale · seed
預設 30

每個 8 秒去噪區塊內用於流匹配的 Euler 步數。

預設 1.7

流匹配期間的無分類器引導強度。

用於可重現生成的種子;除非提供值,否則會隨機選擇。

POST /run/minimax/music-3?wait=20 報價 → $0.06
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/minimax/music-3?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Warm indie folk, acoustic guitar and soft brushed drums, gentle female vocal, 92 BPM, nostalgic summer evening",
    "lyrics": "[verse]\nPorch lights humming on the edge of town\nWe count the fireflies as the sun goes down\n[chorus]\nStay a little longer, the night is young\nSing me the song that we never sung",
    "duration": 30
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

執行此請求

您的金鑰會保留在此瀏覽器中:只會傳送至 Doitong API,且只有在勾選「記住」時才會儲存至 localStorage。 取得 API 金鑰

關於 MiniMax Music 3

MiniMax Music 3 會將歌詞演唱於完整編曲上。在提示詞中描述曲風、速度、調性、情緒、人聲和樂器,並在歌詞中使用 [verse]、[chorus] 和 [bridge] 等標籤標示歌曲結構,每個標籤各自佔一行。時長(1 到 300 秒,預設為 60)是上限;歌曲可能更早結束。

參數

名稱類型 預設值允許值 說明
prompt必填
類型string
音樂生成提示詞,可使用 Structured Caption 進行精確控制:將各段落專屬的編曲與人聲細節,和指定曲風、BPM、調性及情緒進展的全域中繼資料結合。一般描述涵蓋所需的風格和情緒、使用人聲與樂器的方式,以及編曲。
lyrics必填
類型string
要演唱的歌詞;根據模型的輸入契約,與開頭結構標籤同一行的任何文字都會被捨棄。每個標籤都要獨立成行,包括 [intro]、[verse]、[pre-chorus]、[chorus]、[post-chorus]、[bridge]、[instrumental]、[solo] 和 [outro]。
duration選填
類型number
預設值60
1 – 300
音訊持續時間上限,以秒為單位,而非保證的輸出長度。回應會回報實際持續時間;若生成提早停止,該值可能較短。
seed選填
類型integer | null
用於可重現生成的種子;除非提供值,否則會隨機選擇。
num_inference_steps選填
類型integer
預設值30
1 – 100
每個 8 秒去噪區塊內用於流匹配的 Euler 步數。
guidance_scale選填
類型number
預設值1.7
0 – 20
流匹配期間的無分類器引導強度。
必填

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "minimax/music-3",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 60,
    "usd": "0.06",
    "charged": 60,
    "refunded": 0
  },
  "input": {
    "prompt": "Genre: acoustic pop. BPM: 96. Key: C major. Warm and intimate, soft female vocal, guitar and light piano",
    "lyrics": "[verse]\nMorning light filtering through the pine\nEvery quiet street is yours and mine\n[chorus]\nSoftly the world begins to breathe",
    "duration": 30
  },
  "output": {
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_name": "0-output.mp3",
      "file_size": 1843200
    },
    "seed": 42,
    "duration": 5
  },
  "outputs": [
    {
      "type": "audio",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_size": 1843200,
      "duration": 12,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
您的檔案,由您選擇每個 outputs[].url 都是儲存空間中的副本:可永久保留(按 GB-月計費),或免費保留 7 天;可透過帳戶設定或 ?storage= 設定。
所有模型使用相同結構圖片、影片和音訊皆包含 type、url、content_type、width、height 和 duration。output 是模型自己的結果物件。
輸出欄位
audio
object {url, content_type, file_name, file_size}立體聲 WAV 格式的輸出音訊檔案,使用 44.1 kHz 和 16 位元取樣。
seed
integer生成期間使用的隨機種子。
duration
number回報實際生成的音訊秒數,不一定與要求的長度相同。

更多模型:文字轉音樂

給 AI 代理程式:此頁面的 Markdown 位於 https://doitong.com/zh-TW/developers/models/minimax/music-3.md. 所有模型與指南: https://doitong.com/developers/llms.txt