Skip to content
Batch editing for product catalogs

AI image editing API

Remove backgrounds, add AI shadows and scenes, relight and resize product photos in one API call. Run it on one image or your whole catalog.
Trusted by leading companies

AI image editing API results by use case

One product photo becomes a clean listing, a styled scene and a ready-to-run ad. See what the same API call produces for delivery menus, online stores, marketing, ads and social posts.
A juicy cheeseburger with lettuce, tomato, and a beef patty on a wooden table, with a kitchen background and stacked white plates nearby.
A juicy cheeseburger with lettuce, tomato, and a beef patty topped with melted cheese, served in a soft, lightly toasted bun.
A cheeseburger with lettuce and tomato on a wooden table by a beach, with blue ocean and sky in the background, partially shaded by palm leaves.
Cheeseburger with lettuce, tomato, and a beef patty on a bun against a red background, with text: "$7.99 Burger Menu Offer."
A cheeseburger with lettuce, tomato, and a juicy beef patty inside a golden-brown bun on a marble surface.
A stainless steel electric kettle on a wooden countertop in a store with various kitchen appliances displayed on the walls and shelves.
Stainless steel electric kettle with a black handle and base.
A stainless steel electric kettle on a wooden counter with a soft background, including a potted plant and a blurred window.
Stainless steel electric kettle with black handle on a blue background. "Sale 20%" text in the corner.
A stainless steel electric kettle with a black handle on a wooden surface, against a blurred green background.
Dark blue pump bottle on a bathroom sink, surrounded by toiletries. A vase with white tulips and a woman in the mirror are in the background.
Dark blue pump bottle with a black dispenser top on a white background.
Blue pump bottle on a reflective surface with a 20% off label in the top right corner; blurred lights in the background.
A dark blue pump bottle on a white surface, surrounded by vibrant orange and red flowers, with the word "PURE" in large white letters at the top.
Blue pump bottle on a bathroom countertop with plants in the background.
Silver Mercedes SUV parked on gravel with a cityscape background; people and trees visible nearby.
White Mercedes-Benz SUV with black wheels, front and side view, isolated on a white background.
White Mercedes-Benz SUV parked on a road, surrounded by lush greenery and mountains at sunset.
White Mercedes SUV with a special deal price of $23,000, set against a blue background.
White Mercedes SUV on a road with overlaid text "New Offer" and "Get In Now," set against a forested mountainous background.
A young woman with curly hair smiles while standing on a city street. She is wearing a white shirt with green trim and jeans.
Smiling young woman with long curly hair wearing a white and green t-shirt and jeans, standing against a plain background.
A smiling young woman with curly hair, wearing a white shirt, framed by pink sparkle graphics, and the words "This Barbie is a mood. Own it now."
A smiling young woman with curly hair, wearing a white shirt with green trim, featured on a Netflix promotional poster for "Anna is Awful," coming soon.
Smiling person with long curly hair wearing a white t-shirt stands in a cobblestone street lined with trees, with the Eiffel Tower in the background.

Every product photo edit in one AI image editing API

Remove backgrounds, generate scenes, add shadows and dress virtual models with the same API key, on one image or thousands. Prefer plain English? Run the same edits from Claude with the Photoroom MCP.

Photoroom MCP

Connect the Photoroom MCP to the LLM where you work an automate your product listing visuals.

Background Removal

The AI background removal API detects complex edges, handles transparency, and delivers clean cutouts at scale - ideal for product catalogs and marketplace listings.

Virtual Model

Place apparel and accessories on AI-generated models that match your brand aesthetic. On-model imagery via the Virtual Model API: no casting, no studio, no production timelines.

Flat Lay

Generate consistent, editorial-quality flat lay product photography at enterprise scale. Maintain visual identity across thousands of SKUs through the Flat Lay API.

Ghost Mannequin

Produce ghost mannequin apparel shots with perfect shape retention through an AI-powered Ghost Mannequin API endpoint. Scale invisible mannequin photography without a studio.

Product Staging

Place your product into realistic lifestyle scenes - held, worn, or displayed - with the natural lighting and composition of a high-end photoshoot.

Edit With AI

Describe any change in plain language and our AI makes it - swap colors, remove or add objects, restage the scene, or shift the camera angle.

Product Beautifier

Enhance low-quality product and food images automatically with the Beautifier API. No retouchers, no studios. Our AI restores detail, corrects color, and improves overall quality at scale.

Add Shadows

Add realistic shadows to the main subject of your image, with complete control over the softness, intensity and position of the shadow.

Generate Backgrounds

Dynamically create new backgrounds with our first-class generative AI, perfectly matching the subject of the original picture.

Relighting

Fix badly lit photos automatically. Our AI rebalances over- and under-exposed images, with modes that keep product colors accurate or optimize for portraits.

Text Removal

Remove watermarks, labels, and real-world signage from your images automatically - choose what goes and what stays.

Expand

Resize any image to any format without cropping. Our AI generates the extra background to match the original, filling every empty pixel seamlessly.

Uncrop

Recover subjects clipped by the frame. Our AI reconstructs the missing parts from the visible portion, automatically.

Ironing

Make every garment look freshly pressed. Our AI smooths creases and wrinkles out of clothing photos automatically - no steamer, no reshoot.

Create Any Image

Generate images from a text description alone - no source photo needed. Describe the scene, pick a format, and get original content back.

Uncertainty Score

Know when a cutout needs a second look. Every response returns a confidence score from 0 to 1, so you can auto-flag ambiguous images for review at scale.

Perspective Correction

Straighten angled shots of flat, rectangular products - cards, books, games - into clean, straight-on views. No generative AI, so hallucinations are impossible by design.

Positioning

Control exactly where the subject sits in the result - scaling, alignment, padding, and margins - so every image in a catalog comes out consistently framed.

Smart Cropping

Reframe images around the subject automatically - prompt it to focus on a specific element, or crop faces out for marketplace compliance.

Upscale

Turn small, low-res images into sharp ones at 4× the size - with a fast mode for volume and a slow mode for maximum quality.

From raw photo to every catalog shot, in one pipeline

Cut out the product, place it in a styled scene, then show it on a model. Set the steps once and the API runs them on every new SKU, from a single photo to a catalog of thousands.
Built for catalogs

What the AI image editing API does for your catalog

Woman in a black sports outfit showcasing green sneakers, standing and sitting on a bench near a tennis court.

Clean listings for every new SKU

New products arrive in every format, background and lighting, and editing each one by hand slows every launch. Set your edits once (background, shadow, padding, size) and the API applies them to every new SKU as it lands, whether that's 50 a month or 5,000. Selency cut editing from 24 hours per batch to seconds, with 80% of images processed automatically.

Woman by a pool wearing Sienna sunglasses in two poses. Text: "Summer Collection" and "Sienna Sunglasses 4 colors."

Ad creatives straight from your product feed

Every channel wants a different size, background and message, and briefing each variant to a designer doesn't scale. Pull products from your feed, then generate on-brand scenes and resize for Meta, Google and marketplaces in the same pipeline. Smartly cut catalog editing from 30 hours to under 10, and its client Emma saw a 73% higher click-through rate.

Online furniture sale showing discounted prices for a green sofa, wooden shelf, and green desk lamp, each with a 30% reduction.

Two ways to buy, one API

Choose the plan that fits how you work. Self-serve suits teams that want to start straight away: the Plus API plan is $0.10 per image, with 1,000 free sandbox calls a month for testing. Enterprise suits large catalogs that need more: higher rate limits, a 99.9% uptime target, Visual QA on every output, and billing only for images that pass. Both run on the same API.

What AI image editing did for these catalogs

4x

faster market rollouts

89%

lower image processing costs

56%

higher conversion on listings

236%

increase in average order value

Exclusive to Enterprise plans

Catalog-scale AI editing, checked and guaranteed

At catalog scale, every image needs checking. Visual QA scores each output, Visual Agents fix what falls short, and you only pay for images that pass. Plus product video, higher rate limits and 99.9% uptime.
Collage of a beige duffel bag with green straps, showing its exterior, spacious interior with pockets, and a hand holding it.
Visual Agents
Visual Agents execute the perfect workflow for your use case. They analyze every input, generate and edit, score the output, retry until it passes. Every visual runs the same loop and only the ones that pass reach your catalog.
Three images of a woman in a yellow blazer, each with a completion score: 83%, 92%, and 100% labeled as "Best fidelity."
Visual QA
Even the best AI models get it wrong, so Visual QA scores every output for fidelity, catches the misses, and corrects the details before they reach your customers.
Collage of a woman in a white halter dress, a bowl of vibrant poke, and a woman holding a mustard handbag with hoop earrings.
Enterprise Guarantee
Pay only for the outputs that pass. Set your product-fidelity criteria upfront. Every output is checked against your brief by our proprietary fidelity model. Anything that misses is regenerated before it reaches your team.
Four fashion items with play icons: a brown handbag, sage green mule, person in a gray shirt and cardigan, and white sneakers with orange accents.
Image to Video API
The Image to Video API turns static product photography into short-form video automatically. Submit a product image and receive a polished video with natural camera motion, animation, or configured effects.
Start building

Edit your first product photo in minutes

  • Test every edit free in the sandbox, 1,000 calls a month

  • Run edits in parallel across your catalog, up to 60 images a minute by default

  • Need more volume? Enterprise plans raise the limit and add quality guarantees

Frequently asked questions

What is the Photoroom AI Image Editing API?

The Image Editing API edits product photos with AI in a single request. Send an image and the edits you want: background removal, AI backgrounds, shadows, relighting, resizing and more. The edited image comes straight back. It's built for ecommerce teams editing anything from one photo to a full catalog.

Can I combine several edits in one call?

Yes. One call can remove the background, add an AI shadow, set the padding, resize and export in the format you need. You set each edit as a parameter, so the same call works the same way on every image in your catalog.

How do I make my first call?

Get an API key from the dashboard, then send a POST request with your image. This example creates a packshot on white with a soft shadow:

curl --request POST \
  --url https://image-api.photoroom.com/v2/edit \
  --header "x-api-key: $PHOTOROOM_API_KEY" \
  --header "pr-ai-shadows-model-version: 2026-04-15" \
  --form imageFile=@/absolute/path/to/image.jpg \
  --form background.color=FFFFFF \
  --form padding=0.15 \
  --form shadow.mode=ai.auto-with-overrides \
  --form outputSize=1600x1600 \
  --form export.format=jpeg \
  --output result.jpg

You can also build the call visually in the API Playground and copy the generated code.

Can I process a whole catalog in batches?

Yes, by running calls in parallel. The API edits one image per call and returns the result straight away. To process a catalog, send many calls at once from a worker pool. The default limit is 60 images a minute. Enterprise plans raise that limit for larger catalogs.

How much does it cost, and can I test it for free?

The Image Editing API is part of the Plus API plan, at $0.10 per image. To test for free, use sandbox mode: add sandbox_ to the start of your API key. You get up to 1,000 free calls a month, and results are watermarked. See API pricing.

Which image formats are supported?

Input: PNG, JPEG or WEBP, up to 30 MB and 5,000 px on the longest side. Larger images are scaled down. Output: PNG by default, or JPEG, WEBP or AVIF. JPEG can't keep transparency, so set a background colour when you export to JPEG. Read the API documentation for more details.

Can I edit an image from a URL instead of uploading it?

Yes. Use the GET endpoint and pass the image's public URL as imageUrl. It takes the same parameters as the POST endpoint. Use POST for local files and GET for images already hosted online.

How do I know an edit is good enough to publish?

Every response includes an uncertainty score (x-uncertainty-score) from 0 (confident) to 1 (unsure). Use it to flag images for review automatically. Enterprise plans add Visual QA, which scores every output against your quality standard, and you only pay for images that pass.

Can I use the Image Editing API from Claude?

Yes. Connect the Photoroom MCP in Claude under Settings > Connectors > Add custom connector, using https://mcp.photoroom.com/mcp. Then ask for edits in plain English. It works on paid Claude plans in Claude, Cowork and Claude Code, uses the same credits as the API, and edits up to 20 images per chat.

What should I do if I need help with the API?

Check the API documentation and the troubleshooting page, or ask our engineers in the API community. For billing questions or anything sensitive, message Photoroom directly in the community.

Start selling at first sight

Get listing-ready product visuals in seconds.