ComfyUI Node
π± Gemini Imagen
Gemini Imagen node is for image generation and modification.
π± Gemini Imagen
- system_instruction
- image
- response
βtext_promptA cat with a hatβΊ
βapi_keyβΊ
βmodelgemini-2.0-flash-preview-image-generationβΊ
βmax_tokens5000βΊ
βtemperature0.7βΊ
βmodify_imagefalseβΊ
βimageβΎβΊ
CategoryArtha/LLM/GEMINI
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| text_prompt | STRING | A cat with a hat | β |
| api_key | STRING | API key will be visible in plain text. Consider adding your api to the api.json located inside this custom node folder. | |
| model | COMBO | gemini-2.0-flash-preview-image-generation | 2 options: gemini-2.5-flash-image-preview, gemini-2.0-flash-preview-image-generation |
| max_tokens | INT | 50001β8192 | For Gemini models, a token is equivalent to about 4 characters. 100 tokens is equal to about 60-80 English words. |
| temperature | FLOAT | 0.70β2 | A temperature of 0 means only the most likely tokens are selected, and there's no randomness. Conversely, a high temperature injects a high degree of randomness into the tokens selected by the model, leading to more unexpected, surprising model responses. |
| modify_image | BOOLEAN | false | β |
| image | COMBO | 1 options: example.png | |
| system_instructionopt | ARTHAINSTRUCT | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | β |
| response | STRING | β |