GLM-5.3正式上线,立即体验
立即体验

Qwen3.8-Flash

qwen3.8-flash
Qwen 系列NEW

概述

多模态1M 上下文视觉理解智能体代码生成

Qwen3.8-Flash 是阿里巴巴通义千问 Qwen3.8 系列的高性价比多模态模型,基于同架构的开放权重版 Qwen3.8-Flash-Next:总参数 125B、每 token 仅激活 6B,采用 Gated DeltaNet 与 Qwen 稀疏注意力(QSA)交替的混合结构。模型原生支持文本、图像与视频输入,提供 1M token 上下文与思考模式,在智能体任务、代码工程与视觉理解上表现突出,官方公布 SWE-bench Pro 62.5、AndroidWorld 84.5。适合大规模智能体调用、编程辅助、文档与图像理解等对成本敏感的在线场景。

新一代混合架构

基于开放权重版 Qwen3.8-Flash-Next:125B 总参数、每 token 仅激活 6B,Gated DeltaNet 与 Qwen 稀疏注意力(QSA)交替堆叠。

智能体与编程

官方公布 SWE-bench Pro 62.5、Toolathlon Verified 73.5、AndroidWorld 84.5,适合工具调用密集的智能体任务。

原生多模态

文本、图像、视频统一输入,官方公布 RealWorldQA 88.5、MathVision 90.6。

百万上下文

1M token 上下文窗口,单次最多输出 131,072 token,思考链最长 262,144 token。

功能

深度思考支持思考模式,思考链最长 262,144 token✓
视觉理解支持图像与视频输入✓
工具调用✓
结构化输出✓
上下文缓存命中缓存按缓存价计费✓
流式输出✓
前缀补全✓
微调✕

定价

输入¥0.8/M tokens
输出¥2.7/M tokens
输入(缓存命中)¥0.1/M tokens

速率限制与上下文

上下文窗口1M
最大输出128K
RPM(请求 / 分钟)300
TPM(token / 分钟)5M

API 参考

POSThttps://api.tokenfab.cn/v1/chat/completions

请求示例

curl https://api.tokenfab.cn/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKENFAB_API_KEY" \
  -d '{
    "model": "qwen3.8-flash",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Briefly introduce what you are good at."}
    ]
  }'

响应示例

{
  "id": "chatcmpl-q3p7m4k9",
  "object": "chat.completion",
  "created": 1784950000,
  "model": "qwen3.8-flash",
  "choices": [{
    "index": 0,
    "message": {
      "role": "assistant",
      "content": "I am Qwen3.8-Flash, a cost-efficient multimodal model in the Qwen3.8 series. I accept text, image and video input, support a million-token context and thinking mode, and suit agent workflows and coding assistance at scale."
    },
    "finish_reason": "stop"
  }],
  "usage": {
    "prompt_tokens": 17,
    "completion_tokens": 42,
    "total_tokens": 59
  }
}

请求参数

参数类型必填说明
modelstring✓模型 ID,如 qwen3.8-flash
messagesarray✓对话消息列表,含 role 和 content
temperaturefloat—采样温度,0–2,默认 0.7
top_pfloat—核采样,0–1,默认 0.9
max_tokensint—最大输出 Token 数
streambool—是否流式输出,默认 false
toolsarray—工具定义列表,用于 Function Calling
tool_choicestring—工具调用策略,auto / none / 指定函数