Anthropic
Claude API
Frontier instruction-following models built for Claude Code, refactoring, and long-form writing.
OpenAI & Anthropic-compatible API
Call Claude, GPT, DeepSeek, GLM-5.3, Kimi, Grok, Gemini, Qwen, MiniMax, and Mimo with one API key and prepaid credits. Connect Claude Code, OpenCode, Codex CLI, Cursor, Open WebUI, or SillyTavern without separate provider accounts.
Quickstart & endpoints
Keep your existing SDK and change only the base URL and API key. LivRouter supports OpenAI Chat Completions and Responses (https://api.livrouter.com/v1) plus Anthropic Messages (https://api.livrouter.com) on one prepaid credit balance.
import osfrom openai import OpenAI client = OpenAI( base_url="https://api.livrouter.com/v1", api_key=os.environ["LIVROUTER_API_KEY"],)res = client.chat.completions.create( model="glm-5.3", messages=[{"role": "user", "content": "Hello"}],)import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.livrouter.com/v1", apiKey: process.env.LIVROUTER_API_KEY,});const res = await client.chat.completions.create({ model: "glm-5.3", messages: [{ role: "user", content: "Hello" }],});curl https://api.livrouter.com/v1/chat/completions \ -H "Authorization: Bearer $LIVROUTER_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"glm-5.3","messages":[{"role":"user","content":"Hello"}]}'import osfrom openai import OpenAI client = OpenAI( base_url="https://api.livrouter.com/v1", api_key=os.environ["LIVROUTER_API_KEY"],)res = client.chat.completions.create( model="deepseek-v4.1-flash", messages=[{"role": "user", "content": "Hello"}],)import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.livrouter.com/v1", apiKey: process.env.LIVROUTER_API_KEY,});const res = await client.chat.completions.create({ model: "deepseek-v4.1-flash", messages: [{ role: "user", content: "Hello" }],});curl https://api.livrouter.com/v1/chat/completions \ -H "Authorization: Bearer $LIVROUTER_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"deepseek-v4.1-flash","messages":[{"role":"user","content":"Hello"}]}'import osimport anthropic client = anthropic.Anthropic( base_url="https://api.livrouter.com", api_key=os.environ["LIVROUTER_API_KEY"],)msg = client.messages.create( model="claude-sonnet-5", max_tokens=1024, messages=[{"role": "user", "content": "Hello"}],)import Anthropic from "@anthropic-ai/sdk"; const client = new Anthropic({ baseURL: "https://api.livrouter.com", apiKey: process.env.LIVROUTER_API_KEY,});const msg = await client.messages.create({ model: "claude-sonnet-5", max_tokens: 1024, messages: [{ role: "user", content: "Hello" }],});curl https://api.livrouter.com/v1/messages \ -H "x-api-key: $LIVROUTER_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{"model":"claude-sonnet-5","max_tokens":1024,"messages":[{"role":"user","content":"Hello"}]}'import osfrom openai import OpenAI client = OpenAI( base_url="https://api.livrouter.com/v1", api_key=os.environ["LIVROUTER_API_KEY"],)res = client.responses.create( model="gpt-6-sol", input="Summarize this diff in three bullets.",)import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.livrouter.com/v1", apiKey: process.env.LIVROUTER_API_KEY,});const res = await client.responses.create({ model: "gpt-6-sol", input: "Summarize this diff in three bullets.",});curl https://api.livrouter.com/v1/responses \ -H "Authorization: Bearer $LIVROUTER_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"gpt-6-sol","input":"Summarize this diff in three bullets."}'export ANTHROPIC_BASE_URL="https://api.livrouter.com"export ANTHROPIC_API_KEY="$LIVROUTER_API_KEY"claudeThe switch
Before
With LivRouter
Model landscape
44 models across 10 providers
Use one API key to connect coding agents, chat apps, and multimodal AI workflows to the model API your workload needs. LivRouter keeps the endpoint consistent while you compare and switch supported Claude API, GPT API, DeepSeek API, Gemini, Qwen, and other model families.
Providers: Alibaba, Anthropic, DeepSeek, Google, MiniMax, Moonshot, OpenAI, xAI, Xiaomi, Z.ai.
Anthropic
Frontier instruction-following models built for Claude Code, refactoring, and long-form writing.
OpenAI
General-purpose OpenAI models for tool use, structured JSON, vision, and everyday product apps.
xAI
Low-latency xAI models including Grok 4.6 for Cursor, rapid iteration, and conversational workflows.
DeepSeek
High-value coding and reasoning models popular in OpenCode, Codex CLI, and batch pipelines.
Z.ai
Z.ai GLM-5.3 and Flash models for multilingual agent workflows, planning, and cost-effective coding.
Moonshot
Moonshot long-context models including Kimi K2 and K3 for repository review, document QA, and reasoning.
Google multimodal models for document analysis, long context, and cross-modal tasks.
Alibaba
Alibaba Qwen 3.8 models for multilingual generation, code review, reasoning, and tool use.
MiniMax
Fast, budget-friendly MiniMax M3 models suited for interactive chat and high-throughput apps.
Xiaomi
Xiaomi Mimo v2.6 Pro and Flash models for compact reasoning, planning, and coding tasks.
Lowest published plan rates in USD per 1M input / output tokens. Select a model for exact tier tables and SDK examples.
GLM-5.3
Z.ai · glm-5.3
$0.224 / $0.704
In / out per 1M
GLM 5.3 Flash
Z.ai · glm-5.3-flash
$0.024 / $0.08
In / out per 1M
DeepSeek v4.1 Flash
DeepSeek · deepseek-v4.1-flash
$0.063 / $0.252
In / out per 1M
Kimi K3.1 Pro
Moonshot · kimi-k3.1-pro
$0.42 / $2.10
In / out per 1M
Grok 4.6
xAI · grok-4.6
$0.32 / $0.96
In / out per 1M
Claude Sonnet 5
Anthropic · claude-sonnet-5
$0.14 / $0.70
In / out per 1M
Mimo v2.6 Flash
Xiaomi · mimo-v2.6-flash
$0.0224 / $0.0448
In / out per 1M
Qwen3.8 Max
Alibaba · qwen3.8-max
$0.32 / $0.96
In / out per 1M
Integrations
Keep one API key across Claude Code, OpenCode, Codex CLI, Cursor, Open WebUI, Cherry Studio, n8n, and SillyTavern. Switch models by ID without rebuilding your integration.
Your clients
Coding CLIs · IDEs · Chat apps · SDKs
LivRouter API
OpenAI /v1 · Anthropic Messages
Unified catalog
44 models · 10 providers
Point ANTHROPIC_BASE_URL or custom OpenAI providers at LivRouter to run Claude, DeepSeek, or GLM-5.3 from your terminal.
Setup guides
Override the base URL in editor extensions or n8n AI Agent nodes to use Grok 4.6, DeepSeek, GLM-5.3, and GPT models.
Connect desktop, self-hosted, or roleplay chat clients through one OpenAI-compatible /v1 endpoint and prepaid key.
Setup guides
Pricing
All usage is billed per token from prepaid credits. Compare each plan's price, rate, and included credits on the plans & billing page or check our AI API pricing comparison.
Get started in seconds
$0/ month
For everyday productivity
$5/ month
For a full immersion
$20/ month
For ultimate mastery
$199/ forever
Monthly subscriptions renew until canceled. Prime is a one-time plan with permanent access.
FAQ
Protocol compatibility, billing model, supported models, and migrating existing OpenAI or Anthropic configurations.
Browse API documentationAn API that follows OpenAI's chat completions format. You can keep an OpenAI SDK or library and use another model by changing the base URL and model name.
Yes. LivRouter provides an Anthropic-compatible layer so Claude Code and Anthropic SDK workflows can point at LivRouter endpoints.
Yes, if the app supports a custom OpenAI-compatible API. Set its API endpoint to https://api.livrouter.com/v1, enter your LivRouter API key, and select a model available in the catalog.
Change the base URL to https://api.livrouter.com/v1 and update the model name. Existing OpenAI SDK calls can continue using the same request pattern.
Usage is billed per token from prepaid credits. Start uses standard model rates. Pro ($5/month) includes 55 credits and lowers published token-model rates by ~80%; Max ($20/month) includes 220 credits and lowers them by ~93%; Prime ($199 / forever) includes 2,200 credits and lowers published token-model rates permanently.
OpenRouter aggregates a very large catalog with pay-as-you-go per-token billing. LivRouter focuses on a curated catalog, an OpenAI-compatible endpoint plus an Anthropic-compatible layer for Claude Code, prepaid credits, and optional plans that lower token rates.
The current catalog covers Claude, GPT, Grok, DeepSeek, GLM, Kimi, Gemini, Qwen, MiniMax, and Mimo. Exact model IDs, availability, and current rates are listed in the model directory.
The Start plan has no monthly fee ($0/month) and includes 5 bonus credits; usage is billed pay-as-you-go per token from prepaid credits at standard model rates rather than an unlimited free tier. Paid plans are optional and add included credits, lower model rates, and unlock eligible paid models.