跳转到内容

Depth Anything Video

集成

模型 id depth-anything-video
# 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/depth-anything-video?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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

与示例类似的文件: $0.40 400 API 积分 运行前会测量你的文件 在此页面运行

获取 API 密钥
ByteDance 视频转换 最高 1080p #video-to-video#motion#edit

估计输入视频逐帧的深度图,支持尺寸、颜色映射和并排比较选项

ByteDance · 视频

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

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

构建请求

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

•必填 video_url
拖放文件,或

指向用于深度估计的视频的 URL。

resolution 默认 auto

输出分辨率;`auto` 保留输入分辨率,最高为 1080p。可用值:'auto'、'360p'、'480p'、'720p'、'1080p'。

帧处理上限,最大为 2400。设置为 None 同样允许最多处理 2400 帧。

高级 model · colormap · output_fps · side_by_side · include_raw_depths
model 默认 VDA-Large

深度估计模型的大小;VDA-Large 提供最高质量,而 VDA-Small 运行速度最快。

colormap 默认 grayscale

深度可视化调色板:'grayscale' 显示原始归一化深度;'viridis' 提供适合色觉障碍者的视图;'inferno' 或 'magma' 提供感知均匀性。推荐使用的 'turbo' 调色板会将近处区域映射为暖色,将远处区域映射为冷色。

输出视频的帧率。None 会保留输入帧率。

POST /run/depth-anything-video?wait=20 报价 → $0.40
# 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/depth-anything-video?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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

运行此请求

你的密钥会保留在此浏览器中:仅发送到 Doitong API;只有勾选“记住”后才会保存到 localStorage。 获取 API 密钥

关于 Depth Anything Video

将视频转换为深度可视化结果,并确保各帧之间的一致性。可选择模型尺寸(VDA-Small、VDA-Base 或 VDA-Large)、颜色映射(grayscale、turbo、inferno、magma 或 viridis)以及最高 1080p 的输出 `resolution`。可选使用 `side_by_side` 将原视频与深度视频并排渲染,使用 `max_frames` 限制帧数(最多 2400),或将原始深度值导出为 .npz 文件。

参数

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

名称类型 默认值允许值 描述
video_url必填 video
类型url · video
指向用于深度估计的视频的 URL。
model可选
类型enum
默认值VDA-Large
VDA-SmallVDA-BaseVDA-Large
深度估计模型的大小;VDA-Large 提供最高质量,而 VDA-Small 运行速度最快。
colormap可选
类型enum
默认值grayscale
grayscaleturboinfernomagmaviridis
深度可视化调色板:'grayscale' 显示原始归一化深度;'viridis' 提供适合色觉障碍者的视图;'inferno' 或 'magma' 提供感知均匀性。推荐使用的 'turbo' 调色板会将近处区域映射为暖色,将远处区域映射为冷色。
resolution可选
类型enum
默认值auto
auto360p480p720p1080p
输出分辨率;`auto` 保留输入分辨率,最高为 1080p。可用值:'auto'、'360p'、'480p'、'720p'、'1080p'。
max_frames可选
类型integer | null
> 0
帧处理上限,最大为 2400。设置为 None 同样允许最多处理 2400 帧。
output_fps可选
类型number | null
> 0
输出视频的帧率。None 会保留输入帧率。
side_by_side可选
类型boolean
默认值false
控制是否输出将原始视图与深度视图并排比较的视频。
include_raw_depths可选
类型boolean
默认值false
控制是否将原始 float32 深度数据导出为 .npz 文件,其中包含 `depths` [N,H,W]、`min_depth`、`max_depth`、`fps`、`model` 和 `shape`。
必填 规范名称,也可接受

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

输出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "depth-anything-video",
  "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": 400,
    "usd": "0.40",
    "charged": 400,
    "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
    },
    "raw_depths": {
      "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.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 是模型自身的结果对象。
输出字段
video
object {url, content_type, file_name, file_size}显示深度信息的视频,以 H.264 编码并采用 MP4 格式。
raw_depths
object {url, content_type, file_name, file_size} | null原始深度数据,存储在 .npz 文件中;当 `include_raw_depths` 为 True 时提供。

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