Pricing
Compare models →Pricing is fixed at $0.01 per image.
| Output | Cost |
|---|---|
| One depth map (with or without the metric EXR) | $0.01 |
colormap, output_format and metric_depth do not add separate charges.
Input schema
| Parameter | Type | Description |
|---|---|---|
imageRequired | string | The URL of the input image to estimate depth for. |
colormap | string | How depth is rendered. grayscale is the standard depth map (near = white, far = black) used by depth-conditioned generation and ControlNet-style workflows; inferno and turbo are color visualizations.grayscaleinfernoturbo"grayscale" |
output_format | string | The format of the output depth map.pngjpegwebp"png" |
metric_depth | boolean | Also return the depth itself in meters as a second output: a single-channel 32-bit float OpenEXR file at the input resolution. Infinitely far pixels such as sky are stored as infinity.Default: false |
README
Depth Pro 2 Image
Depth Pro 2 Image generates pixel-level depth maps from a single image. It supports metric depth estimation, focal length estimation, and multiple depth visualization options.
The endpoint returns a depth map at the source image resolution, with optional metric depth data for depth-conditioned generation, relighting, compositing, and 3D workflows.
Why Choose This?
- Sharp, detailed depth
Estimate depth around subjects and scene structures; boundary accuracy varies with the input.
- Real-world distances
Depth is estimated in meters, not just near-to-far order. Turn on metric_depth to download it.
- Camera aware
Uses the focal length stored in the photo's EXIF data when present; otherwise estimates it.
- Control-workflow ready
The default grayscale output can be used in depth-conditioned workflows that accept this format.
- Input-resolution output
The depth map matches the resolution of the source image.
Parameters
| Parameter | Required | Description |
|---|---|---|
| image | Yes | Input image provided as a URL or upload. |
| colormap | No | Depth-map visualization: grayscale, inferno, or turbo. Default: grayscale. In grayscale mode, near surfaces are white and far surfaces are black. |
| output_format | No | Depth-map image format: png, jpeg, or webp. Default: png. |
| metric_depth | No | Also return the depth in meters as a single-channel 32-bit float OpenEXR file. Default: false. |
How to Use
- Provide an input image — Upload an image or provide its URL.
- Choose a colormap (optional) —
grayscalefor generation and compositing,inferno/turbofor visualization.
- Turn on metric depth (optional) — Get an EXR file containing estimated depth values in meters.
- Submit — Retrieve the depth map, and the EXR file if requested, from
outputs.
Pricing
Pricing is fixed at $0.01 per image.
| Output | Cost |
|---|---|
| One depth map (with or without the metric EXR) | $0.01 |
colormap, output_format and metric_depth do not add separate charges.
Best Use Cases
- Depth-conditioned generation — Provide a structural reference for compatible image-generation workflows.
- Relighting and depth of field — Separate foreground and background for lighting, focus and haze effects.
- 3D and point clouds — Use estimated depth with appropriate camera parameters to explore point-cloud reconstruction.
- Measurement and robotics prototyping — Read approximate distances to objects in a photo.
- 2.5D parallax and compositing — Use the depth map as a displacement source or for depth-based masks.
Pro Tips
- Use
pngto avoid lossy compression in downstream depth processing.
- Where available, valid focal-length metadata can help establish the depth scale. Estimated distances may still differ from actual measurements.
- Depth is the distance along the camera's viewing direction, not the straight-line distance from the lens.
- The EXR may contain infinite values, for example in sky regions. Handle non-finite values before further processing.
- Read the EXR file as raw data (for example "Raw" in Nuke or "Non-Color" in Blender).
Notes
imageis required.
- The depth map is returned first in
outputs; withmetric_depthon, the EXR file follows it.
- Output resolution matches the input image resolution.
- In grayscale mode, near surfaces are white and far surfaces are black.
- The visualization is not a direct meter scale; use the optional EXR for estimated metric depth.
- Camera parameters are not included in the returned files. Additional calibration information may be needed for 3D reconstruction.
- Depth estimates and fine boundaries may contain errors; review them for your intended workflow.
Related Models
- Depth Pro 2 Video — Generate depth-map videos from existing footage.
- Depth Anything V3 Image — Relative depth maps with Depth Anything V3.
- Depth Anything Video — Temporally consistent relative depth for videos up to 10 minutes.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Depth Pro 2 Image Metric Depth Estimation API example
The catalog lists POST https://api.opensi.com.ai/api/v3/opensi-ai/depth-pro-2/image for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"image": "https://d5v2vcqcwe9y5.cloudfront.net/image-to-video/251120/6784e7f4b50aebc7e17fe396/b3kkemounkq0.jpg",
"colormap": "grayscale",
"output_format": "png",
"metric_depth": false
}Depth Pro 2 Image Metric Depth Estimation API — Frequently asked questions
What is the Depth Pro 2 Image API?
Depth Pro 2 Image is a OpenSIAI model for image processing, exposed as a REST API on OpenSIAI. Depth Pro 2 Image estimates per-pixel depth from a single image, with grayscale or color visualization and an optional metric depth EXR file for depth-guided image workflows. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Depth Pro 2 Image API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/opensi-ai/depth-pro-2/image.
How much does Depth Pro 2 Image cost per run or per second?
Depth Pro 2 Image starts at $0.01 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Depth Pro 2 Image accept?
Key inputs: image, colormap, metric_depth, output_format. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/opensi-ai/depth-pro-2/image.
How do I get started with the Depth Pro 2 Image API?
Sign up for a free OpenSIAI account to claim starter credits, copy your API key from /accesskey, then call the endpoint shown in the API tab of the playground. The playground also auto-generates a code sample in Python, JavaScript, or cURL for the parameters you've set.
Can I use Depth Pro 2 Image outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (OpenSIAI). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
