How can I use Create image edit API?

Sounds like it’s not getting the mask correctly. Here’s some code from GitHub that might help you…


    def generate_from_masked_image(self, prompt, image_path):
        with open(image_path, "rb") as f:
            image_base64 = base64.b64encode(f.read())