Qwen-VL-Max

Will be retired on October 10, 2026View announcement
Copy success!
Add to Compare

Overview

Qwen-VL-Max is a large-scale visual language model of the Qwen series. Compared to the Plus version, it further enhances visual reasoning capabilities and instruction-following abilities, offering higher levels of visual perception and cognition. It delivers optimal performance on more complex tasks.

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 docs

Function Calling

Use function calling to connect large language models with external tools and systems.View docs

Cache

Context Cache stores shared prefixes for long-context requests to reduce repeated computation, improve latency, and lower cost.View docs

Structured Outputs

Structured Outputs help ensure the model returns a JSON string in the expected format.View docs

Batches

Asynchronously process requests in batches to reduce costs.View docs

Web Search

Enable web search so the model can answer with real-time retrieved data.View docs

Fine-tuning

Train models on sample data to better adapt them to specific tasks.View docs

Pricing

  • Input
    $0.8Per 1M tokens
  • Output
    $3.2Per 1M tokens
  • Input(Implicit Cache)
    $0.16Per 1M tokens
  • Input(Batch File)
    $0.4Per 1M tokens
  • Output(Batch File)
    $1.6Per 1M tokens

Rate Limits & Context

  • Max Input
    129K
  • Max Output
    32K
  • Context
    131K
  • TPMTokens Per Minute
    1M
  • RPMRequests Per Minute
    1K

API Reference

Call API
Copy success!
1234567891011121314151617181920212223242526
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.getenv("DASHSCOPE_API_KEY"),
    base_url="https://maas.qwencloudapi.com/compatible-mode/v1",
)

completion = client.chat.completions.create(
    model="qwen-vl-max",
    messages=[
        {
            "role": "user",
            "content": [
                {
                    "type": "image_url",
                    "image_url": {
                        "url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20241108/ctdzex/biaozhun.jpg"
                    },
                },
                {"type": "text", "text": "Output the text in the image only."},
            ],
        },
    ],
)
print(completion.choices[0].message.content)