Unify 12 free-tier inference providers behind one gateway. OpenAI Chat Completions for Cursor and SDKs, Anthropic Messages for Claude Code — with effort-based routing, automatic failover, and usage analytics.
from openai import OpenAI
client = OpenAI(
base_url="https://api.apikeychain.dev/v1",
api_key="ak-•••••••••••••••",
)
resp = client.chat.completions.create(
model="keychain-high",
messages=[{"role": "user", "content": "Explain quantum tunneling."}],
)
print(resp.choices[0].message.content)What could you build?
Point any OpenAI-compatible client at your keychain URL. Pick an effort tier and let the router handle the rest.
Routing across the best free-tier inference networks
The platform
Routing, failover, key management and observability — in one OpenAI-compatible gateway.
Pick fast, balanced, or best (`keychain-low` / `-medium` / `-high`). The router cascades through free models until one answers.
Native Anthropic Messages API with streaming, tools, and token counting — routed through your free-tier providers.
A 429 or outage on one provider transparently rolls to the next.
Throttled providers are parked in a cooldown window until they recover.
Every upstream provider key is sealed with authenticated encryption.
One revealable ak- key fronts everything. Bearer or x-api-key auth.
Pin any model id into a tier, then reorder priority to taste.
Per-model, per-provider request counts, token totals, and latency.
How it works
No SDK swaps, no per-provider glue. Point OpenAI or Anthropic clients at your keychain URL.
Paste the free-tier keys you already have. They're encrypted the moment they arrive.
Send `keychain-low`, `-medium`, or `-high` as the model — fast, balanced, or best free-tier cascades.
Failover, cooldowns and retries happen server-side. You get a clean OpenAI response.
The catalog
All 69 free-tier models across 12 providers.
Google's multimodal flagship — fast 2.0 Flash, deep 2.5 Pro.
LPU inference — Llama 3.3 70B at hundreds of tokens/sec.
Wafer-scale speed for Llama- and Qwen-class open models.
Efficient European frontier models, open-weight roots.
Reasoning-first models that rival closed frontier labs.
A meta-gateway — dozens of free community models in one slot.
Open-source model hosting at production scale.
Enterprise-grade Command models, OpenAI-compatible.
NVIDIA-hosted open models via the NIM OpenAI-compatible API.
Enterprise-speed Llama inference on SambaNova Cloud.
Open models via the Hugging Face inference router.
Workers AI models on Cloudflare's global edge.
Routing tiers
Tiers trade speed for capability across free models, not price. Reorder, disable, or extend any cascade from your dashboard.
Smallest, fastest free models — autocomplete, classification, and high-volume calls.
Everyday free models — solid quality and speed for chat and agents.
Strongest free models — R1, Gemini 2.5 Pro, and Nemotron Ultra for hard problems.
Quickstart
Swap the base URL and key. Chat Completions, Responses API, and Anthropic Messages all route through the same cascade.
# A different SDK + key per provider…
from google import genai
from groq import Groq
from mistralai import Mistral
g = genai.Client(api_key=GEMINI_KEY)
q = Groq(api_key=GROQ_KEY)
m = Mistral(api_key=MISTRAL_KEY)
# …and you hand-roll the failover.Spin up your unified key in under a minute and route across every free-tier model from a single endpoint.