Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 1015 Bytes

README.md

File metadata and controls

20 lines (18 loc) · 1015 Bytes

open-ai

Repo to document my learning curve while playing with the OpenAI API.
Scripts / functions are stored in the opai.conf file.

overview of functions contained in the opai.conf:

dalle

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:
OpenAi_image_API