Giter Club home page Giter Club logo

ai-image-generator's Introduction

AI Image Generator

AI Image Generator

Overview

The AI Image Generator is a robust Node.js application utilizing the Express.js framework. This application leverages OpenAI's DALL-E 3 model to generate images based on user inputs, creating a seamless and interactive experience.

Key Features

  • Image Generation: Utilizes the DALL-E 3 model to generate images from textual descriptions.
  • User Input Handling: Accepts and processes user inputs to create customized image prompts.
  • API Integration: Seamlessly integrates with OpenAI's API for advanced image generation capabilities.
  • Data Persistence: Stores user details in a CSV file for record-keeping and analytics.

Technologies Used

  • Node.js
  • Express.js
  • Multer
  • OpenAI's DALL-E 3
  • Dotenv for environment management

Installation and Setup

Ensure you have Node.js and Visual Studio Code installed on your machine. If not, follow these instructions:

  1. Node.js Installation: Download and install Node.js from here.
  2. VS Code Installation: Download and install Visual Studio Code from here.

Once the installations are complete, proceed with the following steps:

  1. Clone the Repository:

    git clone https://github.com/RaheesAhmed/ai-image-generator.git
    
  2. Clone the repository: git clone https://github.com/RaheesAhmed/ai-image-generator.git

  3. Install dependencies: Run npm install in the project directory.

  4. Create a .env file in the project directory and add your OpenAI API key:

    OPENAI_API_KEY=your-api-key
    
  5. Start the server: Run npm start in the project directory.

  6. Access the app: Open your web browser and go to http://localhost:3000/.

Customization

To customize the prompt used in the application, follow the steps below:

  1. Open the index.js file in your project directory.

  2. Find the following line of code:

    app.post("/generate-images", upload.none(), async (req, res) => {
      const prompt = `Create a cinematic still in 32k resolution and landscape format depicting ${mainScene}, located at ${location}. The main character is ${mainCharacter}. Additional characters include ${additionalCharacters}. ${additionalInfo}`;
    });
  3. Modify the prompt variable as needed.

Developed By

Rahees Ahmed

ai-image-generator's People

Contributors

raheesahmed avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

emirhan87

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.