README.md•649 B
# Google Gemini Image Generation
This sample uses the Gemini API for image generation. This sample uses the
experimental Gemini model, which is available for now only in the Gemini API,
not in Vertex AI api. If you need to run it on Vertex AI, please, refer to
the Imagen sample.
Prerequisites:
* A Google Cloud account with access to Gemini API.
* The `genkit` package.
To run this sample:
1. Install the `genkit` package.
2. Set the `GOOGLE_API_KEY` environment variable to your Google Cloud API key.
```bash
export GEMINI_API_KEY=<Your api key>
```
3. Run the sample.
## Run the sample
TODO
```bash
uv run src/google_genai_image.py
```