{"uid":"cap_DnHNU7YPz0ICkL97hc7b4","slug":"mapleai-image-to-image-editing-b73a0f21","name":"MapleAI Image-to-Image Editing","description":"Edit an image, priced per image and size","url":"https://base.mapleai.shop/api/v1/images/image2image?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"integer","maximum":4,"minimum":1},"size":{"type":"string"},"image":{"type":"string","description":"PNG, JPEG or WebP data URI, maximum 10 MB"},"model":{"enum":["gpt-image-2","gpt-image-2.5","gpt-image-2.5-flare","gpt-image-2.5-sunburst","grok-imagine-image","gpt-image-2-2k","gpt-image-2.5-sunburst-2k"],"type":"string"},"prompt":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":[{"url":"https://example.com/image.png"}],"created":1700000000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_a8-OsOVf8w9ydVIJavsZx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","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, returning a new AI-generated image variant","exampleAgentPrompt":"Take this product photo (attached as a JPEG) and use gpt-image-2.5 to make it look like it's set on a sunny beach — generate 1 image at 1024x1024.","exampleUseCases":[{"title":"Product photo background replacement","prompt":"I have a product image of a sneaker on a white background. Can you use gpt-image-2.5 to replace the background with a dynamic urban street scene? Generate 1 image at 1024x1024."},{"title":"Artistic style transfer for social media","prompt":"Take this portrait photo of mine and transform it into a watercolor painting style using gpt-image-2.5-flare — just 1 image, square format at 1024x1024."},{"title":"Concept iteration for design mockups","prompt":"Here's my logo design as a PNG. Use gpt-image-2.5-sunburst to generate 4 variations where the logo is placed on a dark neon-lit background, at 1024x1024 each."}],"resultDescription":"Returns a JSON object with a 'data' array containing URLs to the edited images and a 'created' Unix timestamp. Each URL points to a hosted PNG of the transformed image.","failureModes":["Image data URI exceeds 10 MB limit — request rejected","Unsupported image format (not PNG, JPEG, or WebP) — parse error","Invalid model enum value — validation error","Requested size not supported by selected model — error response","Payment not fulfilled via x402 — 402 Payment Required","n exceeds maximum of 4 — validation error"],"whenToPreferThis":"Choose this endpoint when you have an existing image you want to modify, restyle, or transform using a text prompt — as opposed to generating an image from scratch (text-to-image). Prefer this over the sibling generate endpoint when a source image provides the visual context. Use MapleAI's image-to-image when you want pay-per-request USDC billing via x402 without a subscription, and when you need access to multiple model variants including gpt-image-2, gpt-image-2.5, gpt-image-2.5-flare, gpt-image-2.5-sunburst, or grok-imagine-image.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:12:00.551Z","isFirstParty":false,"canonicalSlug":"mapleai-image-to-image-editing-b73a0f21"}