{"uid":"cap_7DAoit3G-4GYJqoup4q_H","slug":"stability-ai-search-and-replace-via-locus-x402-dce49738","name":"Stability AI Search and Replace via Locus x402","description":"Generative AI platform for images, 3D models, and audio — text-to-image, editing, upscaling, and more.","url":"https://stability-ai.x402.paywithlocus.com/stability-ai/search-and-replace","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"number"},"image":{"type":"string"},"prompt":{"type":"string"},"grow_mask":{"type":"number"},"output_format":{"type":"string"},"search_prompt":{"type":"string"},"negative_prompt":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":{},"payment":{"scheme":"exact","settledUsdc":"0.001000","authorizedMaxUsdc":"0.001000"},"request":{"id":"00000000-0000-4000-8000-000000000000","statusUrl":"/requests/00000000-0000-4000-8000-000000000000"},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.057","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.057/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.057","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.057","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sTxL-cJ8kdLEf00bxXPnl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.057","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Finds a specific object in an image using a text search prompt and replaces it with a new AI-generated element described by a replacement prompt.","exampleAgentPrompt":"In this product photo I'm sending, find the wooden table and replace it with a sleek marble countertop — output as a PNG and avoid any dark or cluttered surfaces.","exampleUseCases":[{"title":"E-commerce product background swap","prompt":"Take this product image and replace the plain white background with a cozy coffee shop setting — output as a JPEG and make sure there's no clutter or people in it."},{"title":"Real estate room renovation preview","prompt":"In this living room photo, find the old couch and replace it with a modern minimalist sectional sofa — PNG format please, and avoid anything too colorful or patterned."},{"title":"Fashion editorial outfit change","prompt":"I have this model photo — replace the red jacket she's wearing with a sleek black leather jacket, output as a webp, and exclude any logos or text from appearing."}],"resultDescription":"Returns a JSON response with a success flag, a payment settlement record showing the USDC amount paid, and a request object containing a unique request ID and a status URL for tracking the async image processing result. The actual edited image data is nested within the data field.","failureModes":["Search prompt fails to locate a recognizable object in the image, resulting in no meaningful replacement","Source image is missing or malformed, causing a validation error","Prompt is too vague for the model to produce a coherent replacement","grow_mask value is too large, causing replacement to bleed into unintended areas","Payment authorization fails, blocking the request from being processed","Unsupported output_format value causes a format error","Seed value produces an undesirable or unexpected result with no guarantee of determinism"],"whenToPreferThis":"Choose this endpoint when you need to semantically find and replace a specific named object within an existing image without manual masking. It is ideal for e-commerce, real estate, fashion, or product photography workflows where targeted in-image object substitution is required. Prefer this over inpainting endpoints when you want the model to automatically detect the region to edit based on a text description rather than supplying a manual mask.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:36:45.822Z","isFirstParty":false}