Nodes/ComfyUI-QING/GLM视觉丨API
ComfyUI Node

GLM视觉丨API

Ask a GLM vision model what's actually in your image

By sheengoa·Created about a year ago·Updated 19 days ago· 16
GLM视觉丨API
  • image
  • generated_text
  • conversation_info
  • total_tokens
text_input请描述这张图片的内容。
platform智谱AI
modelGLM-4.1V-Thinking-FlashX
max_tokens4096
history8
temperature0.7
top_p0.90
image_qualityauto
clear_historyfalse

Captioning, image QA, "describe this and turn it into a better prompt" - that's the vision-model job, and GLMVisionAPI is the QING pack's route into Zhipu's GLM vision models. You feed it an image and a question, it returns a text answer, and like the pack's other chat nodes it keeps a short multi-turn history so you can interrogate the same image or refine a description across runs. If you're building the caption-image → prompt-enhancer → sampler chain that the KB's LLM essay describes as the mainstream 2026 pattern, this is a serviceable API node for the first link.

It's part of ComfyUI-QING's API category, sharing the pack's framework with the language nodes - so platform, key, and history handling all work the same way. The platform dropdown offers 智谱AI and 硅基流动, and the vision model roster differs between them.

How it works. The image input is the one required visual: your IMAGE tensor gets sent to the model along with text_input (default "请描述这张图片的内容" - describe this image). The platform routes to Zhipu or SiliconFlow; the model field lists each host's vision lineup. Zhipu side you get the mainstream GLM-4V, GLM-4V-Plus, GLM-4V-Flash, GLM-4.5V; SiliconFlow contributes GLM-4.1V-9B-Thinking (a 9B chain-of-thought model, and the default) and GLM-4.1V-Thinking-FlashX. The image_quality knob (auto/low/high) trades speed against detail, same as the other vision nodes in the pack.

The inputs that matter.

  • image - what the model looks at.
  • text_input - your question or captioning instruction.
  • platform + model - host and model; keep the platform matched to the key you hold.
  • max_tokens (default 4096) and history (default 8 rounds).
  • Optional: temperature, top_p, image_quality, clear_history.

Outputs: generated_text, conversation_info, total_tokens. Wire generated_text into a text preview, a prompt template, or a filename builder.

How to install. ComfyUI-QING is a one-pack install - search "ComfyUI-QING" in ComfyUI Manager, or:

cd ComfyUI/custom_nodes
git clone https://github.com/GAO-SHIQING/ComfyUI-QING
cd ComfyUI-QING
python install_dependencies.py

Then configure the key in Settings → QING → API Configuration and restart. The README's clone URL is typo'd (GAOSHI-QING, missing the H) - use the URL above or Manager.

Troubleshooting. Same family of issues as the pack's other API nodes: platform/key mismatch is the top error (Zhipu dropdown + SiliconFlow key = 401), and some models exist on only one host. Vision calls are slower than language calls, especially with image_quality at high - if your workflow times out, drop the quality or the max tokens. And the usual API-node cautions apply: your image and question leave the machine to the provider, and the model's content policy applies - GLM vision won't describe what it's trained to refuse. For anything NSFW or attribution-sensitive, the local captioner path (JoyCaption, Florence-2) remains the community's default.

CategoryQING/API

Inputs (10)

NameTypeDefaultDescription
imageIMAGE输入要分析的图像
text_inputSTRING请描述这张图片的内容。输入要发送给GLM视觉模型的文本问题,GLM擅长图像理解、文档分析和视觉推理
platformCOMBO智谱AI选择API服务提供商
modelCOMBOGLM-4.1V-Thinking-FlashX选择要使用的GLM视觉模型 📋 智谱AI模型特点: 🔸 GLM-4.5V:最新视觉模型,全面提升的图像理解能力 🔸 GLM-4.1V-Thinking-FlashX:思维链推理版本,擅长复杂视觉分析 🔸 GLM-4V-Flash:快速响应版本,适合实时应用 🔸 GLM-4V:标准视觉版本,平衡性能和效果 🔸 GLM-4V-Plus:增强版本,高精度图像理解 📋 硅基流动模型特点: 🔸 GLM-4.5V:高性能视觉模型,性价比优秀 🔸 GLM-4.1V-9B-Thinking:9B参数思维链模型,高效推理 💡 GLM视觉模型在文档理解、图表分析、场景识别方面表现优异
max_tokensINT40961–32768模型生成文本时最多能使用的token数量
historyINT81–25保持的历史对话轮数
temperatureoptFLOAT0.70–2控制生成文本的随机性
top_poptFLOAT0.900–1控制生成文本的多样性
image_qualityoptCOMBOauto图像处理质量:auto(自动选择), low(低质量,速度快), high(高质量,精度高)
clear_historyoptBOOLEANfalse是否清除历史对话记录

Outputs (3)

NameTypeDescription
generated_textSTRING
conversation_infoSTRING
total_tokensINT