AI Image Generator is a Python application that utilizes OpenAI's GPT-3 to generate images based on user prompts and style preferences. This application provides a graphical user interface (GUI) built using Tkinter for a seamless user experience.
- Generate images from textual prompts.
- Choose from different art styles such as Realistic, Cartoon, 3D Illustration, and Flat Art.
- Control the number of images generated with a slider.
- Display the generated images directly in the GUI.
- Python 3.x
customtkinter
library (Install withpip install customtkinter
)openai
library (Install withpip install openai
)PIL
library (Install withpip install Pillow
)requests
library (Install withpip install requests
)
-
Set up your OpenAI API key.
-
Run the
main.py
script to launch the application. -
Enter a prompt in the "Prompt" text box.
-
Select a style from the "Style" dropdown menu.
-
Adjust the number of images to generate using the slider.
-
Click the "Generate" button to create and display the images.
- You can further customize the GUI's appearance and layout by modifying the code in
main.py
. - Adjust the initial window size by changing the
root.geometry
line.
- OpenAI for their powerful GPT-3 model.
- customtkinter for enhanced Tkinter widgets.