跳转到内容

Mirelo SFX2.0 · Video to Audio

集成

模型 id mirelo-ai/sfx2.0/video-to-audio
# 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/mirelo-ai/sfx2.0/video-to-audio?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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.20 200 API 积分 · ≈ ₽21.49 运行前会测量你的文件 在此页面运行

获取 API 密钥
Mirelo AI 视频转音频 1–600 秒 #video-to-audio#sfx

为输入视频创建配乐,并以独立音频文件返回

Mirelo AI · 音频

你的第一个结果将在此显示

在下方构建请求,并使用你的 API 密钥运行。输出会复制到我们的存储中,可永久保存或免费保存 7 天。

构建请求

控件根据模型架构生成。更改控件时,代码和价格会同步更新。

•必填 video_url
拖放文件,或

将接收声音的视频 URL。

默认 10

请求的声音时长,以秒为单位;低于 1 s 的视频返回 400。请求长度至少为 1 s,且上限为视频时长;当时长超过 10 s 时,生成会拆分为 10 s 的窗口。

默认 2

要生成的变体数量。

高级 text_prompt · negative_prompt · upload_audio_format · upload_audio_bitrate_kbps · seed · preserve_speech
0 / 2000

用于指导生成的可选文本说明。

0 / 1000

简短的声音排除列表,条目之间用逗号分隔。

upload_audio_format 默认 wav

每个音频文件使用的格式。

上传比特率覆盖值,单位为 kbps;当 upload_audio_format 为无损格式时会被拒绝。未设置时,mp3 保留 LAME V0 VBR,aac 使用 256 kbps 目标值。对于 mp3,请从 32、40、48、56、64、80、96、112、128、160、192、224、256、320 中选择精确的恒定速率。对于 aac,32 到 256 的值指定编码器目标而非保证速率,因此单声道或稀疏音频可能低于该值。

生成种子;选择 -1 或 None 时使用随机值。

POST /run/mirelo-ai/sfx2.0/video-to-audio?wait=20 报价 → $0.20
# 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/mirelo-ai/sfx2.0/video-to-audio?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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 密钥

关于 Mirelo SFX2.0 · Video to Audio

为 `video_url` 中的视频片段添加声音,仅返回音频文件,不包含视频。`text_prompt` 和 `negative_prompt` 用于引导结果,`preserve_speech` 会在生成其余声音的同时保留现有语音。`duration` 为 1 到 600 秒,并会限制为视频长度;`num_samples` 可生成 1 到 4 个变体。格式为 wav、mp3、aac 或 flac。

参数

发送规范名称或原生名称之一,不要同时发送两者。 规范名称

名称类型 默认值允许值 描述
video_url必填 video
类型url · video
将接收声音的视频 URL。
text_prompt可选
类型string | null
≤ 2,000 个字符
用于指导生成的可选文本说明。
negative_prompt可选
类型string | null
≤ 1,000 个字符
简短的声音排除列表,条目之间用逗号分隔。
preserve_speech可选
类型boolean
默认值true
生成音轨的语音处理方式:false 会抑制语音,仅生成音效。启用后,输入语音保持不变,其余音轨围绕语音生成。
duration可选
类型number
默认值10
1 – 600
请求的声音时长,以秒为单位;低于 1 s 的视频返回 400。请求长度至少为 1 s,且上限为视频时长;当时长超过 10 s 时,生成会拆分为 10 s 的窗口。
num_samples可选
类型integer
默认值2
1 – 4
要生成的变体数量。
seed可选
类型integer | null
-1 – 18,446,744,073,709,552,000
生成种子;选择 -1 或 None 时使用随机值。
upload_audio_format可选
类型enum
默认值wav
wavmp3aacflac
每个音频文件使用的格式。
upload_audio_bitrate_kbps可选
类型integer | null
32 – 320
上传比特率覆盖值,单位为 kbps;当 upload_audio_format 为无损格式时会被拒绝。未设置时,mp3 保留 LAME V0 VBR,aac 使用 256 kbps 目标值。对于 mp3,请从 32、40、48、56、64、80、96、112、128、160、192、224、256、320 中选择精确的恒定速率。对于 aac,32 到 256 的值指定编码器目标而非保证速率,因此单声道或稀疏音频可能低于该值。
必填 规范名称,也可接受

文件参数接受公开的 https:// URL、最大 10 MB 的 data: URI,或上传文件的 file_url。 文件

输出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "mirelo-ai/sfx2.0/video-to-audio",
  "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": 200,
    "usd": "0.20",
    "charged": 200,
    "refunded": 0
  },
  "input": {
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "output": {
    "model": "sfx-2.0",
    "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
      }
    ]
  },
  "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 是模型自身的结果对象。
输出字段
model
string用于生成输出的 SFX 模型版本。
audio
array of object {url, content_type, file_name, file_size}生成音轨的音频文件,不包含视频。

更多模型:视频转音频

对于 AI 代理:此页面的 Markdown 版本位于 https://doitong.com/zh/developers/models/mirelo-ai/sfx2.0/video-to-audio.md. 所有模型和指南: https://doitong.com/developers/llms.txt