Qwen视觉丨API
Ask a vision model what's in the image, right inside the graph
- image
- analysis_result
- conversation_info
- total_tokens
Sometimes the thing your workflow needs is someone to look at the image. QwenVisionAPI is the QING pack's VLM node: it sends an image plus a text question to Alibaba's Qwen-VL models over the API and returns the analysis as a string. Captioning, OCR, "what's wrong with this face," image-to-prompt - all without running a vision model locally. It's the same hosted-LLM pattern as the pack's QwenLanguageAPI, but with eyes.
How it works
Inputs: image (the IMAGE to analyze), text_input (your question, default "describe this image"), platform (阿里云百炼 / 硅基流动), model (qwen2.5-vl-72b-instruct, qwen3-vl-plus, qwen-vl-max-latest, or qwen3-vl-235b-a22b-instruct), max_tokens (default 2048), and history (default 5 - vision conversations are usually short). Optionals: temperature (0.3), top_p (0.8), image_quality (auto / low / high), and clear_history.
Outputs: analysis_result (the model's text answer), conversation_info, and total_tokens.
Same provider plumbing as the language node - OpenAI-compatible endpoints on DashScope or SiliconFlow, keys from env (DASHSCOPE_API_KEY / SILICONFLOW_API_KEY) or the QING settings panel, and model names mapped to real API IDs. image_quality is the knob worth knowing: low sends a downscaled image for speed (fine for OCR and broad description), high sends more detail for fine visual reasoning, auto lets the API decide. Conversations cache per platform+model so you can hold a follow-up dialogue about the same image.
Where you'd reach for it
Captioning is the big one - feeding a LoRA training run with consistent natural-language captions is exactly the VLM-in-the-loop job from the KB's lora-training doc, and Qwen-VL is strong at it (including, importantly for this ecosystem, uncensored coverage). It's also the cleanest way to do image-to-structured-prompt: describe a reference image, feed the description to a prompt template, generate a variation. In a batch pipeline, pair analysis_result with a text compare or QING_ModelFallback to gate downstream work on what the model saw.
Installing and configuring
cd ComfyUI/custom_nodes
git clone https://github.com/GAO-SHIQING/ComfyUI-QING
cd ComfyUI-QING
python install_dependencies.py
Restart ComfyUI after. The openai client (pulled by the installer) is the only real dependency. Then get a key - DashScope at bailian.console.aliyun.com or SiliconFlow at cloud.siliconflow.cn - and enter it under Settings → QING → API configuration, or set the env var. Keys stay local and are injected at runtime, never embedded in your workflow. (Ignore the README's GAOSHI-QING clone-URL typo; the repo is GAO-SHIQING/ComfyUI-QING.)
Things to know
Token math is where vision bills add up: every call ships the image as base64 plus your text, so max_tokens and history compound quickly - that's why the defaults are smaller than the language node's. Use image_quality = low for high-volume jobs where precision doesn't matter. Network and key required, obviously, and a SiliconFlow account only exposes the open qwen2.5-vl model while DashScope has the whole roster. And like any freeform VLM output, validate before you trust: for OCR or caption work the result is usually excellent, but for programmatic branching you'll want to constrain the question hard.
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | 输入要分析的图像 | |
| text_input | STRING | 请描述这张图片的内容。 | 输入要发送给Qwen视觉模型的文本问题,Qwen-VL擅长图像理解、文档分析、OCR识别和视觉推理 |
| platform | COMBO | 阿里云百炼 | 选择API服务提供商 |
| model | COMBO | qwen3-vl-235b-a22b-instruct | 选择要使用的Qwen视觉模型 📋 阿里云百炼模型特点: 🔸 qwen3-vl-plus:新一代视觉模型,图像理解能力强,推荐首选 🔸 qwen3-vl-235b-a22b-instruct:大参数视觉模型,精度更高 🔸 qwen-vl-max-latest:最新旗舰视觉模型,功能最全面 🔸 qwen2.5-vl-72b-instruct:经典大模型版本,稳定可靠 📋 硅基流动模型特点: 🔸 qwen2.5-vl-72b-instruct:开源版本,性价比高 💡 Qwen-VL系列在图像理解、文档OCR、图表分析、视觉推理方面表现优异 |
| max_tokens | INT | 20481–32768 | 模型生成文本时最多能使用的token数量 |
| history | INT | 51–25 | 保持的历史对话轮数 |
| temperatureopt | FLOAT | 0.30–2 | 控制生成文本的随机性 |
| top_popt | FLOAT | 0.800–1 | 控制生成文本的多样性 |
| image_qualityopt | COMBO | auto | 图像处理质量:auto(自动选择), low(低质量,速度快), high(高质量,精度高) |
| clear_historyopt | BOOLEAN | false | 是否清除历史对话记录 |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| analysis_result | STRING | — |
| conversation_info | STRING | — |
| total_tokens | INT | — |