Background remover API
Background remover API for product photos
Send up to ten product photos in one request and get clean cut-outs back: on transparency for your own layouts, or on white or a brand color with a soft contact shadow, ready for the listing.
Test keys are free and need no pack.
- Only the outline is drawn: the product's pixels stay your photo's own.
- Transparent PNG, white, or any hex color, with an optional shadow.
- Up to 10 photos per request, one credit each.


{
"background": "white",
"shadow": true
}One request
Every request is asynchronous: the request returns a job in about two seconds, the images follow in 20 to 90 seconds by webhook or by polling.
curl https://api.garmo.studio/v1/edit/remove-background \
-H "Authorization: Bearer $GARMO_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://shop.example/products/bag-77.jpg",
"background": "white",
"shadow": true
}'const r = await fetch("https://api.garmo.studio/v1/edit/remove-background", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.GARMO_API_KEY}`,
"Idempotency-Key": "order-123-remove-background",
"Content-Type": "application/json",
},
body: JSON.stringify({"image_url": "https://shop.example/products/bag-77.jpg", "background": "white", "shadow": true}),
});
const job = await r.json();
console.log(job.id, job.status);import os, requests
r = requests.post(
"https://api.garmo.studio/v1/edit/remove-background",
headers={"Authorization": f"Bearer {os.environ['GARMO_API_KEY']}", "Idempotency-Key": "order-123-remove-background"},
json={
"image_url": "https://shop.example/products/bag-77.jpg",
"background": "white",
"shadow": True,
},
)
job = r.json()
print(job["id"], job["status"])<?php
$ch = curl_init("https://api.garmo.studio/v1/edit/remove-background");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode(["image_url" => "https://shop.example/products/bag-77.jpg", "background" => "white", "shadow" => true]),
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("GARMO_API_KEY"), "Idempotency-Key: order-123-remove-background", "Content-Type: application/json"],
]);
$job = json_decode(curl_exec($ch), true);
echo $job["id"], " ", $job["status"];require "net/http"
require "json"
uri = URI("https://api.garmo.studio/v1/edit/remove-background")
req = Net::HTTP::Post.new(uri)
req["Authorization"] = "Bearer #{ENV.fetch("GARMO_API_KEY")}"
req["Idempotency-Key"] = "order-123-remove-background"
req["Content-Type"] = "application/json"
req.body = <<~'JSON'
{
"image_url": "https://shop.example/products/bag-77.jpg",
"background": "white",
"shadow": true
}
JSON
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true) { |http| http.request(req) }
job = JSON.parse(res.body)
puts job["id"], job["status"]package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader(`{
"image_url": "https://shop.example/products/bag-77.jpg",
"background": "white",
"shadow": true
}`)
req, _ := http.NewRequest("POST", "https://api.garmo.studio/v1/edit/remove-background", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("GARMO_API_KEY"))
req.Header.Set("Idempotency-Key", "order-123-remove-background")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Garmo {
public static void main(String[] args) throws Exception {
String body = """
{
"image_url": "https://shop.example/products/bag-77.jpg",
"background": "white",
"shadow": true
}
""";
HttpRequest req = HttpRequest.newBuilder(URI.create("https://api.garmo.studio/v1/edit/remove-background"))
.header("Authorization", "Bearer " + System.getenv("GARMO_API_KEY"))
.header("Idempotency-Key", "order-123-remove-background")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> res = HttpClient.newHttpClient().send(req, HttpResponse.BodyHandlers.ofString());
System.out.println(res.statusCode() + " " + res.body());
}
}{
"id": "job_8Kq2xV7mPz4LtR9wNc3B",
"object": "job",
"tool": "remove-background",
"status": "completed",
"livemode": true,
"outputs": [
{
"id": "out_1",
"status": "succeeded",
"label": "White · shadow",
"url": "https://….r2.cloudflarestorage.com/renders/2026/11/8f3c…0.webp?X-Amz-Signature=…",
"url_expires_at": "2026-11-20T14:00:00Z"
}
],
"credits_charged": 1,
"credits_refunded": 0,
"metadata": {
"sku": "DR-123"
},
"created_at": "2026-11-19T14:02:11Z",
"completed_at": "2026-11-19T14:02:58Z"
}Parameters
background | What the cut-out sits on. |
color_hex | The color when background is "color", like "#efe8dc". |
shadow | Adds a soft contact shadow under the subject (white and color backgrounds). |
Cost
1 credit per photo
1 API credit = 1 image. Failed and canceled images are refunded automatically.
API pricingWhat people build with it
Catalog clean-up
Bring every product photo onto the same white before a new collection goes live.
Your own layouts
Transparent cut-outs for banners, lookbooks and social posts.
Marketplace rules
White backgrounds where a marketplace asks for them, without a studio.
Questions, answered.
What developers ask before connecting Garmo to a shop or a workflow.
Still stuck? Email usWhat file do I get?
A transparent background returns a PNG with an alpha channel. White and color backgrounds return the same cut-out laid on that background.
Does it work on clothing on a model?
Yes. It separates the subject, product or person, from the background. For a garment on its own with its worn shape, use the ghost mannequin endpoint.
How many photos per request?
Up to ten, in images[]. Each is cut out on its own and costs one credit.
Other edits in the API
POST /generateClothes color changer APIEvery colorway from one photo, to the exact hex.POST /edit/colorPose changer APIThe back view and the walking shot from one photo.POST /edit/poseModel swap APIThe same outfit and pose on another model.POST /edit/model-swapGhost mannequin APIThe invisible-mannequin shot, without the mannequin.POST /edit/ghost-mannequinBackground changer APIKeep the subject, change the place, match the light.POST /edit/backgroundImage upscaler API2K or 4K product photos with real material detail.POST /edit/upscaleGet an API key
Test keys are free and need no pack.




