Skip to content

Latest commit

 

History

History
69 lines (36 loc) · 1.72 KB

README.md

File metadata and controls

69 lines (36 loc) · 1.72 KB

AI Image Generator using OpenAI and Node.js

Welcome to the AI Image Generator project! This application leverages the power of OpenAI to generate images based on textual descriptions.

Demo

You can see a live demo of the AI Image Generator here.

Features

  • Generate images from textual descriptions using OpenAI's GPT-3 model.
  • Customizable prompts for generating a wide range of images.
  • Simple and easy-to-use API.

Prerequisites

Before getting started, make sure you have the following prerequisites installed on your system:

  • Node.js: Installation Guide
  • OpenAI API Key: You need an API key from OpenAI to access their services. Get one here.

Installation

Follow these steps to set up the AI Image Generator:

  1. Clone the repository:

    git clone https://github.com/swetamishra123/node-project.git
    cd node-project
    

2.Install dependencies:

 ```bash
 npm install
  1. Configure your OpenAI API key by creating a '.env' file in the project root directory and adding your key:

    OPENAI_API_KEY=your-api-key
    

Usage

To generate images using the AI Image Generator, follow these steps:

  1. Start the Node.js application:

    npm start
    
  2. Access the application through your browser or API client.

3.Provide a textual prompt to generate an image. The application will send the prompt to the OpenAI API and display the generated image.

  1. Experiment with different prompts to generate various images.

Contributing

Contributions are welcome! If you'd like to contribute to this project.

License

This project is licensed under the 'MIT License'.