Measure how far away everything is
On this page
What it does #
Building block image Queued
Give it a photograph and get back a picture of its depth: what is near is bright, what is far is dark. That is what lets a still photograph be moved through like a filmed shot instead of slid around like a postcard.
- Alias
oneup/image-depth- How it runs
- Queued — Runs in the background — you get a link when it is ready.
- What it takes and what it gives
- Image → Image
Built for #
- Camera moves through a listing photo
- Depth-aware parallax in a slideshow
- Separating a subject from its background
Not for #
- A picture to show as it is: the result is a depth map, not a photo.
- Video: it measures one still photograph.
What this means for you #
- One credit, and only the first time — the same photograph is never measured twice.
- It measures; it never repaints. No pixel of the photograph is changed or invented.
- A failed measurement costs nothing.
Sample output #
No sample is published yet. When there is one, it will be a real result OneUpAI made, shown here with the request that made it.
What you send, what you get back #
You get back #
One gray picture the same size as the photograph, where brightness is nearness.
What you can set #
| Setting | Type and limits | What it means |
|---|---|---|
image_url required | text, 1–2048 characters | The photograph to measure: an uploaded file_url from /v1/uploads or an external image URL (https). |
The request #
The same request as an API call, with this capability's example input:
curl -X POST https://api.oneupai.com/v1/queue/submit/oneup/image-depth \
-H "Authorization: Bearer $ONEUP_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://media.oneupai.com/u/…/uploads/oneup_upload_…"
}'What comes back #
- How it comes back
- a file, on a link
- File type
- image/png
- Resolution
- not recorded yet
- Each link works for
- 1 hour; read the result again for a fresh link
The response #
An example of the response, as the API reference shows it (placeholders, not a real run):
{
"ticket": "oneup_req_SuaNFGGC0b4MGIeOrp78KFRXfR",
"status": "QUEUED"
}The request answers at once with a ticket. Poll GET /v1/queue/status/{ticket} until it says COMPLETED, then read GET /v1/queue/result/{ticket}: its full body follows the output schema under Schemas.
How long it takes #
Not yet measured: a time shows here once 50 runs have finished in 30 days.
What it costs #
1 credit
≈ $0.01 at the Concierge rate
For $1 you can run this about 81–96 times, depending on your plan.
Worked prices (Concierge rate) #
- one photograph: 1 credit, about $0.01
- 20 photographs of one listing: 20 credits, about $0.21
Limits #
- Each uploaded file: up to 2 GB
Use it with #
Natural next steps and companions:
- Rendered short video
oneup/render-timeline— Cut your photos and clips into a finished short — cuts, punch-ins, captions, seamless transitions — the same result every time.
Schemas #
Show input schema (JSON)
{
"type": "object",
"required": [
"image_url"
],
"properties": {
"image_url": {
"type": "string",
"maxLength": 2048,
"minLength": 1,
"description": "The photograph to measure: an uploaded file_url from /v1/uploads or an external image URL (https)."
}
},
"additionalProperties": false
}Show output schema (JSON)
{
"type": "object",
"required": [
"assets"
],
"properties": {
"assets": {
"type": "array",
"items": {
"type": "object",
"required": [
"asset_id",
"content_type",
"size_bytes",
"url"
],
"properties": {
"url": {
"type": "string"
},
"asset_id": {
"type": "string"
},
"size_bytes": {
"type": "integer",
"minimum": 1
},
"content_type": {
"type": "string",
"pattern": "^image/"
}
},
"additionalProperties": true
},
"maxItems": 1,
"minItems": 1
}
},
"additionalProperties": true
}Limits, as GET /v1/models gives them
{
"upload_bytes_max": 2000000000
}What comes back, as GET /v1/models gives it
{
"type": "image/png",
"delivery": "file",
"resolution": null,
"link_expires_in_s": 3600
}Previously called #
oneup/depth-map— works until Jan 15, 2027
Changelog #
- Version 1 (Oct 8, 2026): New name; previously oneup/depth-map. The same input, output and price.
- Version 1 (Sep 19, 2026): First version.
Other image capabilities #
Edit an image #
Change a photo by describing the change — swap the background, restyle, combine two references — no masks or layers.
13 credits (first megapixel) + 4 per additional
Quick image #
Turn a short written description into a picture, fast.
1 credit per megapixel
Premium image #
Our highest-quality picture from a written description — for hero shots and covers.
7 credits (first megapixel) + 4 per additional
Make a detailed picture #
Describe a scene and get back a detailed, natural-looking picture at the size of your frame. Slower than the fast picture model, and better on faces, textures and small detail.
4 credits
Sharpen a small picture #
Give it a picture that is too small for the screen it is going on and get back the same picture at twice the size, sharpened — a listing photo, a logo, an old scan.
3 credits