One API key, three protocols, pay for what you use
Keep your OpenAI, Anthropic or Gemini SDK and change only the base URL and key to reach the 3 models in the catalogue, from 2 vendors. Prices are published in USD to nine decimal places.
/v1/chat/completions and /v1/responses (OpenAI), /v1/messages (Anthropic), /v1beta/models (Gemini). When the inbound and upstream protocols differ, the gateway translates.
Reserve first, settle on actual usage
Each request reserves an estimate from your balance; when the upstream answers it is settled once at actual usage and the current price, and the difference is returned. An interrupted stream is settled on the usage recorded so far, or on the estimate when nothing was recorded.
Every request can be reconciled
usage.cost in the response is the cost of that request; /v1/generation returns, by request ID, the list cost, the amount charged and the quantity, unit price and amount of every billed item.
Your first call
Create an API key in the console, put it in the GATEWAY_API_KEY environment variable and run: