{"uid":"cap_zRisF8wxo26_RNw-UYlGA","slug":"singit-image-to-image-edit-b87a98a8","name":"SingIt Image-to-Image Edit","description":"Image editing API with PNG, JPEG or WEBP input and an optional mask. Pay in USDC on Base or Solana. Owner-set spend limits via MCP/API keys.","url":"https://ask.singitai.app/v1/images/image2image?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"integer","const":1,"description":"Number of output images; only one is supported."},"mask":{"type":"string","description":"Mask data URI with at least 65536 pixels (for example 256×256); only with one image."},"size":{"type":"string","description":"Output size supported by the edit model, for example 1024x1024."},"image":{"type":["string","array"],"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"},"maxItems":4,"minItems":1}],"description":"PNG, JPEG or WEBP data URI, or up to four data URIs; each must contain at least 65536 pixels (for example 256×256)."},"model":{"type":"string","description":"Edit model from GET /v1/images/models."},"prompt":{"type":"string","description":"The requested edit."}}},"responseSchema":{"type":"json","example":{"data":[{"b64_json":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII="}],"billing":{"currency":"USDC"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.066","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.066/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.066","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.066","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QYOZTE0Kocorr4qbcnU8_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.066","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Edit or transform an existing image using a text prompt and optional mask, returning a modified PNG image encoded in base64.","exampleAgentPrompt":"Take this photo of a living room and change the wall color to deep navy blue, keeping everything else the same — use the 1024x1024 output size.","exampleUseCases":[{"title":"Product background replacement for e-commerce","prompt":"I have a product photo of a sneaker on a white background — can you replace the background with a lifestyle outdoor scene using an image edit? Use 1024x1024 output."},{"title":"Portrait style transfer with text guidance","prompt":"Take this portrait photo and re-render it in a painterly watercolor style, keeping the person's face intact — 1024x1024 output please."},{"title":"Inpainting with mask to remove object","prompt":"Here's a photo of a beach — I've marked the umbrella area with a mask. Can you remove the umbrella and fill it in naturally with sand and sky? Use 1024x1024."}],"resultDescription":"A JSON object containing a `data` array with one element holding the edited image as a base64-encoded PNG string (`b64_json`), plus a `billing` object indicating the currency used (USDC) for the $0.066 per-call charge.","failureModes":["Unsupported image format or malformed data URI returns a 4xx error","Mask provided alongside multiple images is rejected (mask only supported with a single image)","Requested output size not supported by the chosen edit model","Model ID not found in /v1/images/models catalog","Payment not settled via x402 protocol results in 402 Payment Required","Image dimensions or file size exceed model limits"],"whenToPreferThis":"Choose this endpoint when you need to programmatically edit or transform an existing image using a text prompt, especially in a pay-per-call workflow without long-term API key commitment. It supports multiple input images (up to four), optional masking for inpainting, and uses the x402 micropayment protocol on Base or Solana — making it ideal for agent pipelines that need on-demand image editing billed in USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T12:05:25.198Z","isFirstParty":false,"canonicalSlug":"singit-image-to-image-edit-b87a98a8"}