About Depth Pro 2 Video
The Depth Pro 2 Video API is a single endpoint with one required field. Send video_url and optionally a colormap, and the task returns an H.264 MP4 depth sequence with the dimensions, frame rate (up to 30 fps) and audio of the source. It is built for pipelines: conditioning inputs for other video models, depth-aware compositing, and automated breakdown renders.
Call it with the model name apple/depth-pro-2-video/video-edit on POST /jobs/createTask, from $0.012.
Introduction
Overview
Apple Depth Pro 2 Video converts a source video clip (1 to 120 seconds) into a temporally steady H.264 MP4 depth sequence without needing a text prompt. Output dimensions follow your source video (verified across 480×480, 1344×768 and 1920×1080), frame rate is preserved up to 30 fps, and the original AAC audio track stays attached.
Video inputs
| Field | Type | Default | Video behavior |
|---|---|---|---|
video_url | string (URI) | Required | Source MP4 or WebM clip from 1 to 120 seconds |
colormap | string | grayscale | Video depth palette: grayscale for conditioning, inferno, or turbo |
Request parameters
| Parameter | Required | Description |
|---|---|---|
colormap | No | How depth is drawn: grayscale (near is white, far is black) for other tools, or inferno and turbo to read by eye. grayscale · inferno · turbo · Default: grayscale |
video_url | Yes | The clip to work on. |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per second |
|---|---|
| Standard | $0.012 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
API quick start
Call the Depth Pro 2 Video API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model apple/depth-pro-2-video/video-edit and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "apple/depth-pro-2-video/video-edit",
"input": {
"video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
"colormap": "grayscale"
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
What to build with the Depth Pro 2 Video API
- A conditioning step in a video-to-video pipeline: generate the grayscale depth pass first and feed it to a model that accepts depth guidance.
- Depth-of-field or fog effects in a web editor that read the grayscale pass as a matte for every frame.
- Automatic breakdown reels: pair each finished shot with a turbo depth render for portfolio or pitch pages.
Depth Pro 2 Video parameter notes
- colormap defaults to grayscale, where near is white and far is black. Use it whenever software consumes the output; inferno and turbo are for human viewing.
- There is no prompt and no resolution field: output dimensions always follow the source clip.
- Frame rate is preserved up to 30 fps, so convert higher-frame-rate footage yourself if your pipeline needs the original timing.
How Depth Pro 2 Video API pricing adds up
Pricing is per second of the source clip with a three-second minimum and a 120-second cap. The quote reserves the cap; the settled amount matches the measured duration, so store the final cost reported by recordInfo.
- Video Depth Map, 5-second clip: $0.06 each, $6.00 for 100 clips
Async jobs, webhooks and rate limits
Every Depth Pro 2 Video request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for apple/depth-pro-2-video/video-edit never runs or bills twice.
Common Depth Pro 2 Video API errors
| errorCode | What it usually means and how to fix it |
|---|---|
invalid_asset | The source must be an MP4, WebM or QuickTime file between 1 and 120 seconds. Validate duration locally and split long footage into segments. |
invalid_request | colormap accepts only grayscale, inferno or turbo; omit it to get grayscale. |
timeout | Long clips take longer to process. Rely on callBackUrl rather than polling on a short client timer. |
Depth Pro 2 Video API questions
How much does the Depth Pro 2 Video API cost?
Depth Pro 2 Video costs $0.012 per second. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What is the model name for Depth Pro 2 Video in the API?
Put apple/depth-pro-2-video/video-edit for Video Depth Map in the model field of POST /jobs/createTask.
Is the Depth Pro 2 Video output metric depth?
No. It is an encoded depth video for viewing or conditioning. For metric depth of a single image, the Depth Pro 2 image endpoint offers a 32-bit EXR.
Does the depth video keep the source audio?
Yes. The original AAC track is carried over, which keeps the depth pass in sync on a timeline.
Can I control the output resolution?
No. The depth MP4 always matches the dimensions of the uploaded clip.
What are the limits of the Depth Pro 2 Video API?
Longest input clip: 120 s. Requests outside these limits are rejected before anything is charged.
Can I try Depth Pro 2 Video without writing code?
Run Depth Pro 2 Video in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.
All Depth models
Depth Pro 2 makes a sharp depth map from one photo. Depth Pro 2 Video keeps the depth consistent from frame to frame, which a frame-by-frame run of the photo model cannot guarantee.