Billing and routing

AI gateway

An AI gateway is a service between apps and AI model providers that gives them one endpoint and one set of keys for many models, and handles routing, spending limits and usage tracking in one place.

Also called LLM gateway, AI API gateway, Model gateway

Checked November 29, 2026

At a glance

Sits between
Your apps and the model providers
Gives you
One endpoint and one key for many models
Handles
Routing, fallback, spending limits, usage tracking
In Claude Code
Set ANTHROPIC_BASE_URL to the gateway
On /model
A hosted gateway that speaks the OpenAI and Anthropic APIs

Claude Code's docs list what a gateway gives an organization one place to manage: credentials, with the provider keys kept on the server; usage tracking by developer or team; cost controls such as budgets and rate limits; audit logging; and switching providers without touching developers' machines. Claude Code is pointed at a gateway with ANTHROPIC_BASE_URL (Claude Code docs).

What a gateway does

  • One API for many models: apps speak one format, often OpenAI's, and reach models from several makers.
  • Keys and spending: people and apps get the gateway's keys, each with its own limits, instead of the providers' keys.
  • Routing and fallback: a request can go elsewhere when a provider is slow or down. See LLM router.
  • Usage in one place: every call from every app, on one bill.

/model as an AI gateway

/model is a gateway you don't run yourself: one base URL, https://api.slashmodel.com, that speaks the OpenAI and Anthropic APIs; one key for Claude, GPT, Gemini, Kimi, GLM, DeepSeek and the other models on the pricing page; and one prepaid balance (About).

  • Keys with their own spending caps, maximum prices, allowed IP addresses, models and expiry (Key settings).
  • Routing across each model's channels, with fallback: a request tries up to 3 (Routing).
  • Every charge in one place, under Usage on your dashboard.
  • Setup for the tools you already use, under Guides: Claude Code, Cursor, Codex CLI, LiteLLM and more.

Where it applies on /model

Questions

What is the difference between an AI gateway and an LLM router?

A router decides which provider or model serves each request. A gateway is the whole service around it: the API, the keys, the limits and the bill. Most gateways include a router.

Do I have to run an AI gateway myself?

No. Some gateways are software you host; others, such as /model, are services you call with a key.

Can Claude Code use /model?

Yes. Set ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN; the Claude Code guide has the steps.

Sources

The makers' own pages, each opened on November 29, 2026.

One key for every model here.

Top up from $10, change one URL, and pay only for the tokens you use.