APIMart 上的 DeepSeek(深度求索)API:当前主力型号 V4 Pro 与 V4.1 Flash,以及 V3.2、R1 和 DeepSeek-OCR;V4 型号支持 1M Token 上下文,按 Token 计费。
服务亮点
您在想什么?
询问 APIMart
deepseek-v4.1-flash
透明定价,无隐藏费用。按量付费,用多少付多少。
您的时区: UTC
高峰
周一–周日 · 00:00–14:00
标准时段价格
低峰
其余时段
额外优惠 50% · 当前总计节省 60%
每 100 万 token
| 计费项 | 高峰 | 低峰 | 官方价格 |
|---|---|---|---|
| 输入 | 2.2857Credits每 100 万 token ~$0.2286 | 1.1429Credits每 100 万 token ~$0.1143 | 2.8571Credits每 100 万 token ~$0.2857 |
| 缓存输入 | 0.2286Credits每 100 万 token ~$0.0229 | 0.1143Credits每 100 万 token ~$0.0114 | 0.2857Credits每 100 万 token ~$0.0286 |
| 输出 | 9.1429Credits每 100 万 token ~$0.9143 | 4.5714Credits每 100 万 token ~$0.4571 | 11.4286Credits每 100 万 token ~$1.1429 |
在 APIMart 调用 DeepSeek 当前主力模型:DeepSeek V4 Pro 适合高难度推理、编程与 Agent,DeepSeek V4.1 Flash 适合快速、低成本的对话与流水线。两者都支持最长 1M Token 上下文,可按请求开关思考模式,低峰时段按高峰价的一半计费。
在 APIMart 使用 DeepSeek V4 模型能得到什么
团队在生产环境中如何使用 DeepSeek 模型
三步完成在 APIMart 的第一次 DeepSeek 请求。
创建 APIMart 账户并充值余额,可用于平台上的所有模型,包括 DeepSeek API。
在控制台生成 API Key。同一个 Key 可调用所有 DeepSeek 模型和 APIMart 上的其他模型。
把 OpenAI SDK 指向 https://api.apimart.ai/v1,model 设为 deepseek-v4-pro 或 deepseek-v4.1-flash,并显式传入 stream。
通过兼容 OpenAI 的 Chat Completions 接口,开启思考调用 DeepSeek V4 Pro,或关闭思考调用 V4.1 Flash。
创建 APIMart API Key、充值,并在服务器上设置环境变量 APIMART_API_KEY。Python 或 Node.js 需安装 openai 包,所有示例使用同一个 Key 和 base URL。
思考模式默认开启。用 reasoning_effort 选择 low、high 或 max,或传入 type 为 disabled 的 thinking 以获得更快回复。请显式传入 stream。
阅读 Chat Completions 接口文档curl --fail-with-body https://api.apimart.ai/v1/chat/completions \
-H "Authorization: Bearer $APIMART_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-pro",
"stream": false,
"reasoning_effort": "high",
"messages": [
{
"role": "user",
"content": "请说明在文档问答中,什么情况下长上下文模型比检索更合适。"
}
]
}'import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["APIMART_API_KEY"],
base_url="https://api.apimart.ai/v1",
)
resp = client.chat.completions.create(
model="deepseek-v4.1-flash",
messages=[{"role": "user", "content": "用三条要点总结低峰时段批量处理的好处。"}],
stream=False,
# thinking is on by default; turn it off for faster, cheaper replies
extra_body={"thinking": {"type": "disabled"}},
)
print(resp.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.APIMART_API_KEY,
baseURL: "https://api.apimart.ai/v1",
});
const resp = await client.chat.completions.create({
model: "deepseek-v4.1-flash",
messages: [{ role: "user", content: "用三条要点总结低峰时段批量处理的好处。" }],
stream: false,
thinking: { type: "disabled" },
});
console.log(resp.choices[0].message.content);开发者对 DeepSeek API 的评价
“DeepSeek-R1 在我们的数学基准测试中比肩 o1,成本仅为十分之一。性价比惊人。”
Alex Chen
机器学习工程师
“V3 是我们通用对话的默认模型。快速、强大、极其实惠。”
Sarah Li
产品经理
“DeepSeek V4.1 Flash 非常适合我们的研究助手产品,响应快速,长上下文分析能力出色。”
Mike Wang
高级开发
“我们用 R1-distill-32b 处理大批量任务,推理效果同样出色,价格更低。”
Emily Zhou
AI 工程师
“DeepSeek 的编程能力出乎意料地强。复杂的代码重构任务处理得很好。”
David Liu
技术负责人
“市场上最佳的性价比。我们已将整个流水线迁移到 DeepSeek。”
Lisa Zhang
CTO
在当前主力型号 DeepSeek V4 Pro、V4.1 Flash 与更早的 DeepSeek V3.2、R1 之间选择。比较 APIMart 的 Token 价格、上下文窗口和适用任务,点击型号即可打开它的 Playground 和详细价格。
以下为 APIMart 黄金会员的高峰价,单位为美元/百万 Token。输入与输出分别计费;缓存读取价仅适用于命中缓存的 Token。V4 型号在低峰时段按以下价格的 50% 计费,时段见上方详细价格。
| 模型/API ID | 输入 | 输出 | 缓存读取 | 上下文窗口 | 适用任务 |
|---|---|---|---|---|---|
DeepSeek V4 Prodeepseek-v4-pro | US$0.5143 | US$1.5429 | US$0.0514 | 1,000,000最大输出 393,216 | 高难度推理、复杂编程与 Agent 任务。 |
DeepSeek V4.1 Flashdeepseek-v4.1-flash | US$0.1143 | US$0.4571 | US$0.0114 | 1,000,000最大输出 393,216 | 快速、低成本的对话、信息抽取与流水线。 |
DeepSeek V3.2deepseek-v3.2 | US$0.2056 | US$0.3084 | — | 163,840 | 已有 V3.2 接入,低价继续使用。 |
DeepSeek R1 (0528)deepseek-r1-0528 | US$0.408 | US$1.2322 | — | 163,840最大输出 65,536 | 已有 R1 推理流程。 |
APIMart 的 DeepSeek 请求由 DeepSeek 官方 API 处理,上下文窗口、最大输出和模型能力与 DeepSeek 官方一致,只有价格不同。V3.2 与 R1-0528 的上限取自官方模型卡。「—」表示暂未取得数据。
关于在 APIMart 使用 DeepSeek API 的常见问题
DeepSeek API 让你在自己的代码里调用深度求索(DeepSeek)的大语言模型。在 APIMart,你用一个 API Key 和兼容 OpenAI 的 Chat Completions 接口调用 DeepSeek V4 Pro、V4.1 Flash 及更早的 DeepSeek 模型,按 Token 付费。
当前主力型号是 deepseek-v4-pro 和 deepseek-v4.1-flash。APIMart 还提供 deepseek-v4-flash、deepseek-v3.2、deepseek-v3.2-exp、deepseek-v3.1-terminus、deepseek-v3-0324、deepseek-r1-0528、deepseek-r1-250528、deepseek-r1 和 deepseek-ocr。把这些 ID 填入 model 参数即可,上方 Playground 显示完整列表。
黄金会员每百万输入 / 输出 Token 的价格:DeepSeek V4 Pro $1.03 / $3.09,V4.1 Flash $0.23 / $0.91,V3.2 $0.21 / $0.31,R1-0528 $0.41 / $1.23。命中缓存更便宜:V4 Pro 每百万 Token $0.10,V4.1 Flash $0.02。价格表显示所有型号的实时价格。
在 APIMart,deepseek-v4-pro、deepseek-v4.1-flash 和 deepseek-v4-flash 在低峰时段按高峰价的 50% 计费。价格表会按你的时区显示高峰与低峰时段,以及当前处于哪个时段。其他 DeepSeek 型号全天同价。
不需要代充。在 APIMart 注册、充值,然后在 API Keys 页面创建 Key 即可调用,不用另外开通 DeepSeek 官方账户。同一个 Key 可调用 DeepSeek API 和 APIMart 上的所有其他模型,按量付费,无需订阅。
可以。登录 APIMart、创建 API Key 并充值后,就能在本页顶部的 Playground 里通过浏览器和 DeepSeek 对话。Playground 使用你的 API Key,按 Token 从余额扣费,价格与 API 相同。
实际上是同一个。deepseek-flash 是 DeepSeek 官方 API 里 DeepSeek V4.1 Flash 的调用名;在 APIMart 调用同一模型时请写 deepseek-v4.1-flash。
不免费。DeepSeek 的聊天应用免费,但 API 调用按 Token 计费。在 APIMart 用多少付多少;关闭思考的 V4.1 Flash 是成本最低的起步方式,V4 型号在低峰时段还能再省一半。
高难度推理、复杂编程和注重质量的 Agent 任务用 V4 Pro。对话、信息抽取和大批量流水线用 V4.1 Flash:速度更快,每 Token 价格约为 V4 Pro 的四分之一,按 DeepSeek 官方规格还支持图片输入;关闭思考或把思考强度设为 low 还能进一步提速。两者都是 1M Token 上下文。
DeepSeek 已下线 V4 Flash:官方 API 收到旧名 deepseek-v4-flash 的请求时,由 DeepSeek V4.1 Flash 处理。APIMart 仍提供 deepseek-v4-flash,但新项目请使用 deepseek-v4.1-flash,它是当前型号,在 APIMart 的价格也更低。
按 DeepSeek 官方规格,V4 Pro 和 V4.1 Flash 最多支持 1M Token 上下文、384K Token 输出。DeepSeek V3.2 和 R1-0528 的模型配置中上下文窗口为 163,840 Token。
思考模式默认开启,强度为 high。传入 "thinking": {"type": "disabled"} 可关闭,也可以把 reasoning_effort 设为 low、high 或 max。使用 OpenAI Python SDK 时,把 thinking 放进 extra_body。思考内容通过 reasoning_content 返回。
可以。APIMart 提供 deepseek-r1-0528、deepseek-r1-250528 和 deepseek-r1。新项目建议用开启思考的 DeepSeek V4 Pro 或 V4.1 Flash,同样能逐步推理,上下文窗口也长得多。
兼容。把 base_url 设为 https://api.apimart.ai/v1,使用 APIMart 的 Key 和 DeepSeek 模型 ID(如 deepseek-v4-pro)即可,现有 OpenAI SDK 代码无需其他改动。
base URL 为 https://api.apimart.ai/v1。请求发送到 https://api.apimart.ai/v1/chat/completions,并在 Authorization: Bearer 请求头中带上 APIMart 的 Key。
APIMart 把 DeepSeek 请求交给 DeepSeek 官方 API 处理,模型、上下文窗口和功能与官方一致,只有价格不同。你还可以用同一个 Key、同一份余额调用 DeepSeek、GPT、Claude、Gemini、Qwen 等模型,不必分别开户。
DeepSeek 官方规格标注 V4.1 Flash 支持视觉输入,V4 Pro 仅支持文本。扫描件和带文字的图片,可先用 deepseek-ocr 提取文字,再交给 V4 Pro 或 V4.1 Flash 处理。
支持。按 DeepSeek 官方规格,V4 Pro 和 V4.1 Flash 都支持工具调用和 JSON 输出。思考模式下,如果请求带有 tools,需要把之前的 reasoning_content 一并传回。
重复的提示词前缀命中缓存时,按更低的缓存命中价计费,无需额外设置。对比表列出了每个型号的缓存读取价格。
高难度 Bug、重构和多文件修改,用 DeepSeek V4 Pro 并把思考强度设为 high 或 max。大量小改动或长时间的 Agent 循环,用 V4.1 Flash 控制成本。
DeepSeek 在 Hugging Face 以 MIT 许可证公开了 V4 模型权重。在 APIMart 使用的是托管 API,不需要自己部署模型。
请求通过 HTTPS 发送到 api.apimart.ai。APIMart 会按隐私政策处理 API 数据,包括请求日志以及你发送的提示词、输入和生成结果。发送敏感数据前,请先阅读隐私政策。
探索同类型的其他模型。
Gemini 4 Argon
Gemini-4-Argon is an AI assistant that brings together analytical thinking and creative expression. From untangling complex problems to refining writing and code, it offers clear reasoning, natural conversation, and practical suggestions to help turn rough ideas into actionable next steps.
Claude Haiku 5.5
Claude Haiku 5.5 API on APIMart delivers fast, cost-efficient AI, offering responsive conversations, capable coding assistance, and reliable performance for high-volume workflows.
Claude Opus 5
Claude Opus 5 is Anthropic’s next-generation flagship large language model, featuring enhanced capabilities in code development, complex reasoning, knowledge analysis, and agent execution, making it ideal for large-scale project development and professional work scenarios.
Kimi K3
Kimi-K3 is a next-generation large language model launched by Moonshot AI. It features ultra-long context, multimodal understanding, and strong coding capabilities, making it suitable for complex reasoning, software development, knowledge analysis, and agent automation tasks.