Nodes/ComfyUI-YogurtNodes/GRSAI Generate Image
ComfyUI Node

GRSAI Generate Image

Generate or edit images with the GRSAI API and return torch tensors

By yogurt7771·Created 2 years ago·Updated 2 months ago· 0
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)

NameTypeDefaultDescription
api_keySTRINGAPI key for accessing the GRSAI API
base_urlSTRINGBase URL for the GRSAI API, leave blank to use config/env/default host
model_nameCOMBOnano-banana-proGRSAI model name from the GRSAI documentation
system_promptSTRINGOptional system prompt prepended locally before the request prompt
promptSTRINGPrompt content for image generation or editing
aspect_ratioCOMBOautoOutput image ratio documented by GRSAI
image_sizeCOMBO1KOutput image size documented by GRSAI
retry_countINT1Number of retries when submit or poll fails
poll_interval_msINT2000Polling interval in milliseconds for task result queries
max_wait_secondsINT300Maximum total time to wait for GRSAI task completion
chat_templateSTRING<-system-> {{system_instruction}} <-/system-> <-user-> {{prompt}} <-/user->Local prompt template used to combine the system prompt and prompt
proxy_urlSTRINGProxy URL, format: protocol://user:pass@addr:port
timeoutINT00–2147483647Timeout for each request in seconds, 0 means no timeout
imageoptIMAGE
image1optIMAGE
image2optIMAGE
image3optIMAGE
image4optIMAGE
image_urlsoptSTRINGReference image URLs or data URLs, accepts JSON array or newline/comma separated values
historyoptHISTORY
extraoptSTRING{}Extra request parameters in JSON format
draw_typeoptCOMBOautoEndpoint type for /v1/draw/. Use auto to infer from the selected model name

Outputs (3)

NameTypeDescription
imageIMAGE
textSTRING
historyHISTORY