deepseek/deepseek-v4.1-flash

DeepSeek V4.1 Flash 低至2折

函数调用图像理解推理提示缓存

DeepSeek V4.1 Flash is a sparse mixture-of-experts model from DeepSeek, and the first built on the company's Causal Encoder-Decoder (CED) architecture. It activates 8B parameters on input and 16B on output from a 552B-parameter backbone, an asymmetric split that keeps per-token compute low relative to the model's total size. Image understanding is native to the architecture, with visual and text embeddings trained jointly from the start of pre-training rather than added afterward as in the earlier experimental [V4 Flash Vision Exp](https://openrouter.ai/deepseek/deepseek-v4-flash-vision-exp). It is suited for coding, terminal, and computer-use agents, along with long-horizon tasks that must run to completion across many steps and long-context analysis. Compressed KV caching cuts cache memory to roughly a quarter of the previous Flash generation, significantly reducing costs on agentic workloads. DeepSeek positions it as the cost-efficient tier of the V4.1 family and reports that it exceeds [V4 Pro](https://openrouter.ai/deepseek/deepseek-v4-pro-0813) on performance, speed, and task completion time.

上下文窗口1M
最大输出 Token943K
支持协议
发布日期—

能力与模态

当前模型版本支持的输入输出能力

输入模态
文本
图像
输出模态
文本

模型价格

价格与能力以接口实时数据为准

按量计费
输入价格
$0.06 / M$0.3
输出价格
$0.24 / M$1.2
缓存读取
$0.0012 / M$0.006

API 接口

当前模型可以使用的调用端点

原生协议 3

/v1/chat/completions
/v1/responses
/v1/messages

转换协议 2

/v1beta/models/{model}:streamGenerateContent
/v1beta/models/{model}:generateContent

API 接入示例

选择协议与语言,配置 API Key 后运行

调用接口

先在环境变量中配置平台密钥 AI_GATEWAY_API_KEY · 适用于 Bash / zsh / WSL。

POSThttps://api.tikway.ai/v1/chat/completions
curl --fail-with-body 'https://api.tikway.ai/v1/chat/completions' \
  -H "Authorization: Bearer $AI_GATEWAY_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "deepseek/deepseek-v4.1-flash",
  "messages": [
    {
      "role": "user",
      "content": "用三句话介绍 Tikway"
    }
  ]
}'
查看完整接入文档

模型接入常见问题

调用 DeepSeek V4.1 Flash 应填写哪个模型 ID?

本页模型 ID 为 deepseek/deepseek-v4.1-flash。按对应协议原样复制,不能用展示名称代替,也不要自行增删前缀。

DeepSeek V4.1 Flash 支持哪些 API 协议?

目录当前列出的协议为:OpenAI。查看本页调用示例中的完整端点、鉴权方式和参数;不同协议不能直接共用请求体。

DeepSeek V4.1 Flash 的上下文长度是多少?

目录显示上下文为 1M。最大输出与上下文是不同约束,实际请求还要核对本页能力及参数范围。

如何估算 DeepSeek V4.1 Flash 的费用?

普通输入价格:$0.06 / M;普通输出价格:$0.24 / M。完整费用还要核对本页计费单位、缓存、多模态及账户规则。

接入教程

AI API 中转 · 多模型接入OpenAI 兼容 API · GPT 与 SDKAI Agent · 智能体 API 接入Node.js 用 fetch 接入 Tikway 流式输出:正确解析 SSE 与中文分块AI API 费用怎么算?Tikway Token 计费与报错排查OpenAI SDK 接入 Tikway:Python 与 Node.js 配置指南Tikway 模型与费用核对:模型 ID、调用记录与证据边界