AnRouter

One API for China’s Frontier AI Models
Leading open-source ecosystems, one unified interface, flexible access.

Access DeepSeek, GLM, MiniMax, Qwen, and MiMo through OpenAI-compatible APIs to build production AI agents and automated workflows at lower cost.

POST/v1/chat/completions
Request
curl -X POST "https://api.anrouter.com/v1/chat/completions" \
  -H "Authorization: Bearer sk-••••" \
  -d '{
    "model": "glm-5.3",
    "messages": [
      { "role": "user", "content": "..." }
    ]
  }'

Extended context, no chunking

Context windows up to one million tokens. Complete codebases, long-form legal documents, and multi-source research can be processed in a single API call.

Built for production economics

Frontier reasoning at rates designed for sustained, high-volume usage. Committed usage unlocks volume discounts across every model.

Mainstream protocols, directly compatible

OpenAI and Anthropic protocols are directly supported without rewriting existing application logic. Point any compatible SDK at AnRouter and it works.

Works with the tools developers already use

OpenCode, Codex, Cline, Claude Code, and every major AI development tool integrates with AnRouter through standard protocols. No application code changes and no prompt rewrites.

Cursor
Windsurf
GitHub Copilot
Claude Code
VS Code
OpenClaw
OpenCode
Cline
LangChain
Dify
n8n
OpenAI SDK
Ollama
Hugging Face
Vercel AI
Perplexity
GitHub
Qoder
Codex CLI
OpenRouter

The model lineup

Eleven models cover reasoning, coding, multimodal input, long context, and agent workflows through one endpoint with consistent API semantics. Card prices are input, cached input, and output.

Explore All Models →

DeepSeek

deepseek-v4-flash-0731

Multimodal · Coding

DeepSeek

deepseek-v4.1-flash

Multimodal · Reasoning

Z.AI

glm-5

Multimodal · Reasoning

Z.AI

glm-5.2

Multimodal · Reasoning

Z.AI

glm-5.3

Multimodal · Coding

Z.AI

glm-5.3-flash

Multimodal · Fast

MiniMax

minimax-m3

Text · Reasoning

Qwen

qwen3.8-27b

Multimodal · Reasoning

Qwen

qwen3.8-flash-next

Multimodal · Fast

Xiaomi MiMo

mimo-v2.6-pro

Multimodal · Coding

Xiaomi MiMo

mimo-v2.6-flash

Multimodal · Fast

Get started

Start building with AnRouter.

Free API access. No credit card required.