首页 / 文本生成 / DeepSeek R1

Free DeepSeek R1 API

更新于 2026/7/2

DeepSeek's advanced reasoning model.

关于该模型

DeepSeek R1 是一个为数学、代码和多步骤问题解决而构建的推理模型。 它比小型聊天模型慢,但是当答案需要计划或仔细验证时,它是更好的选择。

为什么选择它?

  • 推理优先输出:对校对、调试和结构化问题解决很有用。
  • 多条免费路线:可通过 GitHub 模型和 Vercel AI Gateway 获得,在 Cloudflare Workers AI 上使用较小的蒸馏版本。
  • OpenAI 兼容选项: 易于交换到现有的聊天完成客户端。

免费访问选项

  • GitHub Models:使用 GitHub 令牌免费、限速访问 DeepSeek R1。
  • Vercel AI Gateway: 每月网关积分deepseek/deepseek-r1.
  • Cloudflare Workers AI:为蒸馏的 R1 模型免费的每日神经元,而不是完整的模型。

选择 DeepSeek R1 用于硬提示,如果一个小模型给出浅层答案。 在速度更重要时使用 GPT-4O Mini。

如何调用 DeepSeek R1

curl
curl https://ai-gateway.vercel.sh/v1/chat/completions \
  -H "Authorization: Bearer $AI_GATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek/deepseek-r1","messages":[{"role":"user","content":"Solve this logic puzzle and explain each step."}]}'
python
from openai import OpenAI

client = OpenAI(base_url="https://ai-gateway.vercel.sh/v1", api_key="AI_GATEWAY_API_KEY")
response = client.chat.completions.create(
    model="deepseek/deepseek-r1",
    messages=[{"role": "user", "content": "Solve this logic puzzle and explain each step."}],
)
print(response.choices[0].message.content)
javascript
import { generateText } from "ai";

const { text } = await generateText({
  model: "deepseek/deepseek-r1",
  prompt: "Solve this logic puzzle and explain each step.",
});

console.log(text);

免费渠道比价

以下平台通过免费层、试用额度或每日配额提供 DeepSeek R1 的免费访问。

供应商上下文窗口免费配额需绑卡评分操作
Cloudflare Workers AI128K速率限制
加载评分…
Details
GitHub Models128K速率限制
加载评分…
Details
Vercel AI Gateway128K每月额度
$5/月
加载评分…
Details

常见问题

DeepSeek R1 可以免费使用吗?

可以。DeepSeek R1 目前可通过下方列出的 3 个提供方免费使用,无需付费。

有哪些速率限制和额度?

免费额度因提供方而异 —— Cloudflare Workers AI: 速率限制; GitHub Models: 速率限制; Vercel AI Gateway: 每月额度。

如何获取 DeepSeek R1 的免费 API key?

在 Cloudflare Workers AI 注册后,从控制台创建 API key;具体步骤见上方提供方详情。

哪些提供方免费提供 DeepSeek R1?

DeepSeek R1 目前可通过以下提供方免费使用:Cloudflare Workers AI, GitHub Models, Vercel AI Gateway。

社区反馈

评论与你的 GitHub 账号绑定,登录后即可参与讨论。

知道 DeepSeek R1 的其他免费渠道?

分享您知道的免费访问方式,帮助整个社区。