- Notifications
You must be signed in to change notification settings - Fork0
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.
Gokul-Raja84/ImaGenX-AI
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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.
Create a Google Cloud Account:
- Go toGoogle Cloud and register for a free account.
Access Vertex AI Dashboard:
- Visit theVertex AI Dashboard in the Google Cloud Console.
Navigate to Model Garden:
- Click on "Model Garden" on the left-hand menu.
Filter and Select Imagen:
- Use the filters to select "Vision" and click on "Imagen" for Image Generation and Editing.
Retrieve API Information:
- Scroll down to find the relevant API information.
Sample AI generated Images from ImaGenX-AI using Google's Imagen 2 API
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.gitcd ImaGenX-AI
- Clone the repository to your local machine and navigate to the project folder.
Install Dependencies:
- Run the following command to install project dependencies.
npm install
- Run the following command to install project dependencies.
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-idVITE_GCLOUD_AUTH_TOKEN=your-access-token
Install gcloud CLI and run:
gcloud auth logingcloud auth print-access-token
Run the Application:
- Start the application locally.
npm run dev
- Start the application locally.
Token Expiry:
- The gcloud access token is valid for only 1 hour. Regenerate it and update the
.env
file.gcloud auth print-access-token
- The gcloud access token is valid for only 1 hour. Regenerate it and update the
Prompt Compliance:
- Some prompts may not comply with Google's laws, leading to errors. Check the browser console for details.
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
For feedback, suggestions, or collaborations, feel free to connect with me :
Contact Me - Gokul Raja
Email -gokulraja840@gmail.com
Feel free to reach out if you encounter any issues or have further questions. Thank you!