All use cases
Students & side projects
A real free LLM API for side projects
One key, 271+ models, and a documented free tier — not a mystery coupon that disappears.
What this is for
Most “free LLM API” posts dump a list of expired keys. You need no daily cap, a model id that fails over, and a path to pay $2 when you outgrow it.
Steps, then copy
- 1.Sign up and create a key.
- 2.Upgrade to Go ($2/mo) or donate a key to get paid-model access.
- 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.
Next playbooks
- Start on anyrouter/free or anyrouter/autoTwo built-in virtual models: free failover on every plan (anyrouter/free) and stable paid failover (anyrouter/auto). Do not pick a flaky SKU for your first request.
- Go: paid models from $2 a monthThe Go plan is $2/mo and adds paid-model access with a monthly credit. Free models have no daily limit on any plan. Cancel any time. Donating a provider key can unlock Go without paying.
- One AI SDK provider for the whole catalogInstall @anyr/ai-sdk-provider. generateText and streamText take a catalog id — including anyrouter/free.