Video Depth
Turn any video into a depth video, where near is bright and far is dark, with Video Depth Anything or Depth Anything per frame, in grayscale or a colormap.
The Video Depth node turns a video into a depth video: near is bright, far is dark. It estimates the depth of every frame and renders the depth as an MP4 of the same clip. Feed the grayscale result into depth-guided generation, relighting or compositing, or choose a colormap for a stylised look.
When to use it
- You need a depth pass of a clip for compositing, for example to place a layer between the foreground and the background.
- You want a depth video as a guide for another generation or for relighting.
- You want a stylised depth look, such as a Turbo or Inferno colormap, for a title or a social clip.
- You want to compare the original clip and its depth side by side.
Quick start
Add the node
Press Tab on the canvas and choose Video › Continue & Restyle › Video Depth.
Connect a video
Drag from the output of a video node, such as Upload Video or Generate Video, to the Video input.
Choose the model and the look
Open the settings panel. Choose a Provider, a Model size and a Colormap. Keep Grayscale when the result feeds another node.
Run it
Click Run on the node. The node card shows the depth video, with a caption that names the model, for example "Depth map · Video Depth Anything".
Inputs
| Input | Accepts | What it does |
|---|---|---|
| Video | Video nodes | The clip to turn into a depth video. Required. Its length decides the price, and it must be within the limit of the chosen model. |
A video link must point at an ordinary video file, not a streaming playlist (HLS or DASH). Such a link is refused before anything is charged. See Media links.
Outputs
| Output | What it carries |
|---|---|
| Video | The depth video, as an MP4. Near is bright and far is dark in Grayscale. With Side by side on, the original and the depth are next to each other in one video. |
Settings
| Setting | Default | What it does |
|---|---|---|
| Provider | Video Depth Anything | The model. Video Depth Anything is consistent from frame to frame. Depth Anything (per frame) runs on each frame alone and can flicker. |
| Model size | Large (best) | Small (fastest), Base or Large (best). A larger size gives more detail and runs slower. |
| Colormap | Grayscale | How the depth is coloured. Video Depth Anything offers Grayscale, Turbo, Inferno, Magma and Viridis. Depth Anything (per frame) offers Grayscale and Inferno. |
| Resolution | Auto | Video Depth Anything only. Auto, 360p, 480p, 720p or 1080p. |
| Side by side | Off | Video Depth Anything only. Puts the original and the depth next to each other in one video. |
The settings panel shows only the settings the chosen model takes. A setting the model does not take is ignored, and a colormap the model cannot render becomes Grayscale. A run is never refused for either, so a model that a field mapping switches still runs.
Models
| Model | Maker | Modes | Credits | Details |
|---|---|---|---|---|
| Video Depth Anything | Depth Anything | Video depth | from 22 | Temporally consistent depth video from any clip. Grayscale or colormapped, up to 2,400 frames or 300 seconds. |
| Depth Anything (per frame) | Depth Anything | Video depth | from 3 | Depth Anything v1 run on each frame. Grayscale or inferno colormap; may flicker between frames. Up to 80 s. |
| Model | Frame to frame | Settings | Longest clip |
|---|---|---|---|
| Video Depth Anything | Consistent | All five | 2,400 frames and at most 300 seconds |
| Depth Anything (per frame) | Each frame alone, can flicker | Model size, and Colormap in Grayscale or Inferno | 80 seconds |
Credits
The price depends on the model and on the length of the input clip. The clip is measured before the run.
Video Depth Anything is charged per second of the clip. The length is rounded up to whole seconds, so a clip under 1 second costs the same as 1 second, and a 9.2-second clip costs the same as 10 seconds. Up to 0.05 seconds past a whole second is ignored first: a 12-second cut of a 29.97 fps clip comes out 12.012 seconds long and costs the same as 12 seconds.
| Clip | Charged as | Credits |
|---|---|---|
| 15 seconds | 15 seconds | 330 |
| 1 minute | 60 seconds | 1,320 |
| 5 minutes (the maximum) | 300 seconds | 6,600 |
The node shows the exact price of the connected clip before it runs. The editor's price, a run of the node alone, a run inside a workflow, and the API, MCP and SDK all charge the same price for the same clip. The amount reserved when the run starts is the amount charged.
Depth Anything (per frame) is charged per second of the clip too, at a lower rate. The length is rounded up to whole seconds after ignoring the same 0.05 seconds, and each total is rounded up to a whole credit. A clip under 1 second costs the same as 1 second, a 4.1-second clip costs the same as 5 seconds, and a 15-second cut of a 29.97 fps clip (15.015 seconds) costs the same as 15 seconds.
| Clip | Charged as | Credits |
|---|---|---|
| 15 seconds | 15 seconds | 33 |
| 1 minute | 60 seconds | 132 |
| 80 seconds (the maximum) | 80 seconds | 176 |
Depth Anything (per frame) accepts clips up to 80 seconds, so an 80-second clip is the most a run can cost.
- The clip is measured before the run. A clip that cannot be read is refused before any credits are reserved. A run is never priced at a guessed length.
- The price on the node. The node's price, its Run button and the workflow's estimate read the same length for the connected video. This is true in the editor, in
POST /v1/credits/estimate-workflow, in MCP and in a published app's listed price.- A video that another node makes in this run is read at the length that node will produce at its settings. A generation counts the length its model renders, and Auto counts its longest clip. An Extend Video counts its source plus the seconds it adds. A Trim Video, Loop Video or Combine Videos counts the length it passes on.
- Each clip made on the way adds 0.15 seconds, because a made clip runs a little past its planned length and the run measures the whole file. The 0.05 seconds ignored past a whole second are ignored on the quote and the charge alike. For example, a generation set to 5 seconds is quoted at 6 seconds, and a Face Swap of a 9.92-second upload at 11 seconds. A Dubbing, a Voice Extractor or a PixVerse V6 extension adds a quarter second instead, because their files run further past their planned length.
- A node that does not run in this run, such as Video Depth run on its own or a frozen node, hands on the result it already holds. That result is read at the length recorded for it. A video generation whose result recorded no length is read at its Duration.
- An uploaded clip, or a clip added from your own uploads in the Library, is read at the length measured when it was uploaded. An upload with no recorded length is read from the file itself.
- A length that the upstream node only stores, such as an earlier result of a node that runs again, is never read.
- Until the length is known, the node and the estimates show the model's highest price, the most a run can cost: 5 minutes on Video Depth Anything, 80 seconds on Depth Anything (per frame). That happens when nothing is connected, on a VEO or Runway extension, on a video link, when the clip is not read yet, or when the clip cannot be read. The run itself is always charged the price of the measured clip.
- The price of a published app. When the app's user replaces an uploaded clip, the estimate shows the highest price until the run measures the new clip.
Tips
- Keep Grayscale for other nodes. Grayscale works best as the input of another node. Colormaps are for viewing.
- Preview with Small, finish with Large. Use Small (fastest) to check a clip quickly, and Large (best) for the final pass.
- Trim first. The price follows the length of the input clip. Cut the clip to the part you need with Trim Video before Video Depth.
- Choose Video Depth Anything for moving shots. Depth Anything (per frame) works on each frame alone, so the depth can flicker between frames.
Troubleshooting
| Message or problem | Cause and fix |
|---|---|
The clip is refused as too long (video_too_long). | The clip is longer than the chosen model accepts. Video Depth Anything accepts up to 2,400 frames and at most 300 seconds, whatever the frame rate. A clip that reports no frame rate is counted at 30 fps. Depth Anything (per frame) accepts up to 80 seconds. Trim the clip and run again. No credits are reserved. |
The clip is refused as unreadable (video_unreadable). | Nodaro could not read the clip to measure its length. Check that the link is a direct link to a video file, or upload the file again. No credits are reserved. |
| The depth flickers between frames. | Depth Anything (per frame) works on each frame alone. Choose Video Depth Anything, which is consistent from frame to frame. |
| A colormap you chose is not in the result. | The model cannot render that colormap, so the run used Grayscale. Depth Anything (per frame) offers only Grayscale and Inferno. |
From the API
POST /v1/video-depth takes videoUrl, with optional provider, modelSize, colormap, resolution and sideBySide. provider is video-depth-anything (the default) or depth-anything-frames, and modelSize is small, base or large (the default). colormap is grayscale, turbo, inferno, magma or viridis, and resolution is auto, 360p, 480p, 720p or 1080p.
POST /v1/video-depth
Content-Type: application/json
{
"videoUrl": "https://example.com/clip.mp4",
"provider": "video-depth-anything",
"modelSize": "large",
"colormap": "grayscale"
}The answer is { jobId }, and the finished job's output is { videoUrl, thumbnailUrl }. A setting the model does not take is ignored, and a colormap it cannot render becomes grayscale. A value that is not in the lists above is a 400 validation_error. The clip is measured before anything is created: 400 video_too_long and 400 video_unreadable reserve nothing.
With the SDK, run the node by its type:
const result = await client.nodes.run("video-depth", {
videoUrl: "https://example.com/clip.mp4",
colormap: "grayscale",
})With the CLI:
nodaro nodes run video-depth --param videoUrl=https://example.com/clip.mp4 --watchFrom an AI assistant, the MCP tool is video_depth, with video_url or video_asset_id and the optional provider, model_size, colormap, resolution and side_by_side. See Run a single node, the SDK nodes reference, the CLI commands and the MCP tools.
Frequently asked questions
What does the Video Depth node make?
Video Depth turns a video into a depth video of the same clip. Near objects are bright and far objects are dark. The result is an MP4 that you can feed into other nodes or view as it is.
Which model should I choose for Video Depth?
Choose Video Depth Anything for most work. It is consistent from frame to frame and offers every setting. Depth Anything (per frame) is cheaper, but it works on each frame alone, so the depth can flicker, and it accepts clips up to 80 seconds.
How long can the video be?
Video Depth Anything accepts up to 2,400 frames and at most 300 seconds. That is about 80 seconds at 30 fps. Depth Anything (per frame) accepts up to 80 seconds. A longer clip is refused before any credits are reserved.
How is a Video Depth run priced?
The price depends on the model and on the length of the input clip, which is measured before the run. Video Depth Anything is charged per second, with the length rounded up to whole seconds. Depth Anything (per frame) is also charged per second, at a lower rate. Up to 0.05 seconds past a whole second is ignored first.
Should I use grayscale or a colormap?
Keep Grayscale, the default, when the depth video feeds another node. Colormaps such as Turbo or Inferno are for viewing the depth.
Related
Video to Video
Composite
Trim Video
Video Depth Anything
Depth Anything (per frame)
Last updated on
Relight & Switch
Relight a subject, swap or restyle a background, or composite new elements into a video, driven by the clip's own pixels, a mask and a reference image.
Video Mask
Describe a subject in plain words and get a black-and-white mask video that tracks it through the clip, with SAM 3.1 or SAM 3, for clips up to 5 minutes.