ComfyUI Node
Gemini Image Generation
Generate images using Gemini's image generation models.
Gemini Image Generation
- client
- image
- description
◄prompt►
◄seed-1►
◄modelgemini-3.1-flash-image►
◄temperature1.0►
◄aspect_ratiodefault►
◄image_sizedefault►
◄response_modalitiesIMAGE►
◄enable_google_searchfalse►
CategoryERPK/Gemini
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | Description of the image to generate | |
| seed | INT | -1-1–2147483647 | Seed for reproducible outputs. Randomizes by default. |
| clientopt | GEMINI_API_CLIENT | Gemini API client from Gemini API Config node (uses API key from config) | |
| modelopt | COMBO | gemini-3.1-flash-image | Image generation model (overrides client model) |
| temperatureopt | FLOAT | 1.00–2 | Creativity level (higher = more creative) |
| aspect_ratioopt | COMBO | default | Image aspect ratio (all 14 ratios for 3.1 Flash; 10 for 3 Pro and 2.5 Flash) |
| image_sizeopt | COMBO | default | Image resolution (1K-4K for 3.1 Flash and 3 Pro; 2.5 Flash fixed at 1024px) |
| response_modalitiesopt | COMBO | IMAGE | What to return - image only or both text description and image |
| enable_google_searchopt | BOOLEAN | false | Enable Google Search grounding (Gemini 3 models only, not 2.5 Flash) |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| description | STRING | — |