You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
client.images.edit() method failed to pass image_url as image input #3256
Confirm this is an issue with the Python library and not an underlying OpenAI API
This is an issue with the Python library
Describe the bug
client.images.edit() method failed to pass image_url as image input.
As indicated in following doc, /images/edits supports image_url as input (JSON).
But when passing url to client.images.edit(), rather than file object, API throws 400 error.
I am afraid /images/edits doesn't support image_url as image input. Doc is wrong.
I took a look and this appears to need a larger API-shape change than I can finish quickly in a safe one-commit PR, so I'm releasing this for someone else to pick up.
Activity
moltx commentedon May 18, 2026
smoke
zh0903 commentedon May 18, 2026
Just noticed Doc only say python SDK suppot image parameter as file.
Why Python SDK did not support what V1 API supported?
https://developers.openai.com/api/reference/python/resources/images/methods/edit#(resource)%20images%20%3E%20(method)%20edit%20%3E%20(params)%20default.non_streaming%20%3E%20(param)%20image%20%3E%20(schema)
nightcityblade commentedon Jul 3, 2026
Hi, I'd like to work on this. I'll submit a PR shortly.
nightcityblade commentedon Jul 3, 2026
I took a look and this appears to need a larger API-shape change than I can finish quickly in a safe one-commit PR, so I'm releasing this for someone else to pick up.