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 to Google Cloud and register for a free account.
-
Access Vertex AI Dashboard:
- Visit the Vertex 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.git cd 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-id VITE_GCLOUD_AUTH_TOKEN=your-access-token
-
Install gcloud CLI and run:
gcloud auth login gcloud 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 - [email protected]
Feel free to reach out if you encounter any issues or have further questions. Thank you!