{"uid":"cap_qlQryC5MOjiLnSJriKZxr","slug":"stability-ai-search-and-replace-06675895","name":"Stability AI Search and Replace","description":"Find an object by description and replace it with something new.","url":"https://stability-ai.mpp.paywithlocus.com/stability-ai/search-and-replace?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["image","prompt","search_prompt"],"properties":{"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":"What to replace the object with"},"grow_mask":{"type":"number","description":"Expand detection mask by N pixels"},"output_format":{"type":"string","description":"jpeg|png|webp"},"search_prompt":{"type":"string","description":"Description of the object to find and replace"},"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_F_FksZtnHgXwWEiSFeLrs","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":"Detects a specific object in an image using a text description and replaces it with a newly generated object based on a prompt","exampleAgentPrompt":"In this product photo, find the wooden chair and replace it with a sleek modern black leather office chair — output as a PNG.","exampleUseCases":null,"resultDescription":"Returns an edited image (jpeg, png, or webp) where the detected object described by the search_prompt has been replaced with a newly generated object described by the prompt, seamlessly composited into the original scene.","failureModes":["Object described in search_prompt not found in image — may result in no change or incorrect region being replaced","Ambiguous search_prompt causing wrong object to be targeted","Image format not supported or corrupted input","Prompt too vague resulting in poor quality replacement","grow_mask set too high causing replacement to bleed into unintended areas","Invalid output_format value causing a validation error","Seed value producing undesirable results requiring retry"],"whenToPreferThis":"Use this endpoint when you need to swap or replace a specific identifiable object in an existing image with something new, described in natural language. It is better than full inpainting when you want targeted object-level replacement with automatic mask detection rather than manual masking. Prefer this over outpainting or background replacement when the target is a foreground object within the scene.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":4,"lastUsedAt":"2026-05-01T22:27:18.338Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:43:41.111Z","isFirstParty":false,"canonicalSlug":"stability-ai-search-and-replace-06675895"}