Hugging Face Inference Providers 的免费额度给到哪一步
登录的免费用户每月获得 0.10 美元的 Inference Provider 额度(Hugging Face 注明这个数额可能调整);PRO 用户 2.00 美元,Team 或 Enterprise 组织按每席位 2.00 美元。额度只作用于经 Hugging Face 路由的请求,用你自己的服务商 key 直连既不消耗也不享受。每月额度花完后需要另行购买才能继续。
- 官方公布限额
- 以额度余额公布
- 免费形式
- 厂商免费额度
- 信用卡
- 不需要
- 协议
- 兼容 OpenAI,端点
https://router.huggingface.co/v1 - 生命周期
- 正常开放
- 来源核验日期
- 2026-07-25
Hugging Face 按各服务商的原价计费、不加价,所以同样一份额度换算成请求数,会因为路由到哪个模型而差别极大。
Hugging Face Inference Providers 在这份清单里处于什么位置
本站详列的 25 家服务商里,属于厂商免费额度的有 15 家,Hugging Face Inference Providers 是其中之一。它不要求绑信用卡,25 家里有 23 家是这样。它没有公布固定的请求次数,25 家里有 16 家同样没有。
| 对比对象 | 官方公布限额 | 信用卡 | 端点 |
|---|---|---|---|
| Hugging Face Inference Providers(当前页) | 以额度余额公布 | 不需要 | router.huggingface.co |
| SiliconFlow | 每分钟 1000 次请求 | 不需要 | api.siliconflow.com |
| Fireworks AI | 每分钟 10 次请求 | 不需要 | api.fireworks.ai |
| Z.AI Open Platform | 部分模型标价为零 | 不需要 | api.z.ai |
Hugging Face Inference Providers 标为免费的模型
deepseek-ai/DeepSeek-V3-0324—— DeepSeek,本站另有 4 家服务商也免费提供openai/gpt-oss-120b—— gpt-oss,本站另有 9 家服务商也免费提供200+ models routed across partner providers—— 不属于本清单跨服务商跟踪的任何系列
本站另有 9 家服务商也以免费条款提供 gpt-oss 系列,而且条款并不相同:GroqCloud、SambaNova Cloud、Cloudflare Workers AI、Fireworks AI、Ollama Cloud、Cerebras Inference、Vercel AI Gateway、Together AI、Scaleway Generative APIs。本站另有 4 家服务商也以免费条款提供 DeepSeek 系列,而且条款并不相同:SambaNova Cloud、SiliconFlow、Nebius Token Factory、DeepInfra。
怎么验一个 Hugging Face Inference Providers 的 key
CORS 预检允许任意源携带 Authorization 请求头,所以浏览器可以直接调用这个端点。这一结论是 2026-07-25 针对 https://router.huggingface.co 实测得到的。
所以不用装任何东西,直接在浏览器检测页里就能验。如果你不愿意把 key 粘进网页,下面这条命令是等价的:
#!/usr/bin/env sh
set -eu
: "${HUGGINGFACE_API_KEY:?Set HUGGINGFACE_API_KEY to a key you created yourself at the provider console}"
# Prints the models this key can reach, then the HTTP status on its own line so
# 200, 401, and 429 stay distinguishable.
curl --silent --show-error \
--write-out '\nHTTP %{http_code}\n' \
--header "Authorization: Bearer $HUGGINGFACE_API_KEY" \
'https://router.huggingface.co/v1/models'
怎么用一个 Hugging Face Inference Providers 的 key
Hugging Face Inference Providers 在 https://router.huggingface.co/v1 上提供 OpenAI chat completions 协议。把任何支持自定义 base URL 的客户端指过去,并让客户端从 HUGGINGFACE_API_KEY 读取 key,这样 key 本身永远不会落进配置文件:
# Merge this snippet into ~/.codex/config.toml.
# Project-level config cannot select a custom model provider.
model = "deepseek-ai/DeepSeek-V3-0324"
model_provider = "huggingface"
[model_providers.huggingface]
name = "Hugging Face Inference Providers OpenAI-compatible gateway"
base_url = "https://router.huggingface.co/v1"
env_key = "HUGGINGFACE_API_KEY"
wire_api = "responses"
关于 Hugging Face Inference Providers 免费额度的常见问题
Hugging Face Inference Providers 需要绑信用卡吗?
不需要。本站有 23 家不用绑卡就能拿到免费访问,Hugging Face Inference Providers 是其中之一,所以试一下的成本只有注册本身。
Hugging Face Inference Providers 免费额度的限流是多少?
Hugging Face Inference Providers 没有公布单一的免费额度数字:它的限额形式是「以额度余额公布」。本清单在这里留空,而不是猜一个数。
Hugging Face Inference Providers 的 key 撞到限额会怎样?
端点返回 429。这只说明那一次请求被拒了,不说明还剩多少额度;只有服务商返回的 reset 响应头才能告诉你什么时候恢复。
Hugging Face Inference Providers 的免费额度会取消吗?
截至 2026-07-25,Hugging Face Inference Providers 自己的文档里没有这样的说法。Hugging Face 按各服务商的原价计费、不加价,所以同样一份额度换算成请求数,会因为路由到哪个模型而差别极大。
Hugging Face Inference Providers 能配合 Codex、Cline 或 Continue 使用吗?
可以。Hugging Face Inference Providers 在 https://router.huggingface.co/v1 上提供 OpenAI chat completions 协议,任何支持自定义 base URL 的客户端都能用。例外是 Claude Code,它讲的是 Anthropic 协议。
官方来源
- Inference Providers pricing and billinghttps://huggingface.co/docs/inference-providers/pricing
- Inference Providers OpenAI compatibilityhttps://huggingface.co/docs/inference-providers/index
- Inference Providers settingshttps://huggingface.co/settings/inference-providers
以上每个数字都是 2026-07-25 从这些页面上读到的。如果某家只在控制台里给出限额,本清单就如实记下这件事,而不是填一个数字。收录标准和纠错流程见数据方法。