Analyze images and videos using Alibaba Cloud's Qwen Vision API (通义千问视觉模型).
Analyze an image:
bash
uv run {baseDir}/scripts/analyze_image.py --image "/path/to/image.jpg" --prompt "请描述这张图片" --api-key sk-xxx
With custom model:
bash
uv run {baseDir}/scripts/analyze_image.py --image "/path/to/image.jpg" --model qwen-vl-max-latest --api-key sk-xxx
Get your API key from:
models.providers.bailian.apiKey in ~/.openclaw/openclaw.jsonskills."qwen-image".apiKey in ~/.openclaw/openclaw.jsonDASHSCOPE_API_KEY environment variableModelDescriptionqwen-vl-max-latestLatest max model (default)qwen-vl-plus-latestFaster, cost-effective
TaskPromptDescribe"请详细描述这张图片的内容"OCR"提取图片中的所有文字"Count"数一下图中有多少个物体"Analyze"分析这张图表的数据趋势"Identify"这是什么地方/物品?"