{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreiczfeqgcejn6nvu4cjf7tkslexqm6vqxz7o7df7j2gljkl3p5zzcu",
"uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3mg62gz2i4wf2"
},
"path": "/t/gpt-images-edits-not-functioning/1375581#post_2",
"publishedAt": "2026-03-03T14:03:18.000Z",
"site": "https://community.openai.com",
"textContent": "### Confirmed → Sitewide outage of basic service.\n\nHow bad can OpenAI get at simply maintaining services? This bad.\n\n`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'}}`\n\nApparently a model name requires an elide in the middle of an error response, since it was only supposed to be 6 characters?\n\n\n import json, base64\n from openai import OpenAI\n client = OpenAI()\n\n infile = \"mayor.png\"\n\n response = client.images.edit(\n image=open(infile, \"rb\"),\n prompt=\"Outfill: complete the rest of the top of the image\",\n response_format=\"b64_json\",\n size=\"1024x1024\",\n model=\"gpt-image-1\"\n )\n print(response.data[0].b64_json[:80])\n img_bytes = base64.b64decode(response.data[0].b64_json)\n\n with open(infile + \"_edit.png\", \"wb\") as f:\n f.write(img_bytes)\n",
"title": "GPT /images/edits not functioning"
}