qwen-3.5-plus
对话已上架
qwen-3.5-plus 的价格、实测能力参数与 OpenAI / Anthropic 双协议接入示例。base_url https://api.ai526.com,按量计费。
价格
下表为最终扣费价,按实际用量结算(token / 张 / 秒),请求失败不扣费。
| 计费项 | 售价 |
|---|---|
| 输入 tokens | ¥2.00 / 1M tokens |
| 输出 tokens | ¥12.00 / 1M tokens |
支持参数
端点:POST /v1/chat/completions(OpenAI)· POST /v1/messages(Anthropic)
| 参数 | 类型 | 说明 |
|---|---|---|
| model | string | 必填,对外模型 ID:qwen-3.5-plus |
| messages | array | 必填,多轮对话消息;content 支持字符串或多模态数组(含 image_url 图片输入) |
| stream | bool | 是否流式 SSE 返回,默认 false |
| max_tokens | int | 最大输出 token 数(上限见下方「实测能力」的最大输出 / 上下文长度) |
| temperature / top_p | number | 采样控制(0~2 / 0~1) |
| tools / tool_choice | array/string | 函数调用(Function Calling) |
| response_format | object | 传 {"type":"json_object"} 开启 JSON 模式 |
| stop | string/array | 停止词 |
实测能力
该模型暂无探测数据;能力参数以探测引擎实测入库后为准。
接入示例
base_url 统一为 https://api.ai526.com,OpenAI 与 Anthropic 协议同一把 Key 通用。
curl(OpenAI 协议)
curl https://api.ai526.com/v1/chat/completions \
-H "Authorization: Bearer sk-你的Key" \
-H "Content-Type: application/json" \
-d '{"model":"qwen-3.5-plus","messages":[{"role":"user","content":"你好"}]}'
OpenAI SDK(Python)
from openai import OpenAI
client = OpenAI(base_url="https://api.ai526.com/v1", api_key="sk-你的Key")
r = client.chat.completions.create(
model="qwen-3.5-plus",
messages=[{"role": "user", "content": "你好"}],
stream=True,
)
for chunk in r:
print(chunk.choices[0].delta.content or "", end="")
Anthropic SDK(Python)
import anthropic
client = anthropic.Anthropic(base_url="https://api.ai526.com", api_key="sk-你的Key")
msg = client.messages.create(
model="qwen-3.5-plus",
max_tokens=1024,
messages=[{"role": "user", "content": "你好"}],
)
print(msg.content[0].text)
还没有 Key?免费注册,1 分钟拿到 Key →