{"uid":"cap_l_td2cyo_93fWjJxjPvtn","slug":"stability-ai-erase-b308c6b3","name":"Stability AI Erase","description":"Remove objects from an image using a mask.","url":"https://stability-ai.mpp.paywithlocus.com/stability-ai/erase?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["image"],"properties":{"mask":{"type":"string","description":"Mask image (white = erase) Send a public HTTPS URL (recommended; files up to 10 MiB) or base64/data URI. Hosted MPP JSON requests must stay below 8 KiB, so use a URL for larger files."},"seed":{"type":"number","description":"Random seed"},"image":{"type":"string","description":"Source image Send a public HTTPS URL (recommended; files up to 10 MiB) or base64/data URI. Hosted MPP JSON requests must stay below 8 KiB, so use a URL for larger files."},"grow_mask":{"type":"number","description":"Expand mask by N pixels"},"output_format":{"type":"string","description":"jpeg|png|webp"}},"additionalProperties":true},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["image-generation","stable-diffusion","upscaling","3d","ai","media"],"displayCostAmount":"0.057","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.75","successRate":"0.50","reviews":1,"stars":"4.0","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.057/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.057","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.057","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rbgQeXCBto5ADNIST7ga3","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.057","costPer":"request","priority":0,"asset":"0x20c000000000000000000000b9537d11c60e8b50","unit":"request","depositMicros":null,"planRef":null}],"brandName":"Stability AI","brandSlug":"stability-ai","brandBaseUrl":"https://stability.ai","brandDocsUrl":"https://platform.stability.ai/docs/api-reference","whatItDoes":"Removes unwanted objects or regions from an image using an optional mask, leaving a clean, AI-inpainted result.","exampleAgentPrompt":"Can you erase the person standing in the background of this photo? Use this mask image to mark the area to remove, expand the mask by 5 pixels, and give me the result as a PNG.","exampleUseCases":null,"resultDescription":"Returns an inpainted image with the masked region seamlessly removed and filled in by the AI, in the requested output format (jpeg, png, or webp).","failureModes":["Missing required 'image' field returns a 400 validation error","Invalid base64 or image format causes a processing error","Mask and source image size mismatch may cause failure","Unsupported output_format value returns an error","Overly large images may exceed size limits and fail","Payment failure returns a 402 error"],"whenToPreferThis":"Use this endpoint when you need to remove a specific object or region from an image and have a mask defining the area to erase. Prefer this over Search and Replace when you want clean removal without replacement content, or over Outpaint when you are editing interior regions rather than extending borders.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":2,"lastUsedAt":"2026-06-16T18:15:26.760Z","lastSuccessfullyRanAt":"2026-06-16T18:15:26.760Z","lastHealthCheckAt":"2026-10-11T13:11:04.646Z","isFirstParty":false,"canonicalSlug":"stability-ai-erase-b308c6b3"}