{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreied3a4s4picguz56o2xlrfkkkxa6hesir7krf6vfyluee4wjawvui",
"uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3mlh62sbbxvu2"
},
"path": "/t/v1-images-edits-rejects-gpt-image-2-hardcoded-to-dall-e-2-only/1380585#post_1",
"publishedAt": "2026-05-09T19:19:53.000Z",
"site": "https://community.openai.com",
"textContent": "The /v1/images/edits endpoint rejects gpt-image-2 with a 400 error.\n\nError returned:\n{\n“error”: {\n“message”: “Invalid value: ‘gpt-image-2’. Value must be ‘dall-e-2’.”,\n“type”: “invalid_request_error”,\n“param”: “model”,\n“code”: “invalid_value”\n}\n}\n\nTested models — ALL rejected:\n\n * gpt-image-2 – primary concern\n * gpt-image-1\n * gpt-image-1-mini\n * chatgpt-image-latest\n * image-latest\n\n\n\nOnly dall-e-2 is accepted, which is the oldest and lowest-quality model.\n\nThis means gpt-image-2, your most capable image model, cannot accept\nimage input at all. The /v1/images/generations endpoint (text-only) accepts\ngpt-image-2 fine, but /v1/images/edits does not. There is no way to feed\na reference image into gpt-image-2 through any available endpoint.\n\nRequest format tested: multipart/form-data with binary image bytes,\nproper Content-Type and filename headers — same format that works with dall-e-2.",
"title": "/v1/images/edits rejects gpt-image-2 — hardcoded to dall-e-2 only"
}