Developer Portal

Everything needed to build on FreeRouter: keys, quickstarts, documentation, a sandbox playground, and automation.

API keys

Mint and manage keys in the dashboard: FreeRouter keys your app sends, provider keys (BYOK) attached to routing rules, and management keys for programmatic access. Each FreeRouter key carries its own API shape and routing rule.

Quickstart guides

Pick your path:

  • Getting Started — the one walkthrough: sign up, add a provider key, create a FreeRouter key, first success without code, first request with curl.
  • Use your SDK — base URL + key for OpenAI, Anthropic, Claude Code, Vercel AI SDK, LangChain, LiteLLM, Responses and Gemini, each with streaming.
  • Quickstart — starting fresh (choose gateways and a rule) or migrating (before/after per gateway, agent prompt).
  • Troubleshooting — every status and error code with its fix, failover headers, Logs.
  • What's different — headers added and forwarded, unsupported endpoints, limits and timeouts.

Documentation

  • API Reference — endpoints, authentication, per-key shapes, errors (machine-readable OpenAPI 3.0 spec).
  • Routing Rules — percentage splits, priority failover, model remaps, and an optional Jev decisioner on chat keys.
  • Companion Ads — per-key monetization via mediated ad networks; ad_request in, ads / ads: [] / ads_error out. Inference never fails for ads.
  • MCP Tools — catalog MCP servers on a FreeRouter key. Enable from Settings, opt in per key, optional or required BYOK. Same chat endpoint; routing across providers is unchanged.
  • Providers — supported gateways and the BYOK model.
  • Usage & Spend — analytics, logs, and per-request route traces.

Sandbox playground

Try prompts against your own keys in the dashboard playground. Pick a key, pick a model from the searchable catalog (the same merged list GET /v1/models returns for that key), send a prompt, and inspect the routing trace, the response JSON, and a curl command that reproduces the call (with a $FREEROUTER_API_KEY placeholder). Runs are never written to request logs, and model remaps are not evaluated. Full walkthrough: Usage & Spend → Playground.

Automation

Manage FreeRouter programmatically with a management key: the management REST API for keys, providers, routing, and usage — or the MCP server, which wraps the same operations as Streamable HTTP tools for coding agents.

Next Getting Started