{"uid":"cap_vZL8UfBTLnyD3qsABkhXa","slug":"singit-image-edits-0edcc808","name":"SingIt Image Edits","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/edits?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_5TR00S_0eTXTcPylYTiSx","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 modify an existing image using a text prompt, returning a new image as base64 JSON, paid per call in USDC via x402.","exampleAgentPrompt":"Take this product photo (here's the PNG data URI) and remove the background, replacing it with a plain white studio backdrop — use the 1024x1024 size and pick whatever edit model is available.","exampleUseCases":[{"title":"Product photo background removal","prompt":"I have a JPEG of a sneaker I need to sell online. Can you replace the background with a clean white studio look at 1024x1024? Here's the image data URI."},{"title":"Portrait retouching with mask","prompt":"Here's a portrait photo and a mask highlighting the subject's jacket. Please change the jacket color to navy blue using the mask — output at 1024x1024."},{"title":"Creative scene modification","prompt":"Take this landscape photo and add a dramatic sunset sky in the background — keep everything else the same. 1024x1024 output please, here's the image data URI."}],"resultDescription":"A JSON object containing a `data` array where each item has a `b64_json` field with the edited image encoded as a base64 PNG, plus a `billing` object indicating the currency used (USDC) for the per-call charge.","failureModes":["Unsupported image format or malformed data URI returns a 400 error","Model ID not found in /v1/images/models returns an error or fallback","Mask provided alongside multiple images (only allowed with single image) causes rejection","Requested output size not supported by the chosen model returns an error","Payment not settled (insufficient USDC balance) returns a 402 Payment Required","Rate limit on free tier (20 calls/day) exceeded returns a 429 or similar error"],"whenToPreferThis":"Choose this endpoint when you need AI-powered image editing (inpainting, background replacement, style changes) paid per-call in USDC with no API key registration required, especially in crypto-native or x402-compatible agent workflows. Prefer it over OpenAI's native image edit endpoint when you want pay-as-you-go crypto settlement on Base or Solana. Ideal for agents that need to edit images programmatically without managing subscriptions.","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-edits-0edcc808"}