跳转到内容

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.com/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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

此请求: $0.06 60 API 积分 在此页面运行

获取 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.com/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.com/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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/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/developers/models/minimax/music-3.md. 所有模型和指南: https://doitong.com/developers/llms.txt