You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+22-17
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,9 @@
2
2
3
3
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://huggingface.co/spaces/philschmid/image-generation-editing).
console.log("Image saved as gemini-native-image.png");
52
51
}
53
52
}
54
53
} catch (error) {
@@ -76,7 +75,7 @@ First, set up your environment variables:
76
75
cp .env.example .env
77
76
```
78
77
79
-
Add your Google AI Studio API key to the `.env` file:
78
+
Add your Google AI Studio API key to the `.env` file:
80
79
81
80
_Get your `GEMINI_API_KEY` key [here](https://ai.google.dev/gemini-api/docs/api-key)._
82
81
@@ -93,7 +92,13 @@ npm run dev
93
92
94
93
Open [http://localhost:3000](http://localhost:3000) with your browser to see the application.
95
94
96
-
### Docker Deployment
95
+
## Deployment
96
+
97
+
### Vercel
98
+
99
+
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fgoogle-gemini%2Fgemini-image-editing-nextjs-quickstart&env=GEMINI_API_KEY&envDescription=Create%20an%20account%20and%20generate%20an%20API%20key&envLink=https%3A%2F%2Faistudio.google.com%2Fapp%2Fu%2F0%2Fapikey&demo-url=https%3A%2F%2Fhuggingface.co%2Fspaces%2Fphilschmid%2Fimage-generation-editing)
100
+
101
+
### Docker
97
102
98
103
1. Build the Docker image:
99
104
@@ -120,7 +125,7 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the
120
125
121
126
-[Next.js](https://nextjs.org/) - React framework for the web application
122
127
-[Google Gemini 2.0 Flash](https://deepmind.google/technologies/gemini/) - AI model for image generation and editing
123
-
-[shadcn/ui](https://ui.shadcn.com/) - Re-usable components built using Radix UI and Tailwind CSS
128
+
-[shadcn/ui](https://ui.shadcn.com/) - Re-usable components built using Radix UI and Tailwind CSS
0 commit comments