Skip to content
All use cases

Students & side projectsFree and cheap · Free

A real free LLM API for side projects

One key, 406+ models, and a documented free tier — not a mystery coupon that disappears.

Set it up

curl · anyrouter/free
$ 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." }]
  }'
  1. 1.Sign up and create a key. No plan is needed.
  2. 2.Call anyrouter/free from curl, the OpenAI SDK, or the playground.
  3. 3.Move to paid models with credits or Go ($2/mo) when you need them.
Why use this

Most “free LLM API” posts dump a list of expired keys. You need no daily cap, a model id that fails over, and a clear path to paid models.

Other ways to set it up
OpenAI SDK
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)
Endpoints and key
OpenAI-compatible
https://anyrouter.dev/api/v1
Anthropic-compatible
https://anyrouter.dev/api
Key
ANYROUTER_API_KEY (sk-ar-…)
Watch the walkthrough