跳转到内容

Sonilo V1.1 Video to Video Sound Effects

集成

模型 id sonilo/v1.1/video-to-video-sound-effects
# 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/sonilo/v1.1/video-to-video-sound-effects?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.09 90 API 积分 · ≈ ₽9.67 运行前会测量你的文件 在此页面运行

获取 API 密钥
Sonilo · 视频

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

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

构建请求

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

可选的声音指导,应用于所有场景以替代自动视频字幕。描述所需音频,或将值留空以使用自动字幕。

•必填 video_url
拖放文件,或

用于生成声音的视频,可通过文件上传或公开 URL 提供,其时长决定生成音频的长度。

高级 audio_format · keep_speech_vocal · segments
audio_format 默认 aac

独立音频格式,可选择 wav、mp3、aac 或 flac,默认使用 aac。此选择不会改变视频的音频编码,视频始终使用 AAC。

可选的手动场景划分,以带有单独声音描述的时间范围指定;空值表示改用自动场景检测。

POST /run/sonilo/v1.1/video-to-video-sound-effects?wait=20 报价 → $0.09
# 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/sonilo/v1.1/video-to-video-sound-effects?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 密钥

关于 Sonilo V1.1 Video to Video Sound Effects

根据画面中的动作添加带时间信息的音效,返回包含音频的 mp4 以及单独的生成音频文件。使用 `prompt` 提供总体指引,或使用 `segments` 为各时间范围提供描述。`audio_format` 设置独立文件的格式(wav、mp3、aac 或 flac),`keep_speech_vocal` 保留原始语音。

参数

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

名称类型 默认值允许值 描述
video_url必填 video
类型url · video
用于生成声音的视频,可通过文件上传或公开 URL 提供,其时长决定生成音频的长度。
prompt可选
类型string | null
可选的声音指导,应用于所有场景以替代自动视频字幕。描述所需音频,或将值留空以使用自动字幕。
segments可选
类型object[]
可选的手动场景划分,以带有单独声音描述的时间范围指定;空值表示改用自动场景检测。
segments[].start可选
类型number
默认值0
≥ 0
第一个片段的起始位置必须为 0。所有起始时间均以相对于视频开头的秒数计。
segments[].end可选
类型number
默认值0
≥ 0
片段结束位置,以秒计;最后一个片段受视频时长限制。对于之前的每个片段,该位置必须与下一个片段的起始位置重合,以避免出现间隙或重叠。
segments[].prompt可选
类型string
默认值
片段声音效果或拟音的描述。
audio_format可选
类型enum
默认值aac
wavmp3aacflac
独立音频格式,可选择 wav、mp3、aac 或 flac,默认使用 aac。此选择不会改变视频的音频编码,视频始终使用 AAC。
keep_speech_vocal可选
类型boolean
默认值false
影响音频和视频输出的语音/人声保留开关;默认禁用,结果中仅保留生成的声音。启用后会使用音乐源分离来隔离源人声,丢弃原始音乐和环境声,并将生成的声音与未改变的人声录音混合,使其音量匹配人声。
必填 规范名称,也可接受

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

输出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "sonilo/v1.1/video-to-video-sound-effects",
  "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": 90,
    "usd": "0.09",
    "charged": 90,
    "refunded": 0
  },
  "input": {
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "videos": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
        "content_type": "video/mp4",
        "file_name": "0-output.mp4",
        "file_size": 1843200
      }
    ],
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "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 是模型自身的结果对象。
输出字段
video
object {url, content_type, file_name, file_size}包含生成声音以及(如提供)源视频的 MP4;没有源素材时,mp4 仅包含音频。
videos
array of object {url, content_type, file_name, file_size}输出 mp4 视频的完整集合,每个样本对应一个视频。
audio
object {url, content_type, file_name, file_size}包含生成声音的独立音频文件。

更多模型:视频转音频

对于 AI 代理:此页面的 Markdown 版本位于 https://doitong.com/zh/developers/models/sonilo/v1.1/video-to-video-sound-effects.md. 所有模型和指南: https://doitong.com/developers/llms.txt