Skip to content

A user-friendly web app harnessing Google's Imagen 2 API for dynamic AI image generation based on user prompts, blending text and visuals seamlessly.

Notifications You must be signed in to change notification settings

Gokul-Raja84/ImaGenX-AI

Repository files navigation

ImaGenX-AI

A user-friendly web application that leverages Google's Most Advanced Text To Image Model through the Imagen 2 API. Users can input prompts, and the application fetches and displays images generated based on those prompts.

Explore Vertex AI

  1. Create a Google Cloud Account:

  2. Access Vertex AI Dashboard:

  3. Navigate to Model Garden:

    • Click on "Model Garden" on the left-hand menu.
  4. Filter and Select Imagen:

    • Use the filters to select "Vision" and click on "Imagen" for Image Generation and Editing.
  5. Retrieve API Information:

    • Scroll down to find the relevant API information.

Sample AI generated Images from ImaGenX-AI using Google's Imagen 2 API

an-expansive-wheat-field-bathed-in-the-moonlight-upscaled (1) a-panoramic-view-of-a-mountain-range-under-a-star-upscaled a-tropical-paradise-with-palm-trees-and-a-blue-o-upscaled

How to Run ImaGenX Locally

  1. Clone the Repository:

    • Clone the repository to your local machine and navigate to the project folder.
      git clone https://github.com/Gokul-Raja84/ImaGenX-AI.git
      cd ImaGenX-AI
  2. Install Dependencies:

    • Run the following command to install project dependencies.
      npm install
  3. Set Environment Variables:

    • Create a .env file in the project's root folder.

    • On Google Cloud Console:

      • Ensure you are on the correct project.
      • Enable Vertex AI in the "APIs & Services" section.
    • In the .env file:

      VITE_GOOGLE_PROJECT_ID=your-project-id
      VITE_GCLOUD_AUTH_TOKEN=your-access-token
    • Install gcloud CLI and run:

      gcloud auth login
      gcloud auth print-access-token
  4. Run the Application:

    • Start the application locally.
      npm run dev

Possible Issues and Solutions

  • Token Expiry:

    • The gcloud access token is valid for only 1 hour. Regenerate it and update the .env file.
      gcloud auth print-access-token
  • Prompt Compliance:

    • Some prompts may not comply with Google's laws, leading to errors. Check the browser console for details.

Acknowledgments

Feel Free to Explore and Experiment, I encourage you to explore the project, expriment with different approaches, and contribute to improving visualizations, and UI. Your contributions and innovative ideas can be pivotal in advancing this project's effectiveness and generating valuable outcomes

Contact

For feedback, suggestions, or collaborations, feel free to connect with me :

Contact Me - Gokul Raja

Email - [email protected]

Feel free to reach out if you encounter any issues or have further questions. Thank you!

About

A user-friendly web app harnessing Google's Imagen 2 API for dynamic AI image generation based on user prompts, blending text and visuals seamlessly.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published