Generate a depth map of an image
depth_mapGenerate a depth map of an image. 1 credit per image, flat. Pass a public URL, a URL from create_upload, or (small images only, under about 2.25 MB) a base64 data URI. Charges credits from the connected Upsampler account; a failed job is refunded automatically. Result URLs expire after 3 hours (get_job reissues fresh ones) and jobs are deleted after 7 days.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"imageUrl": "<imageUrl>"
},
"name": "depth_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Wait up to about 50 seconds for the result before returning (default true). If the job is still running, call get_job with the returned id. | |
| imageUrl | Yes | URL of the image to process, or the image encoded as a base64 data URI. Must be a publicly accessible URL (http/https), a URL from POST /uploads, or a base64 data URI. Supported formats are png, jpeg, jpg, and webp. A base64 image must be under 2.25 MB, since it travels inside the capped request body; upload anything larger. Keep the file at a URL of your own unchanged until the job completes; a file that changes after submission fails the job with a refund. |