# LLM Gateway

> LLM Gateway is a unified API for routing requests across 40+ LLM providers, including OpenAI, Anthropic, Google, Meta, Mistral, and DeepSeek. Use one OpenAI-compatible API and one key to access 200+ models, with usage analytics, cost tracking, caching, and automatic failover. Open source (AGPLv3) and self-hostable.

## Key pages

- [Models](https://llmgateway.io/models): Full catalog of supported LLMs with pricing, context windows, and capabilities.
- [LLM Rankings](https://llmgateway.io/rankings): Which models developers actually run in production — live token volume, trends, and provider market share over 24h/7d/30d windows.
- [Model release timeline](https://llmgateway.io/timeline): When each LLM was released by its provider and when it was added to LLM Gateway — a reference for AI model release dates (GPT, Claude, Gemini, Llama, Mistral, DeepSeek).
- [Pricing](https://llmgateway.io/pricing): Per-token at provider rates. Pay-as-you-go credits carry a flat 5% platform fee; Bring-Your-Own-Keys is free; enterprise plans available.
- [Pricing (machine-readable)](https://llmgateway.io/pricing.md): Plain-markdown pricing summary for AI agents.
- [Providers](https://llmgateway.io/providers): Every supported provider and the models each offers.
- [Docs](https://docs.llmgateway.io): API reference and integration guides.
- [Compare](https://llmgateway.io/compare/open-router): How LLM Gateway compares to OpenRouter, LiteLLM, Portkey, the Vercel AI Gateway, and GitHub Copilot.
- [GitHub Copilot cost calculator](https://llmgateway.io/copilot-cost-calculator): Estimate a team's monthly Copilot AI Credits bill under the June 2026 usage-based billing and compare the same workload at pass-through token prices with prompt caching.
- [Migrate from GitHub Copilot](https://llmgateway.io/migration/github-copilot): Map Copilot chat, agent mode, and code review to gateway-backed tools with hard budget caps.

## Best models by use case

- [Best models for roleplay](https://llmgateway.io/models/roleplay): Roleplay and character-chat LLMs compared by prose quality, context window, and price.
- [Best models for coding](https://llmgateway.io/models/coding): Code generation and agentic coding models, frontier and open-weight.
- [Best models for creative writing](https://llmgateway.io/models/creative-writing): LLMs with strong long-form prose and narrative consistency.
- [Best models for translation](https://llmgateway.io/models/translation): Multilingual models for document and string translation.
- [Best models for math](https://llmgateway.io/models/math): Reasoning models for competition math and quantitative work.
- [Long context models](https://llmgateway.io/models/long-context): Models with 200K to 2M token context windows.
- [Cheapest models](https://llmgateway.io/models/cheapest): Models at or under $0.20 per million input tokens.
- [Open source models](https://llmgateway.io/models/open-source): Open-weight LLMs (Llama, DeepSeek, Qwen, GLM, Kimi, GPT-OSS) served via API.

## Notes

- New models are typically available within 48 hours of their provider release.
- The API is OpenAI-compatible; point your existing SDK at the gateway base URL.
