GPT Image 2.6 Editing: Turn 'Keep Everything Else' into a Testable Contract A developer outlined a two-stage Node.js workflow for GPT Image 2.6 image editing that turns preservation requirements into a testable contract, using Flare for fast candidate generation and Sunburst for higher-fidelity final passes. The approach stores change and preserve rules as structured job data, validates requests at the boundary with HTTPS-only hosts, prompt-length caps and dimension checks, then builds prompts from that data and validates the API response before accepting an edit. The code examples are illustrative and were not executed. GPT Image 2.6 makes image editing more useful for production, but the difficult requirement is rarely “change the background.” It is change the background without changing the product . That second clause should not live only inside a prompt. Treat it as a preservation contract that your application validates before accepting an edit. This article shows a minimal two-stage Node.js workflow: use Flare for a fast candidate, escalate to Sunburst when fidelity matters, then validate both the response and the properties your system can verify automatically. The requests below are illustrative examples and were not executed for this article. Replace placeholder credentials and asset URLs before running them. Suppose a product photo has already passed review. Marketing wants a warmer background, but the bottle geometry, label, camera angle, and canvas size must stay stable. Store that intent as data: js const job = { sourceUrl: "https://example.com/assets/bottle-approved.png", change: "Replace only the light gray background with warm ivory stone", preserve: "bottle shape and proportions", "label position and design", "camera angle", "shadow direction" , expectedSize: "1024x1536" }; This is more useful than an unstructured prompt because the same list can drive prompt construction, reviewer UI, logs, and acceptance checks. The public GPT Image 2.6 launch overview https://platform.acedata.cloud/blog/gpt-image-2-6-launch-faster-generation-precise-editing?lang=zh-CN describes Flare as the speed-oriented option and Sunburst as the higher-fidelity, fine-control option. That suggests a practical division of labor: Flare for candidate generation; Sunburst for the final pass or an escalation after a failed review. It is a workflow choice, not a promise that every Flare result is fast or every Sunburst result is perfect. Reject malformed jobs at the boundary. At minimum, allow only HTTPS inputs from hosts you trust, cap prompt length, and constrain output dimensions to values supported by your product. js function validateJob job { const url = new URL job.sourceUrl ; if url.protocol == "https:" throw new Error "sourceUrl must use HTTPS" ; const allowedHosts = new Set "example.com", "cdn.example.com" ; if allowedHosts.has url.hostname throw new Error "Untrusted image host" ; if job.change || job.change.length 1000 { throw new Error "change must contain 1–1000 characters" ; } if Array.isArray job.preserve || job.preserve.length === 0 { throw new Error "At least one preservation rule is required" ; } if /^\d+x\d+$/.test job.expectedSize { throw new Error "expectedSize must be WIDTHxHEIGHT" ; } } In a real service, fetch remote images through a controlled downloader rather than letting arbitrary user URLs reach internal networks. Check MIME type, byte size, redirects, and decoded pixel dimensions before forwarding the asset. Ace Data Cloud documents an OpenAI-style POST /openai/images/edits https://platform.acedata.cloud/documents/openai-images-edits endpoint. JSON requests can provide an image URL; multipart requests are appropriate for local files and masks. js const API = "https://api.acedata.cloud/openai/images/edits"; function buildPrompt job { return job.change + ".", Preserve unchanged: ${job.preserve.join ", " }. , Keep the output canvas at ${job.expectedSize}. , "Do not add text, logos, or extra objects." .join " " ; } async function edit job, model { const response = await fetch API, { method: "POST", headers: { Authorization: Bearer ${process.env.ACE API KEY || "YOUR API KEY"} , "Content-Type": "application/json" }, body: JSON.stringify { model, image: job.sourceUrl, prompt: buildPrompt job , size: job.expectedSize, quality: model.includes "sunburst" ? "high" : "medium", response format: "url" } } ; const payload = await response.json .catch = {} ; if response.ok { const trace = payload.trace id ? trace id=${payload.trace id} : ""; throw new Error Image edit failed ${response.status} .${trace} ; } const outputUrl = payload?.data?. 0 ?.url; if outputUrl throw new Error "Successful response contained no image URL" ; return { outputUrl, taskId: payload.task id, traceId: payload.trace id }; } validateJob job ; let candidate = await edit job, "gpt-image-2.6-flare" ; Do not retry every error. A 400 usually requires fixing input; 401 requires fixing credentials; 429 calls for bounded exponential backoff; an uncertain timeout should first be reconciled by task ID or stored request state, not blindly submitted again. A URL is delivery, not acceptance. Store a record containing the source asset hash, normalized request, model, task/trace identifiers, output URL, and review status. Then run checks in layers: If the candidate fails only a fidelity criterion, escalate rather than rewriting the entire job: js async function finalize job, candidate, checks { if checks.every c = c.passed return candidate; const retryable = checks.every c = "label similarity", "geometry", "background" .includes c.name ; if retryable throw new Error "Candidate requires human review" ; return edit job, "gpt-image-2.6-sunburst" ; } Sunburst is not a substitute for acceptance testing. It is a more fidelity-oriented second stage. For pixel-constrained local changes, consult the edit documentation for multipart masks and confirm the selected model variant supports the exact combination you need. GPT Image 2.6 also supports native GIF output, which is useful for lightweight character loops and sticker prototypes. The current generation documentation https://platform.acedata.cloud/documents/openai-images-generations defines GIF-specific frame and duration controls. Do not apply static 4K assumptions to GIF jobs: validate animation dimensions, frame count, duration, and loop behavior as a separate job type. For interactive exploration, Ace Data Cloud Studio https://studio.acedata.cloud/ can help teams refine a visual brief before encoding it as an API contract. For application integration, use the dedicated Flare https://platform.acedata.cloud/models/gpt-image-2.6-flare?m=image and Sunburst https://platform.acedata.cloud/models/gpt-image-2.6-sunburst?m=image model pages plus the live API documentation. “Keep everything else unchanged” is not an implementation plan. Split the job into an explicit change set and preservation set, validate input before calling the model, use Flare and Sunburst according to workflow stage, and accept an output only after measurable checks. That architecture remains valuable even as models improve, because it turns subjective editing intent into observable system behavior. Disclosure: This article was prepared for an Ace Data Cloud promotional task and is based on Ace Data Cloud's public product materials and API documentation. Ace Data Cloud has a commercial relationship with this publication task. The text was reorganized and written with AI assistance; the code is an unexecuted illustrative example, not a claim of independent customer testing. The cover image is reused from the linked Ace Data Cloud launch article.