Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openai.Image.create_edit() requires a mask image to be passed, but the API endpoint list this parameter as optional #144

Closed
avenstewart opened this issue Dec 4, 2022 · 0 comments

Comments

@avenstewart
Copy link

The Image Edit endpoint of the API can be utilized to create an entirely new, but similar image when supplied with both an image and a prompt. This feature is functionally different than the variant creation endpoint. The Edit image endpoint also has the Mask parameter, which can be used to supply an existing image mask to be edited.

The Python function for this feature is limited, in that the Mask parameter is not optional, therefore the creation of a new, non-mask-based image is not possible. Only half of the image edit functionality can be utilized.

Screen Shot 2022-12-04 at 5 40 30 PM
Screen Shot 2022-12-04 at 5 40 51 PM

@avenstewart avenstewart closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2022
borisdayma pushed a commit to borisdayma/openai-python that referenced this issue Dec 7, 2022
* overload output type depending on stream literal (openai#142)

* Bump to v22

* [numpy] change version (openai#143)

* [numpy] change version

* update comments

* no version for numpy

* Fix timeouts (openai#137)

* Fix timeouts

* Rename to request_timeout and add to readme

* Dev/hallacy/request timeout takes tuples (openai#144)

* Add tuple typing for request_timeout

* imports

* [api_requestor] Log request_id with response (openai#145)

* Only import wandb as needed (openai#146)

Co-authored-by: Felipe Petroski Such <felipe@openai.com>
Co-authored-by: Henrique Oliveira Pinto <hponde@openai.com>
Co-authored-by: Rachel Lim <rachel@openai.com>
cgayapr pushed a commit to cgayapr/openai-python that referenced this issue Dec 14, 2024
* overload output type depending on stream literal (openai#142)

* Bump to v22

* [numpy] change version (openai#143)

* [numpy] change version

* update comments

* no version for numpy

* Fix timeouts (openai#137)

* Fix timeouts

* Rename to request_timeout and add to readme

* Dev/hallacy/request timeout takes tuples (openai#144)

* Add tuple typing for request_timeout

* imports

* [api_requestor] Log request_id with response (openai#145)

* Only import wandb as needed (openai#146)

Co-authored-by: Felipe Petroski Such <felipe@openai.com>
Co-authored-by: Henrique Oliveira Pinto <hponde@openai.com>
Co-authored-by: Rachel Lim <rachel@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant