Ali

Qwen-Plus (Thinking)

ali/qwen-plus-latest:thinking
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

Qwen-Plus 基于 Qwen2.5 基础模型构建,是一款支持 131K 上下文长度的大模型,在性能、速度与成本之间实现了良好平衡。

输入 / 输出模态
文本 至 文本
参考输入 / 输出价格
输入¥0.8输出¥8每百万 Token
上下文长度
131.1K
收录时间
2025年5月27日

供应通道与价格

供应通道输入 /M输出 /M缓存读取 /M上下文最大输出详情
Ali¥0.8¥8¥0.32131.1K16.4K

Ali

延迟
0.41s
吞吐量
56 tokens/s
上下文
131.1K

价格

输入
¥0.8/M tokens
输出
¥8/M tokens
缓存
¥0.32/M tokens

其他价格

tools · web search preview
¥0.006

规格

上下文
131.1K
最大输出
16.4K
支持的 API
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

Qwen-Plus (Thinking) 的示例代码与 API 说明

Modelmesh 会帮你在不同服务提供商之间规范化处理请求和响应,为你统一接口。

Modelmesh 提供了兼容 OpenAI 的 Completion API,可连接 300 多款模型与服务提供商,既可直接调用,也可通过 OpenAI SDK 调用。此外,还提供了一些第三方 SDK。

在以下示例中,Modelmesh 专用的请求头属于可选项。若你配置了这些请求头,你的应用就能出现在 Modelmesh 的排行榜上。

支持的接口点击接口可切换下方示例
/v1/chat/completions
from openai import OpenAI API_KEY = "$SSY_API_KEY" client = OpenAI( base_url="https://router.shengsuanyun.com/api/v1", api_key=API_KEY, ) try: completion = client.chat.completions.create( model="ali/qwen-plus-latest:thinking", messages=[{"role": "user", "content": "9.11 和 9.8 哪个数更大?"}], temperature=0.6, top_p=0.7, stream=True, ) response_text = "" for chunk in completion: if chunk.choices and chunk.choices[0].delta.content is not None: content = chunk.choices[0].delta.content print(content, end="", flush=True) response_text += content except Exception as error: print(f"Request failed: {error}")
                
              

相关模型