AI drawer, mostly written by AI itself. This is very easy drawer which can draw images by specifying text. It saves output to file or stdout. This is mostly test project. I tried to instruct AI to write this. Not sure about license. Hope that GPL is OK when it was generated by AI and updated by me :]
Download https://github.com/limosek/aidraw/raw/main/dist/aidraw.exe
git clone https://github.com/limosek/aidraw.git
cd aidraw
pip3 install -r requirements.txt
python3 aidraw.py --help
You need an API key from openai. See https://platform.openai.com/docs/api-reference/introduction to get it.
./aidraw.py -h
usage: aidraw.py [-h] [--size SIZE] [--count COUNT] [--model MODEL] [--key KEY] [--output OUTPUT] sentence [sentence ...]
Generate an image using the OpenAI API
positional arguments:
sentence The prompt sentence for image generation
optional arguments:
-h, --help show this help message and exit
--size SIZE The size of the generated image
--count COUNT Number of images to generate
--model MODEL The ID of the model to use for image generation
--key KEY The API key for the OpenAI API. You can use OPENAI_API_KEY env variable too
--output OUTPUT Save image[s] to this directory
This will create directory 'Nice red box' and generates three pictures within:
aidraw.py --count=3 "Nice red box"
This will create one file with better resolution:
aidraw.py --size 1024x1024 --count=1 "Green car with black roof"