{"uid":"cap_uLnOeq9DMey2fFBQuAgjg","slug":"agentrxi-image-inpainting-bf91c03a","name":"AgentRXI Image Inpainting","description":"Edit part of an image: send the image and a mask (white = area to repaint) with a prompt, and get the edited image back. Remove objects, replace backgrounds or add items. Add store=true (+$0.001) to get a 7-day share link instead of the data inline. Also callable as GET with the same fields as query parameters.","url":"https://agentrxi.com/v1/image/inpaint?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["prompt"],"properties":{"store":{"type":"boolean","description":"Return a 7-day share link (+$0.001)"},"prompt":{"type":"string","description":"What to paint in the masked area"},"mask_url":{"type":"string"},"strength":{"type":"number","description":"0-1"},"image_url":{"type":"string"},"mask_base64":{"type":"string"},"image_base64":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WcSMq3YvbkjobvYluSDOr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Edit a specific region of an image by providing the image, a mask (white = area to repaint), and a text prompt describing what to paint there","exampleAgentPrompt":"Can you remove the car in the background of this photo? Here's the image URL: https://example.com/photo.jpg — I'll also provide a mask where the car is marked in white: https://example.com/mask.png. Use the prompt 'empty street with pavement' to fill it in.","exampleUseCases":[{"title":"Remove unwanted object from photo","prompt":"I have a product photo at https://example.com/product.jpg and I want to remove the shadow behind it. Here's a white mask over the shadow area: https://example.com/shadow_mask.png. Use the prompt 'clean white background' to fill it in."},{"title":"Replace image background with new scene","prompt":"Can you swap out the background in this portrait? Image is at https://example.com/portrait.jpg and the background mask is at https://example.com/bg_mask.png. Fill it with 'a sunny beach at golden hour'. Also store the result so I can share a link."},{"title":"Add item to specific image region","prompt":"I want to add a coffee cup to the empty desk in this image: https://example.com/desk.jpg. Here's the mask over the empty spot: https://example.com/desk_mask.png. The prompt should be 'a steaming ceramic coffee mug'."}],"resultDescription":"Returns the edited image as inline base64 data (or, if store=true, a 7-day shareable URL link to the result image), with the specified masked region repainted according to the prompt while the rest of the image remains unchanged.","failureModes":["Missing prompt parameter — required field, returns error if absent","Invalid or inaccessible image/mask URLs — returns error if image cannot be fetched","Mask and image dimensions mismatch — may cause unexpected results or error","strength value out of 0-1 range — may be rejected or clamped","Neither image_url/image_base64 nor mask_url/mask_base64 provided — ambiguous input","Store flag adds $0.001 cost; link expires after 7 days"],"whenToPreferThis":"Choose this endpoint when you need to edit a specific region of an existing image using a mask — for object removal, background replacement, or adding items to a scene. Prefer it over full image generation when you want to preserve most of the original image and only change a defined area. It's a pay-per-call API ideal for agent workflows that need programmatic image editing without a subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:39:24.858Z","isFirstParty":false,"canonicalSlug":"agentrxi-image-inpainting-bf91c03a"}