Generate AI images with the Google Gemini model.

Nextjs quickstart for to generating and editing images with Google Gemini 2.0 Flash. It allows users to generate images from text prompts or edit existing images through natural language instructions, maintaining conversation context for iterative refinements. Try out the hosted demo at Hugging Face Spaces.
https://github.com/user-attachments/assets/8ffa5ee3-1b06-46a9-8b5e-761edb0e00c3
Get your GEMINI_API_KEY key here and start building.
How It Works:
For developers who want to call the Gemini API directly, you can use the Google Generative AI JavaScript SDK:
First, set up your environment variables:
Add your Google AI Studio API key to the .env file:
Get your GEMINI_API_KEY key here.
Then, install dependencies and run the development server:
Open http://localhost:3000 with your browser to see the application.
Or using an environment file:
Open http://localhost:3000 with your browser to see the application.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.


