Depth → Image (ControlNet)

Upload a photo. We estimate its depth map (MiDaS) and use that 3D structure to control a generated image. Keeps the spatial layout while changing everything else.

We estimate a MiDaS depth map from this. Images with clear foreground/background separation work best.
Looser 0.7 Stricter
~1,200 tokens (SDXL × 1.2 ControlNet)
Result

Depth to Image FAQ

Upload a reference image. The AI computes a depth map (foreground vs. background, what is closer vs. farther from the camera) and uses that 3D layout as a constraint while rendering a brand-new image in any style or content you describe.

Depth preserves SCENE GEOMETRY (the room, the camera angle, the relative distances). Canny preserves OUTLINE. Pose preserves BODY POSITION. Use depth when the spatial composition matters: e.g., restyling a product shot keeps the product in the same place even if you swap the background.

MiDaS (Intel ISL): a monocular depth estimator. It looks at a single 2D image and predicts per-pixel depth, no actual 3D camera or LiDAR needed. The depth map becomes the SDXL Depth ControlNet input.

Anything with clear foreground/background separation. Indoor scenes, product shots, outdoor landscapes, room interiors all work. Flat compositions (e.g., a graphic poster) yield uninteresting depth maps; depth control is most useful when the source has 3D structure.

Yes. ~1,200 tokens per render (1,000 base + 20% ControlNet surcharge). Signed-in users get 5K free daily: about 4 depth-controlled renders per day at the free tier.

Indirectly: the depth map keeps the geometry, the prompt controls the lighting ("at sunset", "under harsh studio lights", "by candlelight"). Output keeps the spatial layout, swaps the lighting cues. Great for "same room, different time of day" effects.

img2img re-paints over the input directly: colors, edges, AND geometry. Depth-to-image throws away the colors and edges, keeps just the geometry. Same composition, totally fresh content. img2img tends to be subtle; depth lets you radically swap the subject.

Yes: ControlNet strength slider. Default 0.7. 1.0 = strict adherence (output looks like a depth-mapped re-render); 0.4 = loose (more creative variation). Tune per scene.

512×512 default. Up to 1024×1024 on standard SDXL aspect ratios. Larger sizes use more VRAM + tokens.

Today only the final rendered image is returned. The depth map is computed on the GPU + discarded. If you want to expose the raw depth output as a separate download we can wire that. File an idea via /contact/.

Processed immediately, depth-extracted, then discarded. Only your prompt + final render survive on /account/?tab=history. Never used for training. /privacy/ for the full policy.

Yes, POST multipart to /v1/image/generate/ with model=sdxl, prompt, control_image (file), control_type=depth. Bearer auth, 10K free tokens/month. Curl at /api/.

Love Free.ai? Tell your friends!

Want more? Sign up free: 30,000 tokens/day Sign Up Free

Rate this page