Nodes/ComfyUI-YogurtNodes/OpenRouter Image Understand
ComfyUI Node

OpenRouter Image Understand

Understand image content using OpenRouter API

By yogurt7771·Created 2 years ago·Updated 2 months ago· 0
OpenRouter Image Understand
  • image
  • image1
  • image2
  • image3
  • image4
  • history
  • text
  • history
  • payload
api_key
model_nameanthropic/claude-3.5-sonnet
infrastructure_providerauto
system_prompt
prompt
temperature1.00
top_p0.00
max_tokens8192
retry_count1
chat_template<-system-> {{system_instruction}} <-/system-> <-user-> {{prompt}} <-/user->
provider_list
proxy_url
seed-1
timeout0
extra{}
CategoryYogurtNodes/LLM

Inputs (21)

NameTypeDefaultDescription
api_keySTRINGAPI key for accessing OpenRouter API
model_nameSTRINGanthropic/claude-3.5-sonnetOpenRouter vision model name
infrastructure_providerCOMBOautoInfrastructure provider (auto, azure, aws, etc.) - Optional
system_promptSTRINGSystem-level prompt that affects the overall conversation style
promptSTRINGMain prompt content input by the user
temperatureFLOAT1.000–2Sampling temperature, higher values produce more random outputs
top_pFLOAT0.000–1Sampling probability threshold, controls output diversity
max_tokensINT81920–32768Maximum number of tokens in the generated text
retry_countINT11–10Number of retries when request fails
chat_templateSTRING<-system-> {{system_instruction}} <-/system-> <-user-> {{prompt}} <-/user->Content template for the generated text
provider_listSTRINGProvider list (comma separated, e.g: 'openai,azure,together'), empty means use infrastructure_provider
proxy_urlSTRING代理URL,格式: protocol://user:pass@addr:port,支持http,https,socks5,socks5h
seedINT-1-1–2147483647Random seed for generation (-1 for random)
timeoutINT00–2147483647Timeout for the request in seconds, 0 means no timeout
imageoptIMAGE
image1optIMAGE
image2optIMAGE
image3optIMAGE
image4optIMAGE
historyoptHISTORY
extraoptSTRING{}Extra parameters for the request, in JSON format

Outputs (3)

NameTypeDescription
textSTRING
historyHISTORY
payload*