Skip to main content
POST
Make a depth map with Video Depth Anything

Authorizations

Authorization
string
header
required

API key as a bearer token: Authorization: Bearer bpx_live_xxx

Body

application/json
video
string
required

The video to turn into a depth map (up to 30 seconds, MP4/MOV/WebM, ≤100MB). A public video URL or an uploaded-file URL from POST /v1/uploads (videos are passed by URL, not inlined).

colormap
enum<string>
default:grayscale

grayscale (near = white) is what video models take as a depth reference; turbo, inferno, magma and viridis colour it for viewing.

Available options:
grayscale,
turbo,
inferno,
magma,
viridis
keep_audio
boolean
default:false

Copy the input's audio into the depth video.

resolution
enum<string>
default:auto

The output's short side; auto keeps the input's size up to 1080p. Never upscales. The price is the same at every resolution.

Available options:
auto,
360p,
480p,
720p,
1080p
side_by_side
boolean
default:false

Return the input on the left and the depth map on the right, twice the width.

size
enum<string>
default:small

Model size, which sets the per-second rate: small 20, base 30, large 40 credits.

Available options:
small,
base,
large

Response

Job accepted.

credits
integer

Total price of this job (seconds x the size's per-second rate). Held now

id
string

Opaque job id (dpt_...) — use it to poll status.

message
string
model
string
seconds
integer

Billed duration — the input video's length, rounded up to whole seconds, at least 5.

size
enum<string>

The model size the job runs at.

Available options:
small,
base,
large
status
enum<string>

Lifecycle state. succeeded/failed/timeout are terminal.

Available options:
pending,
starting,
processing,
completing,
succeeded,
failed,
timeout