GPT /images/edits not functioning
Trying to use the image editing feature as described in the official OpenAI image generation documentation.
However every attempt at using the Python SDK client.images.edit functionality fails with a HTTP 400 bad request.
At 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’.
I 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.
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'}}
OpenAI Python SDK images.edit
Discussion in the ATmosphere