概述
DeepSeek-V4-Pro 是面向企业级关键链路的旗舰 MoE 模型,总参数 16T、单次推理激活 498B,原生支持百万级超长上下文窗口。模型面向高难度推理与高质量训练数据场景做了优化,重点强化数学逻辑、复杂推理、专业代码生成与长文本分析能力,可驱动高吞吐业务与多步骤自动化流水线,承担关键路径的核心引擎角色。
百万超长上下文
原生支持百万 token 上下文,可一次性载入大型代码库、超长文档与多轮任务记录。
MoE 旗舰规模
总参 16T / 激活 498B,覆盖最难的数学、代码与逻辑推理任务。
复杂任务自动化
面向长期智能体工作流,适配多步、长链路自动化场景的任务编排。
高吞吐与稳定性
RPM 15K / TPM 1.20M,面向高并发在线业务保持稳定输出。
功能
前缀补全✓
上下文缓存✓
结构化输出✓
批量任务✓
联网搜索✓
视觉理解✕
微调✕
定价
空闲时段价格为高峰时段价格的一半。高峰时段为北京时间周一至周五 9:00 - 12:00、14:00 - 18:00(其余为空闲时段)。
空闲时段
输入$0.66/M tokens
输入(缓存命中)$0.022/M tokens
输出$1.98/M tokens
高峰时段
输入$1.32/M tokens
输入(缓存命中)$0.044/M tokens
输出$3.96/M tokens
速率限制与上下文
上下文窗口1M
最大输出384K
RPM(请求 / 分钟)15K
TPM(token / 分钟)1200K
API 参考
POST
https://api.tokenfab.com/v1/chat/completions请求示例
curl https://api.tokenfab.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKENFAB_API_KEY" \
-d '{
"model": "deepseek-v4-pro",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Introduce the flagship DeepSeek-V4-Pro in one sentence."}
]
}'from openai import OpenAI
client = OpenAI(
api_key="your-api-key",
base_url="https://api.tokenfab.com/v1"
)
response = client.chat.completions.create(
model="deepseek-v4-pro",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Introduce the flagship DeepSeek-V4-Pro in one sentence."}
]
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.TOKENFAB_API_KEY,
baseURL: "https://api.tokenfab.com/v1"
});
const response = await client.chat.completions.create({
model: "deepseek-v4-pro",
messages: [
{ role: "system", content: "You are a helpful assistant." },
{ role: "user", content: "Introduce the flagship DeepSeek-V4-Pro in one sentence." }
]
});
console.log(response.choices[0].message.content);响应示例
{
"id": "chatcmpl-7h2k93fa",
"object": "chat.completion",
"created": 1784950000,
"model": "deepseek-v4-pro",
"choices": [{
"index": 0,
"message": {
"role": "assistant",
"content": "I am DeepSeek-V4-Pro, a flagship MoE model with 16T total and 498B activated parameters. I natively support a million-token context and handle the hardest math, coding and long-text tasks."
},
"finish_reason": "stop"
}],
"usage": {
"prompt_tokens": 18,
"completion_tokens": 52,
"total_tokens": 70
}
}请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | ✓ | 模型 ID,如 deepseek-v4-pro |
messages | array | ✓ | 对话消息列表,含 role 和 content |
temperature | float | — | 采样温度,0–2,默认 0.7 |
top_p | float | — | 核采样,0–1,默认 0.9 |
max_tokens | int | — | 最大输出 Token 数 |
stream | bool | — | 是否流式输出,默认 false |
tools | array | — | 工具定义列表,用于 Function Calling |
tool_choice | string | — | 工具调用策略,auto / none / 指定函数 |