Skip to content

Repo to store my open ai related notes and scripts

Notifications You must be signed in to change notification settings

HeikoKramer/open-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Repo to store my open ai related notes and scripts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages