Docs

Drop in. Route smart. Cut costs.

A drop-in replacement for the OpenAI and Anthropic base URLs. Pick a section, or start with the three-line quickstart.

Most agent loops pin one expensive model across every step, from planning to retrieval to tool calls to synthesis to verification, and pay frontier prices throughout. Fairmeter classifies each step and sends it to the cheapest model that still holds quality, then serves repeats from cache instead of billing you twice.

Quickstart

Switch the OpenAI base URL to the gateway in three lines.

Open

API reference

Auto-generated from the gateway's OpenAPI schema.

Open

SDK recipes

Runnable templates for OpenAI, Anthropic, curl, LangChain, Cursor, Codex CLI, and Claude Code.

Open
quickstart.sh
curl https://gateway.fairmeter.in/v1/chat/completions \
  -H "Authorization: Bearer gw_live_..." \
  -H "Content-Type: application/json" \
  -d '{ "model": "cap:auto", "messages": [...] }'

Three lines today. A clean bill tomorrow.

Plans start at $9.99/month. You’ll route real traffic in under five minutes.