{"uid":"cap_9kv7H8zyvE0QJlzylYmAK","slug":"rengi-forge-sprite-background-remover-06843637","name":"Rengi Forge: Sprite Background Remover","description":"Sprite tools: Cut a sprite, prop or character out of its background: exact keying for one-color backgrounds (text and holes too), AI segmentation for busy ones; clean edges with no halo, trimmed, with a pivot. AI mode handles one main subject, not text on photos. Full schema: https://rengi.dev/v1/sprite-tools/schema","url":"https://rengi.dev/v1/sprite-tools/remove-bg?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"keep":{"enum":["auto","main","all"],"type":"string","default":"auto","description":"main: only the main subject and what touches it; all: everything that is not background. auto: all for flat backgrounds, main after AI."},"mode":{"enum":["auto","flat","ai"],"type":"string","default":"auto","description":"auto: flat key when the border is one color, AI segmentation otherwise."},"trim":{"type":"boolean","default":true},"image":{"type":"string","description":"Base64 PNG, JPEG or WebP."},"pivot":{"enum":["bottom","center"],"type":"string","default":"bottom"},"padding":{"type":"integer","default":2,"maximum":256,"minimum":0},"imageUrl":{"type":"string","format":"uri"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wlmJaLDz8sMh_NitkSjfF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","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 a sprite, prop, or character image using either exact color keying for flat backgrounds or AI segmentation for complex ones, returning a clean trimmed PNG with pivot metadata.","exampleAgentPrompt":"Remove the background from this character sprite — it's on a white background, so use flat keying mode, keep only the main subject, trim it tight, and set the pivot to bottom. Here's the image URL: https://example.com/hero.png","exampleUseCases":[{"title":"Game character cutout for Unity","prompt":"Cut this game character out of its solid blue background — use flat mode, keep the main subject only, trim it, and set the pivot to bottom so it sits on the ground correctly. Image is at https://assets.mygame.com/hero_idle.png"},{"title":"AI segmentation for busy scene photo","prompt":"Remove the background from this photo of a treasure chest prop — the background is complicated so use AI mode, keep just the main subject, add 4 pixels of padding, and trim it. Here's the base64 image data: [base64string]"},{"title":"Prop sheet cutout preserving all elements","prompt":"I've got a sprite of multiple props on a white background — remove the background using flat keying, but keep all elements not just the main subject, trim it, and center the pivot. The image URL is https://cdn.mygame.com/props_sheet.png"}],"resultDescription":"A background-removed, edge-cleaned PNG with no halo artifacts, optionally trimmed to tight bounds, with a specified pivot point (bottom or center) and configurable padding. AI mode isolates the main subject; flat mode keys out the border color including through text and holes.","failureModes":["Image has a multicolor/gradient background but flat mode is selected — result will be incomplete removal","AI mode struggles with images containing multiple equal-prominence subjects","Input image exceeds supported size or format constraints","Invalid base64 encoding causes a parse error","Image URL is inaccessible or returns a non-image content type","Subject has very similar color to background causing bleed-through in flat mode"],"whenToPreferThis":"Choose this endpoint when you need game-ready sprite cutouts with clean edges, proper pivot metadata, and trim — especially when integrating into a game asset pipeline for Unity, Godot, or similar engines. It excels over generic background-removal APIs because it handles both exact flat-color keying (preserving text and holes) and AI segmentation, and outputs pivot-aware trimmed sprites rather than full-canvas PNGs. Prefer flat mode for solid-color backgrounds for crisp results; use AI mode for photos or complex scenes with one clear main subject.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:28.468Z","isFirstParty":false,"canonicalSlug":"rengi-forge-sprite-background-remover-06843637"}