{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreihwe6c5u6xogf4stmrgsonlybgu66itqsr3qabarcvt2hir2wi2re",
"uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3mg5tpkppyqp2"
},
"path": "/t/gpt-images-edits-not-functioning/1375581#post_1",
"publishedAt": "2026-03-03T12:38:23.000Z",
"site": "https://community.openai.com",
"textContent": "Trying to use the image editing feature as described in the official OpenAI image generation documentation.\n\nHowever every attempt at using the Python SDK `client.images.edit` functionality fails with a HTTP 400 bad request.\n\nAt first I was getting errors for input parameters the SDK supports and even the API endpoint AND code examples in the documentation use. For example: ‘input_fidelity’, ‘format’, ‘quality’.\n\nI removed all of them and eventually got an error that only supported model is ‘dall-e-2’. But this cannot be right, as documentation and the SDK list ‘gpt-image-1’, ‘gpt-image-1.5’ and others as well.\n\n`openai.BadRequestError: Error code: 400 - {'error': {'message': \"Invalid value: 'gpt-image-1'. Value must be 'dall-e-2'.\", 'type': 'invalid_request_error', 'param': 'model', 'code': 'invalid_value'}}`\n\nOpenAI Python SDK images.edit",
"title": "GPT /images/edits not functioning"
}