This is just a simple command line utilities to create/modify images with OpenAI. Feel free to use the code in your projects.
This project has 2 programs: - image-generator.py to generate images using simple text like "a dog with a ball". - image-variation.py to modify an existent image by the OpenAI algorithm.
Run the programs without arguments to get help about usage.
- 
Python installed is required 
- 
Navigate into the project directory 
- 
Create a new virtual environment... AND ACTIVATE IT! python -m venv venv source venv/bin/activateUnder Windows use venv\Scripts\activate.bat
- 
Install the requirements python -m pip install -r requirements.txt 
- 
You must Add your API key in open_ai_key.py or set it in your environment, in any case, edit the file open_ai_key.py before run. Create an API Key, sing up for free. 
- 
All done. you can run the programs without params to get usage help. 
By José Puga 2023. Under MIT License.








