Skip to content
All use cases
FREE
Students & side projects

A 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. 1.Sign up and create a key.
  2. 2.Upgrade to Go ($2/mo) or donate a key to raise anyrouter/free to 1,000 requests/day.
  3. 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.