Skip to main content
Best Practices

Add visual understanding capabilities

Vision for coding models

Some Token Plan models (qwen3.8-max, qwen3.7-plus, and others) natively support visual understanding and can process image inputs directly. For text-only models such as glm-5.2 and deepseek-v4-pro, you can add visual capabilities by configuring a local Skill.
Running the image understanding Skill consumes Token Plan Credits. No additional charges apply.

Prerequisites

  1. You have subscribed to Token Plan. See Getting started.
  2. You have completed the integration configuration in a Token Plan tool and can chat normally. See Clients and Developer Tools for your tool's setup guide.

Vision support

ModelVision supportDescription
qwen3.8-max, qwen3.8-flash, qwen3.7-plus, and othersYesNo additional configuration required. You can pass images directly.
qwen3.7-max, glm-5.2, deepseek-v4-proNoRequires a Skill or Agent to enable visual capabilities
qwen3.8-max, qwen3.7-plus, and other models have visual understanding capabilities. If you frequently need to process images, switching to one of these models is the simplest and recommended approach.
ToolHow to switch
Claude Code/model qwen3.8-max or /model qwen3.8-flash or /model qwen3.7-plus
OpenCode/models then search and select qwen3.8-max or qwen3.8-flash or qwen3.7-plus
Qwen Code/model then select qwen3.8-max or qwen3.8-flash or qwen3.7-plus
For more information about switching models in other coding tools, see Clients and Developer Tools. After switching, you can reference image paths directly in your conversation, or drag-and-drop/paste images.

Method 2: Add visual capabilities via Skill or Agent

If you need to use text-only models such as glm-5.2 or deepseek-v4-pro for image processing, you can configure a Skill or Agent to enable visual capabilities.
  • Claude Code
  • OpenCode
  1. Add the Skill Create an .claude folder in your project directory, then create an skills/image-analyzer directory inside it:
mkdir -p .claude/skills/image-analyzer
Create a SKILL.md file in that directory with the following content:
---
name: image-analyzer
description: Helps models without vision capabilities understand images. Use this skill when you need to analyze image content, extract information, text, or UI elements from images, or understand screenshots, charts, architecture diagrams, or any visual content. Simply pass in the image path to get a description.
model: qwen3.7-plus
---
qwen3.7-plus has visual understanding capabilities. Use qwen3.7-plus directly for image understanding.
The resulting directory structure is as follows:
.claude/
└── skills/
    └── image-analyzer/
        └── SKILL.md
  1. Get started
    1. Run claude in your project directory to start Claude Code, then run /model deepseek-v4-pro to switch to the deepseek-v4-pro model.
    2. Reference an image path in the conversation and ask a question, for example: Load image-analyzer skill and describe the content in screenshot.png.

FAQ

Cause: OpenCode does not enable a model's vision capabilities by default. You must explicitly declare the modalities parameter in the configuration file.Solution: Add a modalities field to the model definition in your 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": {
    "qwencloud-token-plan": {
      "npm": "@ai-sdk/anthropic",
      "name": "QwenCloud Token Plan",
      "options": {
        "baseURL": "https://token-plan.maas.qwencloudapi.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
            }
          }
        },
        "qwen3.8-max": {
          "name": "Kimi K2.5",
          "modalities": {
            "input": [
              "text",
              "image"
            ],
            "output": [
              "text"
            ]
          },
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 1024
            }
          }
        }
      }
    }
  }
}
Cause: OpenClaw requires the input field in the configuration file to determine whether a model supports vision 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.maas.qwencloudapi.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": "qwen3.8-max",
            "name": "qwen3.8-max",
            "reasoning": false,
            "input": ["text", "image"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 262144,
            "maxTokens": 32768
          }
        ]
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "bailian/qwen3.7-plus"
      },
      "models": {
        "bailian/qwen3.7-plus": {},
        "bailian/qwen3.8-flash": {},
        "bailian/qwen3.8-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