返回模型列表

Qwen Long

qwenqwen/qwen-long

供应商自营与 TheRouter 服务形态的差异

供应商自己运营时

阿里云百炼将 qwen-long 记录为 CN 承载的长上下文模型:10M token 上下文、8,192 token 输出、文入文出;HTTP 直接提交建议为 1M token,超过则建议文件提交。

在 TheRouter 上

TheRouter 在 OpenAI 兼容 chat 路径上暴露 qwen/qwen-long,目录上下文长度为 10,485,760 token,并由百炼 CN 区域承载。因此本页将 10M 视为厂商契约、10,485,760 视为 TheRouter 运行目录值,并提示直接长提示词需要验证。

API 使用指南

长文档 Chat

通过 OpenAI 兼容 chat 端点提交长文本提示词。除非集成中已有获批的文件提交路径,否则应遵守上游 HTTP 直接提交 1M token 的建议。

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"qwen/qwen-long","messages":[{"role":"user","content":"Summarize the attached long document text: ..."}],"max_tokens":1200}'

用 JSON 形状指令做抽取

阿里云将结构化输出标注为不支持,因此 JSON 格式应视为提示词层面的尽力而为,而不是受约束解码器保证。

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"qwen/qwen-long","messages":[{"role":"system","content":"Return compact JSON only."},{"role":"user","content":"Extract parties, dates, and obligations from this contract: ..."}],"max_tokens":1000}'
事实档案 — 本页每条断言可在此回溯来源
来源URL采集于
上下文长度help.aliyun.com ↗2026-08-01已核实
HTTP 直接提交输入上限help.aliyun.com ↗2026-08-01已核实
最大输出help.aliyun.com ↗2026-08-01已核实
模态help.aliyun.com ↗2026-08-01已核实
上游不支持能力help.aliyun.com ↗2026-08-01已核实
中国大陆公开限流help.aliyun.com ↗2026-08-01已核实
Public long-context benchmark suitehelp.aliyun.com ↗2026-08-01未知
Document QA benchmarkhelp.aliyun.com ↗2026-08-01未知
Latency / throughput benchmarkhelp.aliyun.com ↗2026-08-01未知
阿里云同时列出 qwen-long 快照、qwen-long-latest 与基础路由help.aliyun.com ↗2026-08-01已核实
qwen/qwen-long 真的是 10M token 模型吗?help.aliyun.com ↗2026-08-01待核实
qwen-long 支持 function calling 或结构化输出吗?help.aliyun.com ↗2026-08-01待核实
什么时候应选择 qwen-long,而不是 qwen-plus?help.aliyun.com ↗2026-08-01待核实
帮助与联系