Skip to main content

Add visual understanding capabilities

Some models supported by Token Plan (such as qwen4-max and qwen3.7-plus) natively support visual understanding and can directly process image inputs. For text-only models such as glm-5.2 and deepseek-v4-pro, you can add a local Skill to give them visual capabilities.

Running the image understanding Skill consumes Token Plan Credits. No additional charges apply.

Prerequisites

  1. You have subscribed to Token Plan (Personal or Team).
  2. You have completed the integration configuration in an AI tool and can chat normally. For details, see Clients and Developer Tools.

Vision support

For whether each model supports visual understanding, see the supported model tables in Token Plan Personal Edition overview and Token Plan Team Edition overview. Models such as qwen4-max and qwen3.7-plus have visual understanding capabilities. If you frequently need to process images, switching directly to these models is the simplest and recommended approach.

Tool

How to switch models

Claude Code

/model qwen4-max or /model qwen3.8-flash or /model qwen4-max or /model qwen3.8-flash or /model qwen3.7-plus

For more ways to switch models in other programming tools, see Connect clients/development tools. After switching, you can directly reference image paths in the conversation, or drag and drop/paste images.

Method 2: Add visual capabilities via a Skill or Agent

To process images with models that do not support vision, such as glm-5.2 and deepseek-v4-pro, you can configure a Skill or Agent.
  • Claude Code
  • OpenCode
  1. Add a Skill Create a new skills/image-analyzer folder under the .claude folder in your project directory:
mkdir -p .claude/skills/image-analyzer
Create a SKILL.md file in this folder and add the following content:
---
name: image-analyzer
description: 帮助没有视觉能力的模型进行图像理解。当需要分析图像内容、提取图片中的信息、文字、界面元素,或理解截图、图表、架构图等任何视觉内容时,使用此技能,传入图片路径即可获得描述信息。
model: qwen3.7-plus
---
qwen3.7-plus具有视觉理解能力,请直接使用qwen3.7-plus模型进行图片理解。
The folder structure after creation is as follows:
.claude/
└── skills/
    └── image-analyzer/
        └── SKILL.md
  1. Get Started
    1. Run claude in the project directory to start Claude Code, then run /model deepseek-v4-pro to switch to the deepseek-v4-pro model.
    2. Download alibabacloud.png to the project directory and ask: Load image-analyzer skill and describe the information displayed at the alibabacloud.png banner location. You will receive a response like the following: aliyun.png is a screenshot of the Alibaba Cloud official website homepage. The banner title is Coding Plan now supports Qwen3.5. The body text introduces that Alibaba Cloud Model Studio supports models such as Qwen3.5, Kimi-k2.5, and GLM-4.7, with the first month for new customers at only 7.9 CNY. The page provides Subscribe Now and Contact Us entry points.

FAQ

Reason: OpenCode does not enable the model's visual capabilities by default. You need to explicitly declare the modalities parameter in the configuration file.Solutions: Add the modalities field to the model definition in the OpenCode configuration file and set input to ["text", "image"], as shown below:
Replace sk-sp-xxx with your Token Plan API Key.
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "bailian-token-plan": {
      "npm": "@ai-sdk/anthropic",
      "name": "Model Studio Token Plan",
      "options": {
        "baseURL": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1",
        "apiKey": "sk-sp-xxx"
      },
      "models": {
        "qwen3.7-plus": {
          "name": "Qwen3.7 Plus",
          "modalities": {
            "input": [
              "text",
              "image"
            ],
            "output": [
              "text"
            ]
          },
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 1024
            }
          }
        },
        "qwen3.8-flash": {
          "name": "Qwen3.8 Flash",
          "modalities": {
            "input": [
              "text",
              "image"
            ],
            "output": [
              "text"
            ]
          },
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 1024
            }
          }
        },
        "qwen4-max": {
          "name": "Qwen4 Max",
          "modalities": {
            "input": [
              "text",
              "image"
            ],
            "output": [
              "text"
            ]
          },
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 1024
            }
          }
        }
      }
    }
  }
}
Reason: OpenClaw relies on the input field in the configuration file to determine whether the model supports visual capabilities.Solution:
  1. In the ~/.openclaw/openclaw.json configuration file, ensure the model definition includes the "input": ["text", "image"] field.
{
  "models": {
    "mode": "merge",
    "providers": {
      "bailian": {
        "baseUrl": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1",
        "apiKey": "YOUR_API_KEY",
        "api": "openai-completions",
        "models": [
          {
            "id": "qwen3.7-plus",
            "name": "qwen3.7-plus",
            "reasoning": false,
            "input": ["text", "image"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 1000000,
            "maxTokens": 65536
          },
          {
            "id": "qwen3.8-flash",
            "name": "qwen3.8-flash",
            "reasoning": false,
            "input": ["text", "image"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 1000000,
            "maxTokens": 65536
          },
          {
            "id": "qwen4-max",
            "name": "qwen4-max",
            "reasoning": false,
            "input": ["text", "image"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 1000000,
            "maxTokens": 131072
          }
        ]
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "bailian/qwen3.7-plus"
      },
      "models": {
        "bailian/qwen3.7-plus": {},
        "bailian/qwen3.8-flash": {},
        "bailian/qwen4-max": {}
      }
    }
  },
  "gateway": {
    "mode": "local"
  }
}
  1. After modifying the configuration, you must clear the OpenClaw model cache and restart. Otherwise, the old configuration will remain in effect.
rm ~/.openclaw/agents/main/agent/models.json
openclaw gateway restart