{"uid":"cap_Iud8hzKzzbOmiLMODvn2L","slug":"stability-ai-inpaint-4e130868","name":"Stability AI Inpaint","description":"Fill a masked region with AI-generated content guided by a prompt.","url":"https://stability-ai.mpp.paywithlocus.com/stability-ai/inpaint?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["image","prompt"],"properties":{"mask":{"type":"string","description":"Mask image (white = fill) 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."},"prompt":{"type":"string","description":"Fill prompt"},"grow_mask":{"type":"number","description":"Expand mask by N pixels"},"output_format":{"type":"string","description":"jpeg|png|webp"},"negative_prompt":{"type":"string","description":"Things to exclude"}},"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":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.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_Y11XmlSAeMLqn3ywOM36M","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":"Fills or replaces a masked region of an image using a text prompt via Stability AI's inpainting model","exampleAgentPrompt":"Take this product photo [image URL] and fill in the masked region [mask URL] with a wooden table surface — use a PNG output and make sure there's no plastic or glass texture in the fill.","exampleUseCases":null,"resultDescription":"Returns an inpainted image with the masked region filled according to the text prompt, in the requested output format (jpeg, png, or webp). The result is a modified version of the source image where the white mask area has been replaced with AI-generated content matching the prompt.","failureModes":["Missing required 'image' field returns a 400 validation error","Missing required 'prompt' field returns a 400 validation error","Invalid image format or unreadable image URL causes a processing error","Mask dimensions not matching source image dimensions may cause failure","Invalid output_format value (not jpeg/png/webp) returns an error","Overly complex or contradictory prompts may yield low-quality fills","Seed out of valid range may cause unexpected behavior"],"whenToPreferThis":"Use this endpoint when you need to fill, replace, or remove a specific region of an existing image based on a text description. Prefer this over outpainting (extending borders) or background replacement when you have a precise masked area within the image that needs targeted content generation. Ideal for product photo editing, object removal, or localized image repair tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":2,"lastUsedAt":"2026-05-20T23:40:49.851Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:42:48.040Z","isFirstParty":false,"canonicalSlug":"stability-ai-inpaint-4e130868"}