Skip to content

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

Closed as not planned
@avenstewart

Description

@avenstewart

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions