- Introduction
- Features
- Getting Started
- Prerequisites
- Installation
- OpenAI API Key
- Usage
- Supported Image Sizes
- Limitations
- Additional Resources
- Contributing
The AI Image Generator is an exciting project that allows users to create images from text inputs using the power of artificial intelligence. It leverages the OpenAI API to transform textual descriptions into vibrant images. Whether you're a designer, a developer, or just someone looking for creative inspiration, this project can turn your ideas into visual representations.
- Generate images from text descriptions.
- Utilize the OpenAI API key for image generation.
- Free OpenAI account users can generate up to 5 images at a time.
- Paid OpenAI account users can generate up to 50 images at a time.
- Choose from three available image sizes: 256x256, 512x512, and 1024x1024.
Follow the steps below to set up the AI Image Generator project locally on your machine.
- Python 3.6 or above
- OpenAI Python package
- OpenAI API key (Free or Paid account)
Clone the repository:
git clone https://github.com/your-username/ai-image-generator.git
cd ai-image-generator
Install the required Python packages:
pip install -r requirements.txt
OpenAI API Key To use the AI Image Generator, you need an OpenAI API key. You can sign up for an account at OpenAI website and read their documentation on how to obtain an API key.
Once you have set up the project and obtained the OpenAI API key, you are ready to generate images from text. Run the following command:
python generate_image.py --input_text "A serene lake with mountains in the background."
Replace the example text with your desired description. The AI will process the input text and create a stunning image based on it.
The AI Image Generator supports three image sizes:
- 256x256 pixels
- 512x512 pixels
- 1024x1024 pixels When using the generator, you can specify the desired image size as a parameter.
- Free OpenAI account: Up to 5 images can be generated at a time.
- Paid OpenAI account: Up to 50 images can be generated at a time.
- Image size options: Limited to 256x256, 512x512, and 1024x1024 pixels.
Keep in mind the limitations of your OpenAI account to manage your image generation needs effectively.
For more information on using the OpenAI API, consult the official documentation at OpenAI website.
We welcome contributions to enhance the AI Image Generator project. If you find any issues or have ideas for improvements, please feel free to create a pull request.