External Publication
Visit Post

GPT /images/edits not functioning

OpenAI Developer Community March 3, 2026
Source

Confirmed → Sitewide outage of basic service.

How bad can OpenAI get at simply maintaining services? This bad.

openai.BadRequestError: Error code: 400 - {'error': {'message': "Invalid value: 'gpt...ini'. Value must be 'dall-e-2'.", 'type': 'invalid_request_error', 'param': 'model', 'code': 'invalid_value'}}

Apparently a model name requires an elide in the middle of an error response, since it was only supposed to be 6 characters?

import json, base64
from openai import OpenAI
client = OpenAI()

infile = "mayor.png"

response = client.images.edit(
  image=open(infile, "rb"),
  prompt="Outfill: complete the rest of the top of the image",
  response_format="b64_json",
  size="1024x1024",
  model="gpt-image-1"
)
print(response.data[0].b64_json[:80])
img_bytes = base64.b64decode(response.data[0].b64_json)

with open(infile + "_edit.png", "wb") as f:
    f.write(img_bytes)

Discussion in the ATmosphere

Loading comments...