Auto-enhance, perspective correction, sky replacement, and blurring — endpoints for cleaning up real estate photos.
The image enhancement endpoints fix common listing photo issues: dull lighting, tilted perspective, gray skies, and privacy-sensitive content. Each accepts an image URL and returns the processed result.
Auto-enhance
POST/api/enhance
Automatically improves lighting, color balance, sharpness, and contrast. Use this as the default cleanup pass on raw listing photos.
Response time: ~10 seconds per image. The response can include multiple URLs when the model produces variants.
Enhance + correct perspective
POST/api/enhance_and_correct_perspective
Same as /api/enhance but with an upstream perspective-warp pass that straightens vertical lines. Use it when listing photos were shot with a phone tilted up or down.
When true, the pipeline preserves the input's framing, aspect ratio, and resolution exactly (no edge crop). Designed for verification verticals where the output must legally represent the captured photo.
Default:false
Response shape: same as /api/enhance (array). Response time: ~15 seconds per image.
Sky replacement
POST/api/sky_blue
Replace a gray, overcast, or washed-out sky with a clean blue one. Only affects sky pixels — the rest of the image is untouched.