Skip to content

CreateImageEditRequest only deals with a single image #363

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

Open
spantaleev opened this issue May 8, 2025 · 0 comments · May be fixed by #366
Open

CreateImageEditRequest only deals with a single image #363

spantaleev opened this issue May 8, 2025 · 0 comments · May be fixed by #366

Comments

@spantaleev
Copy link

With most models, the /v1/images/edits API only supports a single image in the image field.

However, with the new gpt-image-1 model, multiple images may be provided.

See https://platform.openai.com/docs/api-reference/images/createEdit#images-createedit-image

For gpt-image-1, each image should be a png, webp, or jpg file less than 25MB. You can provide up to 16 images.

For dall-e-2, you can only provide one image, and it should be a square png file less than 4MB.

spantaleev added a commit to etkecc/async-openai that referenced this issue May 10, 2025
spantaleev added a commit to etkecc/async-openai that referenced this issue May 10, 2025
spantaleev added a commit to etkecc/baibot that referenced this issue May 10, 2025
Related to:

- CreateImageEditRequest forces an application/octet-stream content type
  for images (64bit/async-openai#364)

- CreateImageEditRequest only deals with a single image
  (64bit/async-openai#363)

This is a continuation of 8f86289
and fixes the Image Editing feature for OpenAI.
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

Successfully merging a pull request may close this issue.

1 participant