Qwen-Plus
Overview
A balanced model in the Qwen series, with inference effectiveness and speed between Qwen-Max and Qwen-Turbo, making it suitable for moderately complex tasks. Compared to Qwen-Plus-2025-0112, there is a comprehensive upgrade in both Chinese and English capabilities. Notably, there are significant improvements in coding ability, logical reasoning, and multilingual support. The response style has been significantly adjusted to align with human preferences, especially for objective queries such as mathematics, logical reasoning, and knowledge-based questions—both the level of detail in responses and the clarity of formatting have improved noticeably. Additionally, targeted enhancements have been made in creative writing, JSON format compliance, and role-playing abilities. This version is expected to be maintained until one month before the next snapshot release.
Input
Output
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.4Per 1M tokens
- Output$1.2Per 1M tokens
Rate Limits & Context
- Max Input128K
- Max Output8K
- Context131K
- TPMTokens Per Minute100K
- RPMRequests Per Minute60
API Reference
Call APIimport os
from openai import OpenAI
client = OpenAI(
# If the environment variable is not set, replace it with your Model Studio API key: api_key="sk-xxx",
api_key=os.getenv("DASHSCOPE_API_KEY"),
base_url="https://maas.qwencloudapi.com/compatible-mode/v1",
)
completion = client.chat.completions.create(
model="qwen-plus-2025-01-25",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Who are you?"},
],
stream=True
)
for chunk in completion:
print(chunk.choices[0].delta.content, end="", flush=True)