{"uid":"cap_Ih3rAzJM961nVB3r8BVJ-","slug":"three-ws-background-removal-pipeline-rembg-29a448c2","name":"three.ws Background Removal Pipeline (rembg)","description":"Make a 3D AI agent from a selfie in 60 seconds. Drop one HTML tag to embed it on any website. Agents think on IBM watsonx.ai (Granite); optionally charge per chat with built-in micropayments.","url":"https://three.ws/api/x402/pipeline-rembg?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["rmbg2","birefnet","u2net","isnet","u2net_human_seg","silueta"],"type":"string","default":"rmbg2","description":"Segmentation model. rmbg2 (default, general, ~1s), birefnet (BiRefNet, cleanest hair and thin edges, ~6s), u2net_human_seg (people), isnet, u2net, silueta."},"image_url":{"type":"string","format":"uri","description":"Public HTTPS URL of the source image (PNG, JPEG, WEBP, or GIF)."}}},"responseSchema":{"type":"json","example":{"bytes":284112,"model":"rmbg2","stage":"rembg","input_url":"https://three.ws/avatars/thumbs/default.png","persisted":true,"output_url":"https://three.ws/cdn/x402-pipeline/rembg/abc123.png"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jVMj-IX5yH-jn_L7NlZTf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Removes the background from an image at a given URL using a selectable segmentation model, returning a transparent PNG persisted to CDN.","exampleAgentPrompt":"Remove the background from this photo — https://example.com/my-headshot.jpg — and use the birefnet model for the cleanest hair and edge detail.","exampleUseCases":[{"title":"Product photo background removal","prompt":"Strip the background from this product image at https://mystore.com/images/sneaker.jpg and give me a transparent PNG — use the rmbg2 model for speed."},{"title":"Portrait cutout for 3D avatar","prompt":"Cut out the person in this portrait photo https://cdn.example.com/portrait.jpg using the u2net_human_seg model so I can use it for an avatar."},{"title":"High-quality hair segmentation for headshot","prompt":"Remove the background from https://photos.example.com/team-headshot.jpg using birefnet — I need really clean edges around the hair for a website banner."}],"resultDescription":"A JSON object containing the output CDN URL of the background-removed transparent PNG, the segmentation model used, the byte size of the output, the original input URL, the pipeline stage name ('rembg'), and a boolean confirming the result was persisted to CDN.","failureModes":["Image URL is not publicly accessible or returns a non-200 status — endpoint cannot fetch the source","Unsupported image format (e.g. BMP, TIFF) — only PNG, JPEG, WEBP, GIF are supported","Model processing timeout for slow models like birefnet on very large images","Invalid or malformed URI in image_url field — request rejected with validation error","Payment not fulfilled — x402 micropayment of $0.01 USDC required per call"],"whenToPreferThis":"Choose this endpoint when you need fast, API-driven background removal with selectable segmentation models (including specialist options like u2net_human_seg for people or birefnet for fine hair detail), automatic CDN persistence of results, and per-call micropayment pricing at $0.01 USDC — especially when building pipelines for 3D avatar creation or product photo workflows on three.ws.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:47:50.766Z","isFirstParty":false,"canonicalSlug":"three-ws-background-removal-pipeline-rembg-29a448c2"}