Qwen3-VL-Plus
Copy success!
Overview
The Qwen3 series VL models effectively integrates thinking and non-thinking modes, achieving world-leading performance in visual agent capabilities on public benchmark datasets such as OS World. This version features comprehensive upgrades in areas like visual coding, spatial perception, and multimodal reasoning, significantly enhancing visual perception and recognition abilities, and supporting the understanding of ultra-long videos.
Input
TextImageVideo
Output
Text
Features
Prefix Completion
Enable Partial Mode when calling the Qwen API to make the model continue strictly from your provided prefix text.View docsFunction Calling
Use function calling to connect large language models with external tools and systems.View docsCache
Context Cache stores shared prefixes for long-context requests to reduce repeated computation, improve latency, and lower cost.View docsStructured Outputs
Structured Outputs help ensure the model returns a JSON string in the expected format.View docsPricing
- Input$0.2Per 1M tokens
- Output$1.6Per 1M tokens
- Input(Implicit Cache)$0.04Per 1M tokens
- 5-Minute Explicit Cache Creation$0.25Per 1M tokens
- Explicit Cache Read$0.02Per 1M tokens
Rate Limits & Context
- Max Input252K
- Max Output32K
- Max Input (Thinking)252K
- Max Output (Thinking)32K
- Context256K
- Max Reasoning80K
- TPMTokens Per Minute1000000
- RPMRequests Per Minute1200
API Reference
Call APICopy success!
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
from openai import OpenAI
import os
client = OpenAI(
api_key = os.getenv("DASHSCOPE_API_KEY"),
base_url="https://ap-southeast-1.maas.qwencloudapi.com/compatible-mode/v1"
)
reasoning_content = "" # Define complete reasoning process
answer_content = "" # Define complete response
is_answering = False # Determine if reasoning has ended and response has started
enable_thinking = False
completion = client.chat.completions.create(
model="qwen3-vl-plus",
messages=[
{
"role": "user",
"content": [
{
"type": "image_url",
"image_url": {
"url": "https://img.alicdn.com/imgextra/i1/O1CN01gDEY8M1W114Hi3XcN_!!6000000002727-0-tps-1024-406.jpg"
},
},
{"type": "text", "text": "How to solve this problem?"},
],
},
],
stream=True,
extra_body={
'enable_thinking': True,
"thinking_budget": 500},
)
if enable_thinking:
print("\n" + "=" * 20 + "Reasoning Process" + "=" * 20 + "\n")
for chunk in completion:
if not chunk.choices:
print("\nUsage:")
print(chunk.usage)
else:
delta = chunk.choices[0].delta
if hasattr(delta, 'reasoning_content') and delta.reasoning_content != None:
print(delta.reasoning_content, end='', flush=True)
reasoning_content += delta.reasoning_content
else:
if delta.content != "" and is_answering is False:
print("\n" + "=" * 20 + "Complete Response" + "=" * 20 + "\n")
is_answering = True
print(delta.content, end='', flush=True)
answer_content += delta.content