{"uid":"cap_mikdWM5H5lgypKJn8Q5vX","slug":"remove-image-background-46ca9fda","name":"Remove Image Background","description":"Remove Image Background: Remove the background from any image. Pass a URL or base64 data.","url":"https://api.agentwonderland.com/x402/endpoints/remove-image-background","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"image":{"type":"string","title":"Image","description":"Image URL or base64-encoded image data","json_schema_extra":{"example":"https://example.com/photo.jpg"}},"bgColor":{"type":"string","title":"Bgcolor","default":"transparent","description":"Background color: transparent, white, or hex code"},"outputFormat":{"type":"string","title":"Outputformat","default":"png","description":"Output format: png or webp"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eKVIcPSODml9ymUHKYE6h","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Removes the background from an image provided as a URL or base64 data, returning a PNG or WebP with a transparent, white, or custom-colored background.","exampleAgentPrompt":"Can you remove the background from this product photo — https://example.com/shoe.jpg — and give me a transparent PNG back?","exampleUseCases":[{"title":"E-commerce product photo cleanup","prompt":"I have a product image at https://shop.example.com/jacket.jpg — can you remove the background and return a transparent PNG so I can drop it onto our website template?"},{"title":"Logo on white background for marketing","prompt":"Take this logo image (https://mybrand.com/logo.png), remove the background, and set it to white so I can use it in a Word document — output as PNG please."},{"title":"Profile photo cutout for presentation","prompt":"Here's a headshot in base64 — can you cut out the background and give me a transparent WebP so I can overlay it on our slide deck background?"}],"resultDescription":"Returns a processed image file (PNG or WebP) with the background removed and replaced by the specified color (transparent by default, white, or a hex color code). The agent receives the image binary or a URL/base64 of the resulting image ready for use in design, e-commerce, or publishing workflows.","failureModes":["Invalid or inaccessible image URL returns an error","Malformed base64 data causes a decoding failure","Unsupported image format may result in processing error","Subject detection failure on images with complex or edge-blending backgrounds","Network timeout if the source URL is slow to respond","Invalid hex color code for bgColor may fall back to default or return an error"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call background removal on a single image passed by URL or base64, with control over the output format (PNG or WebP) and background fill color. It is ideal for agent workflows processing product photos, headshots, or logos without requiring a subscription to a dedicated image editing SaaS.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:48:05.280Z","isFirstParty":false}