Qwen3-Open-Source

Copy success!
Try AIAdd to Compare

Overview

The largest dense model in the Qwen3-VL series, its reasoning version boasts multimodal reasoning capabilities second only to Qwen3-VL-235B-Thinking. It excels in STEM and math problem-solving, general image and video understanding, and achieves state-of-the-art performance in multimodal agent capabilities, making it ideal for complex multimodal reasoning 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(Thinking)
    $0.16Per 1M tokens
  • Output(Thinking)
    $0.64Per 1M tokens

Rate Limits & Context

  • Max Input
    126K
  • Max Output
    32K
  • Max Input (Thinking)
    126K
  • Max Output (Thinking)
    32K
  • Context
    131K
  • Max Reasoning
    81K
  • TPMTokens Per Minute
    100K
  • RPMRequests Per Minute
    60

API Reference

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

# Initialize OpenAI client
client = OpenAI(
    api_key = os.getenv(""DASHSCOPE_API_KEY""),
    base_url=""https://dashscope-intl.aliyuncs.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

# Create chat completion request
completion = client.chat.completions.create(
    model=""qwen3-vl-32b-thinking"",
    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,
    # enable_thinking parameter enables reasoning; thinking_budget sets the maximum token count for reasoning
    # qwen-vl-plus, qwen3-vl-plus-2025-09-23 can use enable_thinking to turn reasoning on/off; qwen3-vl-235b-a22b-thinking supports enable_thinking, other Qwen-VL models do not support it
    extra_body={
        'enable_thinking': True,
        ""thinking_budget"": 500},

    # Uncomment below to return token usage in the final chunk
    # stream_options={
    #     ""include_usage"": True
    # }
)

if enable_thinking:
    print(""\n"" + ""="" * 20 + ""Reasoning Process"" + ""="" * 20 + ""\n"")

for chunk in completion:
    # If chunk.choices is empty, print usage
    if not chunk.choices:
        print(""\nUsage:"")
        print(chunk.usage)
    else:
        delta = chunk.choices[0].delta
        # Print reasoning process
        if hasattr(delta, 'reasoning_content') and delta.reasoning_content != None:
            print(delta.reasoning_content, end='', flush=True)
            reasoning_content += delta.reasoning_content
        else:
            # Start response
            if delta.content != """" and is_answering is False:
                print(""\n"" + ""="" * 20 + ""Complete Response"" + ""="" * 20 + ""\n"")
                is_answering = True
            # Print response process
            print(delta.content, end='', flush=True)
            answer_content += delta.content

# print(""="" * 20 + ""Complete Reasoning Process"" + ""="" * 20 + ""\n"")
# print(reasoning_content)
# print(""="" * 20 + ""Complete Response"" + ""="" * 20 + ""\n"")
# print(answer_content)