{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreiayy4fad6op3lxlgoob5rsq7hecivslbi622u7jungo5vsx7dolq4",
"uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3mk2yosmgn7l2"
},
"path": "/t/introducing-gpt-image-2-available-today-in-the-api-and-codex/1379479#post_5",
"publishedAt": "2026-04-22T07:11:19.000Z",
"site": "https://community.openai.com",
"textContent": "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?\n\n\n result = client.images.edit(\n model=\"gpt-image-2\",\n image=[\n open(\"body-lotion.png\", \"rb\"),\n open(\"bath-bomb.png\", \"rb\"),\n open(\"incense-kit.png\", \"rb\"),\n open(\"soap.png\", \"rb\"),\n ],\n prompt=prompt\n )\n\n\nCurrently too disinterested to check it out or code up an arbitrary resolution picker…",
"title": "Introducing gpt-image-2 - available today in the API and Codex"
}