Skip to content

AI Image Generator: Transform text into captivating images using OpenAI API. Free users get 5 images, while paid users enjoy 50 images at 256x256, 512x512, or 1024x1024. Unleash your creativity now!

Notifications You must be signed in to change notification settings

Soumit-Das/Text_to_Image_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Project Name: AI Image Generator

Table of Contents

  • Introduction
  • Features
  • Getting Started
  • Prerequisites
  • Installation
  • OpenAI API Key
  • Usage
  • Supported Image Sizes
  • Limitations
  • Additional Resources
  • Contributing

Introduction

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.

Features

  • 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.

Getting Started

Follow the steps below to set up the AI Image Generator project locally on your machine.

Prerequisites

  • Python 3.6 or above
  • OpenAI Python package
  • OpenAI API key (Free or Paid account)

Installation

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.

Usage

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.

Supported Image Sizes

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.

Limitations

  • 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.

Additional Resources

For more information on using the OpenAI API, consult the official documentation at OpenAI website.

Contributing

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.

About

AI Image Generator: Transform text into captivating images using OpenAI API. Free users get 5 images, while paid users enjoy 50 images at 256x256, 512x512, or 1024x1024. Unleash your creativity now!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published