Next.js quickstart for Gemini 2.0 Flash image generation/editing
Top 64.6% on sourcepulse
This repository provides a Next.js quickstart for integrating Google's Gemini 2.0 Flash model for native image generation and editing. It targets developers looking to build applications that allow users to create images from text prompts or modify existing images via natural language, maintaining conversational context for iterative refinements.
How It Works
The project leverages the Google Generative AI JavaScript SDK to interact with Gemini 2.0 Flash. It supports text-to-image generation by sending text prompts to the model and image editing by providing an image along with natural language instructions. The architecture maintains conversation history, enabling context-aware iterative image modifications.
Quick Start & Requirements
npm install
npm run dev
GEMINI_API_KEY
from Google AI Studio.Highlighted Details
Maintenance & Community
No specific contributors, sponsorships, or community links (Discord/Slack) are mentioned in the README.
Licensing & Compatibility
Licensed under the Apache License 2.0. This license is permissive and generally compatible with commercial and closed-source applications.
Limitations & Caveats
The README does not specify version requirements for Node.js or detail any known limitations or bugs of the Gemini 2.0 Flash model itself within this quickstart.
2 months ago
1 day