Repo to document my learning curve while playing with the OpenAI API.
Scripts / functions are stored in the opai.conf file.
Bash function to generate images via OpenAI API via the command line.
It'S the same service as via the DALL.E web interface, but faster, cheaper and without watermark.
Their image API offers the possibility to specify:
- the prompt
- amount of images to be created (1-10)
- image size
- response format (weblink or base64)
The dalle function is asking for user input to specify the prompt and the amount of images.
I've currently hard coded the highest possible image size (1024x1024) and I'm using the base64 format for the file generation.
Example image, generated via the function: