{"uid":"cap_BLHQeiJAFbqEAsLH2DnBG","slug":"compacthost-ai-tools-kontext-image-editing-ee4d8525","name":"Compacthost AI Tools – Kontext Image Editing","description":"Pay-per-call generative AI tools for autonomous agents, settled in USDC on Base via x402.","url":"https://x402.compacthost.com/kontext","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"size":{"type":"string","description":"WxH, default 832x1216"},"prompt":{"type":"string","description":"What to change"},"reference_image":{"type":"string","description":"Base64-encoded source photo, max ~10MB"}}},"responseSchema":{"type":"image/png"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_v_iA5oJfVRUVS0QQagmTB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Edit or transform a reference photo using a text prompt, returning a new PNG image via pay-per-call x402 billing on Base.","exampleAgentPrompt":"Take this photo of our living room and edit it so the walls are painted sage green and there's warm afternoon sunlight coming through the windows — output at 1024x768.","exampleUseCases":[{"title":"Product photo background swap","prompt":"I have a product shot of our new sneaker on a plain white background — can you edit it so it looks like it's sitting on a wooden floor in a minimalist studio with soft natural light? Use 832x1216."},{"title":"Portrait style transformation","prompt":"Take this headshot of me and make it look like a Renaissance oil painting — keep my face accurate but give it that classical painted texture and warm candlelit lighting."},{"title":"Real estate staging edit","prompt":"Here's a photo of an empty bedroom — can you edit it to add a cozy Scandinavian-style bed, nightstands, and warm lighting so it looks staged for a listing?"}],"resultDescription":"A PNG image returned as binary (image/png content type) reflecting the edits described by the prompt applied to the reference photo. The output dimensions match the requested size (default 832x1216 if not specified).","failureModes":["Reference image exceeds ~10MB base64 limit — request rejected","Malformed base64 string causes decoding error","Prompt too vague or contradictory — output may not match intent","Payment insufficient or x402 handshake fails — 402 response with payment details","Size parameter in wrong format (not WxH) — may default or error","Server-side model timeout for complex edits"],"whenToPreferThis":"Choose this endpoint when you need instruction-guided image editing from a reference photo (inpainting, style transfer, scene modification) and want pay-per-call billing settled in USDC on Base via x402 — ideal for autonomous agents that need verifiable, on-chain micropayments without subscription overhead. Prefer over text-to-image endpoints when a source image must be preserved and modified rather than generated from scratch.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T20:17:38.400Z","isFirstParty":false}