{"uid":"cap_F9GBTbjDNucdIwgpp70kK","slug":"image-edit-openai-compatible-flux-3-d865d261","name":"Image Edit (OpenAI-Compatible, FLUX 3)","description":"Edit an image with a prompt over x402 - OpenAI images.edit wire (reference images and a prompt in, inline base64 out) at $0.02 per picture. Send one to 4 PNG or JPEG reference images (256 px a side or more, up to 6 MB each) as base64 or data: URLs in JSON, or one as a multipart \"image\" file; the output is one JPEG of about one megapixel that follows the first reference's aspect ratio. Served by FLUX 3 Image Klein in about 10 seconds. No mask: describe the change in the prompt.","url":"https://agent402.tools/v1/images/edits?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"image":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"},"maxItems":4,"minItems":1}],"description":"One to 4 reference images, each base64 or a data: URL (PNG or JPEG, at least 256x256, up to 6 MB each). Image URLs are not fetched."},"prompt":{"type":"string","description":"What to change (up to 4,000 chars)"}}},"responseSchema":{"type":"json","example":{"data":[{"b64_json":"/9j/4AAQSkZJRgABAQAAAQABAAD…","media_type":"image/jpeg"}],"model":"black-forest-labs/flux-3-image-klein","usage":{"total_tokens":4107,"prompt_tokens":11,"completion_tokens":4096},"created":1750000000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":1,"rating":{"score":"1.00","successRate":"1.00","reviews":1,"stars":"5.0","state":"rated"},"availabilityStatus":"healthy","priceObserved":{"p10Cents":"2.0000","medianCents":"2.0000","p90Cents":"2.0000","minCents":"2.0000","maxCents":"2.0000","p95Cents":"2.0000","sampleCount":4,"varies":false,"failureChargeRate":null},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IfrTQzcZJ3qHHf_eysdlb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Edit an existing image using a text prompt, returning a JPEG output via the OpenAI images.edit wire format, powered by FLUX 3 Image Klein at $0.02 per call.","exampleAgentPrompt":"Take this product photo I'm sending and make it look like it was shot in a snowy forest setting — keep the product the same, just change the background completely.","exampleUseCases":[{"title":"Product photo background swap","prompt":"Here's my product image as a base64 PNG — can you edit it so the background looks like a sleek white studio with soft shadows? Keep the product itself unchanged."},{"title":"Artistic style transformation","prompt":"I have a portrait photo — can you re-render it in an oil painting style, keeping the person's likeness but making it look like a classical artwork?"},{"title":"Scene element modification","prompt":"Edit this photo of my living room to remove the clutter on the coffee table and make it look clean and minimalist — here's the image encoded in base64."}],"resultDescription":"A single JPEG image (~1 megapixel) returned inline as base64, preserving the aspect ratio of the first reference image, reflecting the edits described in the prompt. Typical response time is around 10 seconds.","failureModes":["Image too small (minimum 256x256 px) — rejected with validation error","Image too large (over 6 MB per image) — rejected with payload size error","More than 4 reference images provided — rejected","Unsupported image format (non-PNG/JPEG) — rejected","Prompt exceeds 4,000 characters — rejected","Payment not included or insufficient — 402 Payment Required","Model timeout or generation failure — 5xx error after ~10s"],"whenToPreferThis":"Choose this endpoint when you need to edit or modify an existing image using only a text prompt (no mask required), and want OpenAI images.edit API compatibility. It is ideal for agents already using the OpenAI image editing interface, or when you want low-cost ($0.02/call) FLUX-powered image editing with a simple base64 in/out interface. Prefer this over text-to-image generation endpoints when you have a reference image to start from.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":4,"lastUsedAt":"2026-10-27T23:57:51.923Z","lastSuccessfullyRanAt":"2026-10-27T23:57:51.923Z","lastHealthCheckAt":"2026-10-30T19:14:06.139Z","isFirstParty":false,"canonicalSlug":"image-edit-openai-compatible-flux-3-d865d261"}