All use cases
FREE
Students & side projectsA real free LLM API for side projects
One key, 209+ models, and a documented free tier — not a mystery coupon that disappears.
01
The problem
What this is for
Most “free LLM API” posts dump a list of expired keys. You need a documented daily cap, a model id that fails over, and a path to pay $2 when you outgrow it.
02
What to do
Three steps, then copy
- 1.Sign up and create a key.
- 2.Upgrade to Go ($2/mo) or donate a key to raise anyrouter/free to 1,000 requests/day.
- 3.Call anyrouter/free from curl, the OpenAI SDK, or the playground.
curl · anyrouter/free
bash
curl https://anyrouter.dev/api/v1/chat/completions \
-H "Authorization: Bearer $ANYROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anyrouter/free",
"messages": [{ "role": "user", "content": "Say hello in one sentence." }]
}'OpenAI SDK
ts
import OpenAI from "openai"
const client = new OpenAI({
baseURL: "https://anyrouter.dev/api/v1",
apiKey: process.env.ANYROUTER_API_KEY,
})
const res = await client.chat.completions.create({
model: "anyrouter/free",
messages: [{ role: "user", content: "Say hello in one sentence." }],
})
console.log(res.choices[0]?.message.content)Ready to try it
The guide has the full walkthrough. Sign up if you still need a key.
Related
Next playbooks
AUTO
Start on anyrouter/free or anyrouter/auto
Two built-in virtual models: Go+ free failover (anyrouter/free) and stable paid failover (anyrouter/auto). Do not pick a flaky SKU for your first request.
Open$2
Unlock the free pool for $2 a month
The Go plan is $2/mo and raises free-tier access to 1,000 requests a day. Cancel any time. Donating a provider key can unlock Go without paying.
OpenOne AI SDK provider for the whole catalog
Install @anyr/ai-sdk-provider. generateText and streamText take a catalog id — including anyrouter/free.
Open