ComfyUI Node
GRSAI Generate Image
Generate or edit images with the GRSAI API and return torch tensors
GRSAI Generate Image
- image
- image1
- image2
- image3
- image4
- history
- image
- text
- history
◄api_key►
◄base_url►
◄model_namenano-banana-pro►
◄system_prompt►
◄prompt—►
◄aspect_ratioauto►
◄image_size1K►
◄retry_count1►
◄poll_interval_ms2000►
◄max_wait_seconds300►
◄chat_template<-system->
{{system_instruction}}
<-/system->
<-user->
{{prompt}}
<-/user->►
◄proxy_url►
◄timeout0►
◄image_urls►
◄extra{}►
◄draw_typeauto►
CategoryYogurtNodes/LLM
Inputs (22)
| Name | Type | Default | Description |
|---|---|---|---|
| api_key | STRING | API key for accessing the GRSAI API | |
| base_url | STRING | Base URL for the GRSAI API, leave blank to use config/env/default host | |
| model_name | COMBO | nano-banana-pro | GRSAI model name from the GRSAI documentation |
| system_prompt | STRING | Optional system prompt prepended locally before the request prompt | |
| prompt | STRING | Prompt content for image generation or editing | |
| aspect_ratio | COMBO | auto | Output image ratio documented by GRSAI |
| image_size | COMBO | 1K | Output image size documented by GRSAI |
| retry_count | INT | 1 | Number of retries when submit or poll fails |
| poll_interval_ms | INT | 2000 | Polling interval in milliseconds for task result queries |
| max_wait_seconds | INT | 300 | Maximum total time to wait for GRSAI task completion |
| chat_template | STRING | <-system-> {{system_instruction}} <-/system-> <-user-> {{prompt}} <-/user-> | Local prompt template used to combine the system prompt and prompt |
| proxy_url | STRING | Proxy URL, format: protocol://user:pass@addr:port | |
| timeout | INT | 00–2147483647 | Timeout for each request in seconds, 0 means no timeout |
| imageopt | IMAGE | — | |
| image1opt | IMAGE | — | |
| image2opt | IMAGE | — | |
| image3opt | IMAGE | — | |
| image4opt | IMAGE | — | |
| image_urlsopt | STRING | Reference image URLs or data URLs, accepts JSON array or newline/comma separated values | |
| historyopt | HISTORY | — | |
| extraopt | STRING | {} | Extra request parameters in JSON format |
| draw_typeopt | COMBO | auto | Endpoint type for /v1/draw/. Use auto to infer from the selected model name |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| text | STRING | — |
| history | HISTORY | — |