「免费」通常指什么——以及它该指什么
搜免费 LLM API,多半只看到两样:一周就过期的试用余额,或一个没法再长大的小模型。两者都没法真正做产品。
值得用的免费档有三点:你会拿去上线的真模型、标准 API 所以代码不是一次性的、用量涨了仍能把成本留在零,而不是试用结束掉下悬崖。
把成本留在零的三条耐久路
最稳的做法是托管免费档加上你自己的供应商配额。三条可以一起用:
- 免费模型档——打免费档模型,每天有请求额度,不扣钱。
- 入门额度——一小笔一次性额度(AnyRouter 给每个新账号 $2,不用绑卡),可花在整个目录。
- 自带 key——如果你已经直接付给某家供应商,经网关用自己的 key 路由、网关 $0 加价,只付供应商收的那部分。
第三点常被漏掉:很多供应商(例如 Google AI Studio 的 Gemini)自己就有大方的免费档。把那些 key 接到网关,等于在免费上游之上再加统一账单、日志和失败切换。
一个端点,兼容 OpenAI
免费 API 只有好调才有用。兼容 OpenAI 的端点意味着现有客户端都能用——设 base URL 和一把 key。
curl https://anyrouter.dev/api/v1/chat/completions \
-H "Authorization: Bearer sk-ar-v1-..." \
-H "Content-Type: application/json" \
-d '{
"model": "anyrouter/free",
"messages": [{"role": "user", "content": "Hello from a free LLM API"}]
}'想用更大的模型,把 anyrouter/free 换成 150+ 个 provider/model id 里的任意一个——入门额度或你自己的 key 覆盖它们,代码不用改。
AnyRouter 给你一个免费 LLM API:免费模型档、$2 入门额度,以及 $0 加价的 BYOK,都在一个兼容 OpenAI 的端点后面。
免费配起来相关文章
Free models, just $2 a month
AnyRouter's Go plan is $2/mo: a $4 monthly credit plus free-model access. Or go free three ways — donate a provider key and Go costs nothing, use the anyrouter/free daily tier, or run models on your own device via local relay.
The top website for free LLM models — and how they're actually free
AnyRouter serves a real free LLM API across 170+ catalog models. Here's what people actually route to for free, and the three honest mechanisms that make it free: the anyrouter/free daily tier, the donated shared pool, and self-hosted on-device models.
Use AnyRouter with the Vercel AI SDK
@anyr/ai-sdk-provider wraps the AnyRouter gateway as a standard Vercel AI SDK provider. Call createAnyRouter(), pass a provider/model id, and generateText, streamText, and generateObject work unchanged — switching models is a one-string edit.