ComfyUI Node
OpenAI Image Understand
Understand image content using OpenAI vision models
OpenAI Image Understand
- image
- image1
- image2
- image3
- image4
- history
- text
- history
- payload
◄api_key►
◄base_url►
◄model_namegpt-5.1►
◄system_prompt—►
◄prompt—►
◄temperature1.00►
◄top_p0.00►
◄max_tokens4096►
◄frequency_penalty0.00►
◄presence_penalty0.00►
◄retry_count1►
◄chat_template<-system->
{{system_instruction}}
<-/system->
<-user->
{{prompt}}
<-/user->►
◄proxy_url►
◄timeout0►
◄extra{}►
◄image_send_modeopenai►
CategoryYogurtNodes/LLM
Inputs (22)
| Name | Type | Default | Description |
|---|---|---|---|
| api_key | STRING | API key for accessing OpenAI API | |
| base_url | STRING | Base URL for OpenAI API (leave blank for official API) | |
| model_name | STRING | gpt-5.1 | OpenAI vision model name |
| system_prompt | STRING | System-level prompt that affects the overall conversation style | |
| prompt | STRING | Question or instruction about the image | |
| temperature | FLOAT | 1.000–2 | Sampling temperature, higher values produce more random outputs |
| top_p | FLOAT | 0.000–1 | Sampling probability threshold, controls output diversity |
| max_tokens | INT | 40960–32768 | Maximum number of tokens in the generated text |
| frequency_penalty | FLOAT | 0.00-2–2 | Frequency penalty to reduce repetition |
| presence_penalty | FLOAT | 0.00-2–2 | Presence penalty to encourage new topics |
| retry_count | INT | 11–10 | Number of retry attempts if the request fails |
| chat_template | STRING | <-system-> {{system_instruction}} <-/system-> <-user-> {{prompt}} <-/user-> | Content template for the generated text |
| proxy_url | STRING | 代理URL,格式: protocol://user:pass@addr:port,支持http,https,socks5,socks5h | |
| timeout | INT | 00–2147483647 | Timeout for the request in seconds, 0 means no timeout |
| imageopt | IMAGE | — | |
| image1opt | IMAGE | — | |
| image2opt | IMAGE | — | |
| image3opt | IMAGE | — | |
| image4opt | IMAGE | — | |
| historyopt | HISTORY | — | |
| extraopt | STRING | {} | Extra parameters for the request, in JSON format |
| image_send_modeopt | COMBO | openai | 图片发送方式: openai(标准image_url对象), base64(x.ai兼容url字段) |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |
| history | HISTORY | — |
| payload | * | — |