ComfyUI Node
NanoBanana - Prompt Refiner
A ComfyUI node in NanoBanana2/Text with 9 inputs and 1 output.
NanoBanana - Prompt Refiner
- network
- refined_prompt
◄api_key►
◄modelgemini-2.5-pro►
◄custom_model►
◄base_prompt►
◄targetimage►
◄system_instruction►
◄thinking_levelNONE►
◄temperature0.70►
CategoryNanoBanana2/Text
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| api_key | STRING | NanoBanana - API key. Leave blank to use GEMINI_API_KEY env var. | |
| model | COMBO | gemini-2.5-pro | NanoBanana - model for prompt refinement. |
| custom_model | STRING | Override with a custom model ID. | |
| base_prompt | STRING | The prompt to refine and improve. | |
| targetopt | COMBO | image | What downstream generator the prompt is for. v2.0 hardcoded 'image generator', breaking the node for video/music/text refinement. |
| system_instructionopt | STRING | Instructions for how to refine the prompt. Leave empty for default behavior. | |
| thinking_levelopt | COMBO | NONE | How much the model should reason before answering. |
| temperatureopt | FLOAT | 0.700–2 | Controls randomness in refinement. |
| networkopt | NB_NETWORK | Optional. Wire a NanoBanana - Network Route node here to route this request through that proxy (e.g. US egress). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| refined_prompt | STRING | — |