raiyanyahya / dallecli

💠 Provide users with the ability to generate, edit and filter images using the DALL-E 3 API provided by OpenAI, all from the command line.
https://dallecli.com
MIT License
61 stars 8 forks source link

Possible bug or a misleading typo #13

Closed jmacias1503 closed 1 year ago

jmacias1503 commented 1 year ago

Hi, just started using this cli tool, and i have encountered this issue, don't know if it's because of the prompt in the size, but any time I try to put a specific size, outputs me an error. This have happened with any prompt I gave to it. Maybe I need to put more parameters, I would like to have some help with this

Prompt

dallecli generate --prompt 'my prompt' --size '1920x1080' # A size example

Output

Failed to generate image. Please try again with a different prompt.
raiyanyahya commented 1 year ago

The openai api for dalle only supports images sizes of 256x256, 512x512, or 1024x1024 pixels. This is as per documentation.

So the size that you mentioned is not supported. Thanks for bringing this up though, I will add those as a click options argument and update it in the readme in the next version which I will release tomorrow.

jmacias1503 commented 1 year ago

The openai api for dalle only supports images sizes of 256x256, 512x512, or 1024x1024 pixels. This is as per documentation.

So the size that you mentioned is not supported. Thanks for bringing this up though, I will add those as a click options argument and update it in the readme in the next version which I will release tomorrow.

Thank you!! Didn't know of this