Edit foreground and background independently
Background Separation API
Separate subject from background and get both layers back as independent outputs. Edit, composite, or replace foreground and background separately with one API call.
Start with $10 in free GPU credits on signup — no commitment


Trusted by teams shipping AI-powered products
How it works
No pipeline to build, no models to configure.
Send your image
Pull a source image with a clear subject and background. JPEG, PNG, or WebP up to 4096x4096 pixels.
AI separates the layers
Runflow's pipeline extracts the subject with an alpha channel and generates a fully inpainted background in parallel — both layers produced in one pass.
Get both outputs
Receive the foreground (transparent PNG with alpha) and the background (inpainted to fill the subject's silhouette). Each call is $0.20/image and delivers both.
Subject and background, both returned
One API call returns two production-ready outputs — a clean subject with alpha channel, and a fully inpainted background with the subject erased. No more running two APIs or stitching outputs together.
Edit foreground and background independently
Once separated, each layer is its own asset. Change the background without touching the subject. Retouch the subject without re-rendering the scene. Composite both into new compositions with precise, layer-level control.
Production-grade edge handling
Handles the hard edges automatically — hair, fur, fabric, transparent objects, complex outlines. The subject's alpha channel preserves fine details, and the background inpainting fills around them with scene-matched content.
Built for compositing workflows at scale
Designed for teams building layer-aware pipelines — ad variation generators, virtual try-on, AR products, video compositing. Integrate as a single step; downstream systems work with both layers independently.
Background separation for every compositing workflow
From ad campaign variations to AR try-on. Two usable layers per call, ready for independent editing.
Ad Creative & Marketing Teams
Generate campaign variations by swapping backgrounds independently of the subject. One shoot, unlimited creative across markets, placements, and seasons. Think: Meta Ads, Google Shopping, TikTok Ads.
Ecommerce & Virtual Try-On
Power virtual try-on and AR products. Separated layers let you place users into any scene, or scene elements into any user photo. Think: Amazon Try, IKEA Place, Warby Parker try-on.
Photo Editing Apps
Add advanced compositing features to your photo editor. Let users edit subject and background separately with one API call — no manual masking required. Think: Photoroom, Canva, Facetune.
Video & Motion Graphics Pipelines
Per-frame subject and background separation for compositing, VFX, and motion design. Batch-process entire sequences with consistent separation across frames.
AI Image Platforms
Layer-aware post-processing before delivery. Subject and background can be polished independently — different models for each — giving more control over final output quality.
Virtual Staging & Real Estate
Separate occupants or staging props from room backgrounds for independent editing. Stage empty rooms or de-stage furnished ones without losing either layer. Think: Zillow, Airbnb, Compass.
Working with Runflow changed how we build. Our developers can integrate a new AI feature by calling an endpoint — they don’t need machine learning expertise, infrastructure knowledge, or DevOps skills. We just focus on making the best product, and Runflow handles everything underneath.
Simple, per-image pricing
One price per separation. Both layers included. No GPU fees, no infrastructure to manage.
Fixed pricing for background separation.
One API call returns two production-ready layers. No setup fees, no surcharges, no per-layer add-ons.
Build vs. buy
Your data stays yours
Images are processed in isolated environments with automatic cleanup. Zero data retention by default.
SOC 2 Type II compliant.
Frequently asked questions
Edit subject and background. Independently. At scale.
One API call. $0.20/image. Two outputs per call — foreground with alpha, background inpainted. Start with $10 in free GPU credits on signup.
First-in-line access: onboarding slots limited this month