Introduction
Submit one JPEG, PNG or WebP image URL. Choose a color map and output image format, and optionally enable metric depth to return a second single-channel 32-bit float OpenEXR file.
| Field | Value |
|---|---|
| Input | Image |
| Output | Image |
| Publisher | Apple |
| Modality | Image |
| Family identifier | depth-pro/2 |
| Input media | One still image (JPEG, PNG or WebP) |
| Color maps | Grayscale (default), Inferno, Turbo |
| Image output formats | PNG (default), JPEG, WebP |
| Metric depth output | Optional single-channel 32-bit float OpenEXR (distance in meters) |
| Output resolution | Matches input image dimensions |
| Billing | Flat rate per completed image; failed runs are not billed |
Key features & highlights
Grayscale maps built for generation pipelines
The default grayscale mode places near surfaces in bright white and distant background planes in deep black. Hair strands, fingers and foreground silhouettes stay cleanly separated so downstream depth-guided generators follow the real geometry of your frame.
Optional 32-bit float OpenEXR alongside the image
Turn on metric depth to receive a second single-channel 32-bit float OpenEXR file at the exact resolution of the input photo. Each pixel encodes real-world distance in meters, while infinitely distant regions such as open sky are stored as infinity for VFX and 3D compositing.
Inferno and turbo palettes for quick depth checks
Switch the color map to inferno or turbo when reviewing scene layout, foreground-background separation or camera focus planes by eye. The sample portrait at 864×1152 renders smooth tonal falloff across the subject and studio backdrop with zero extra charge.
Request parameters
| Parameter | Required | Description |
|---|---|---|
image_url | Yes | Required JPEG, PNG or WebP image URL to estimate depth for. Output dimensions match the input image. at least 1 characters |
colormap | No | Depth rendering palette: grayscale (default, near = white, far = black for depth-guided generation), inferno or turbo (color visualizations). |
output_format | No | Image file format for the rendered depth map: png (default), jpeg or webp. Does not affect the flat rate. |
metric_depth | No | Off by default. When true, returns a second output file: a single-channel 32-bit float OpenEXR at input resolution storing depth in meters (sky = infinity), at no extra charge. Default: |
Pricing
$0.012 / image
Billed at one flat rate per completed image regardless of color map, output format or metric EXR output. Failed requests are not billed.
Use cases
Depth guidance for image generation
Extract a clean grayscale depth map from a reference photograph before feeding it into a depth-conditioned generator or ControlNet workflow. Sharp boundaries around hands, props and clothing folds keep new renders anchored to the original staging.
VFX compositing and synthetic lens blur
Enable metric depth to export a 32-bit float OpenEXR depth pass alongside the preview image. Load the EXR directly into Nuke, Blender or After Effects for physically scaled Z-defocus, atmospheric fog and 3D card placement.
Spatial layout and 2.5D parallax
Separate foreground figures from midground furniture and distant architecture in a single API call. Use the grayscale map to drive displacement meshes, parallax pan animations or stereo pair synthesis.
Unfiltered batch depth extraction
Process fashion, editorial and adult studio photography through one consistent endpoint without adding prompts or working around automatic image rejections.
Prompt guide & pro tips
Provide one source photograph
Upload or link a clear JPEG, PNG or WebP image. Depth Pro 2 reads the pixels directly and requires no text prompt or camera intrinsics.
Select color map and image format
Leave grayscale selected for depth-guided generation pipelines, or choose inferno or turbo for visual checks. Pick PNG, JPEG or WebP for the rendered map.
Enable metric depth when you need EXR
Toggle metric depth on whenever your pipeline needs absolute meter values. The task returns both the rendered depth image and a matching 32-bit float OpenEXR file.
Inspect edges and download outputs
Check fine contours around hair, glasses and thin limbs, then pull the image and optional EXR directly into your compositing or generation tool.
Overview
Apple Depth Pro 2 turns a single still photograph into a sharp depth map at the exact input resolution. It needs no text prompt or camera intrinsics. Use grayscale for depth-conditioned generation and ControlNet pipelines, or inferno and turbo for visual checks. Turn on metric_depth to also download a single-channel 32-bit float OpenEXR file storing absolute distance in meters.
Parameters
| Parameter | Type | Default | Notes |
|---|---|---|---|
image_url | string (URI) | Required | JPEG, PNG or WebP source photo |
colormap | string | grayscale | grayscale, inferno, or turbo |
output_format | string | png | png, jpeg, or webp for the rendered depth image |
metric_depth | boolean | false | When true, appends a 32-bit float OpenEXR metric depth file in meters |
Example request
{
"image_url": "https://cdn.spicyapi.ai/models/examples/microsoft-mai-image-2-7/c1b0cabb813929f8.webp",
"colormap": "grayscale",
"output_format": "png",
"metric_depth": true
}
Output files and billing
When metric_depth is false, the completed task returns one rendered depth image in your requested output_format. When metric_depth is true, the task returns two files: the rendered depth image first, followed by a single-channel 32-bit float OpenEXR file at the exact input pixel resolution where infinitely distant regions such as sky are stored as infinity.
Every completed image run is billed at one flat rate regardless of colormap, output_format, or metric_depth. Failed requests are not billed.
API quick start
# Generate the idempotency key once; reuse it when retrying after a lost response.
export SPICY_IDEMPOTENCY_KEY="${SPICY_IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.spicyapi.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SPICY_IDEMPOTENCY_KEY" \
-d '{
"model": "apple/depth-pro-2/edit",
"input": {
"colormap": "grayscale",
"image_url": "https://example.com/reference.png",
"output_format": "png"
}
}'
# Copy data.taskId from the response into TASK_ID, then poll the status.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.spicyapi.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"
See the API reference for authentication, the complete schema, polling, and error handling.



