# A real free LLM API for side projects

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

A documented free tier for side projects

**Slug**: `free-llm-api`  
**URL**: https://anyrouter.dev/use-cases/free-llm-api  
**Markdown**: https://anyrouter.dev/use-cases/free-llm-api.md  
**Short link**: https://anyrouter.dev/u/free-llm-api  
**Other short links**: https://anyrouter.dev/u/free  

## 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.

## Set it up

1. Sign up and create a key. No plan is needed.
2. Call anyrouter/free from curl, the OpenAI SDK, or the playground.
3. Move to paid models with credits or Go ($2/mo) when you need them.

## Code

### 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)
```

## Related

- [virtual-presets](https://anyrouter.dev/use-cases/virtual-presets)
- [go-plan](https://anyrouter.dev/use-cases/go-plan)
- [ai-sdk](https://anyrouter.dev/use-cases/ai-sdk)
