A Practical Guide to Editing Images with gpt-image-2 over JSON
Image editing pipelines often fail at the boring part: getting a reference image into the model, preserving the parts you care about, and returning an asset your app can use without a manual download-and-upload step. This guide walks through the OpenAI Images Edits API on Ace Data Cloud with gpt-image-2 , focusing on the JSON workflow where the input image can be a URL or base64 string. The goal is not to generate something pretty, but to build a repeatable editing step that fits into a backend, CMS, product tool, or internal creative workflow. What you can do The edits endpoint accepts an existing image plus an instruction, then returns a modified image. According to the source documentation, the same interface supports gpt-image-1 , gpt-image-2 , and the nano-banana family of editing models. For this tutorial, we will use gpt-image-2 because the documented workflow includes direct JSON URL input, base64 input, multi-reference image arrays, and explicit output sizing. Convert a...