{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreidphgd66i3mack5rbmbh67xozkxhbinta4dbsxq2mf63une22ocau",
"uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3mk37fqehweo2"
},
"path": "/t/gpt-image-2-masking-issue/1379510#post_1",
"publishedAt": "2026-04-22T09:20:56.000Z",
"site": "https://community.openai.com",
"textContent": "Is masking supported by gpt image 2?\nDoes it fully preserve the non masked regions?\nIs dalle 2 the only available model for this use case?\n\nGetting error with edit API:\n\n`client = OpenAI(max_retries=5, api_key=os.getenv(“OPENAI_API_KEY”))`\n`client.images.edit(**args)`\n\nOpenai.BadRequestError: Error code: 400 - {‘error’: {‘message’: “Invalid value: ‘gpt-image-2’. Value must be ‘dall-e-2’.”, ‘type’: ‘invalid_request_error’, ‘param’: ‘model’, ‘code’: ‘invalid_value’}}\n\nOfficial docs does not seem to be fully updated.",
"title": "GPT Image 2 Masking Issue"
}