External Publication
Visit Post

Introducing gpt-image-2 - available today in the API and Codex

OpenAI Developer Community April 22, 2026
Source
Sam: OpenAI updated the image generation docs, and if you toggle a tab-like header button “Image API” above code example, you see the “2”. Does this or the curl example as multipart/form-data not work for you? result = client.images.edit( model="gpt-image-2", image=[ open("body-lotion.png", "rb"), open("bath-bomb.png", "rb"), open("incense-kit.png", "rb"), open("soap.png", "rb"), ], prompt=prompt ) Currently too disinterested to check it out or code up an arbitrary resolution picker…

Discussion in the ATmosphere

Loading comments...