Skip to main content
Analyze two image URLs with a tool-capable Qwen3-VL model and enrich both responses with web search.
The source combines WebSearchTools with qwen-vl-plus, while Alibaba documents function calling for the Qwen3-VL families. Its second Wikimedia thumbnail URL also returns HTTP 400. Apply both migrations before running. See Alibaba’s function-calling model list.
image_agent.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your DashScope API key

4

Use a tool-capable vision model

Replace DashScope(id="qwen-vl-plus") with DashScope(id="qwen3-vl-plus") in the saved file.
5

Replace the unavailable image

Replace https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/1200px-Cat03.jpg with https://agno-public.s3.amazonaws.com/images/krakow_mariacki.jpg in the saved file.
6

Run the example

Save the code above as image_agent.py, then run:
Full source: cookbook/90_models/dashscope/image_agent.py