What is AgentRouter
A unified LLM API gateway supporting multiple mainstream language model providers
What is AgentRouter
AgentRouter is a unified LLM API gateway that provides developers with a simple, unified interface to access multiple large language model providers.
Core Features
đ Multi-Provider Support
AgentRouter supports the following LLM providers:
- OpenAI - GPT-4, GPT-3.5, and other models
- Anthropic - Claude series models
- DeepSeek - DeepSeek-V3, DeepSeek-R1, and other models
- Moonshot - Kimi models from Moonshot AI
đ Intelligent Routing
Automatically routes to the corresponding upstream provider based on model name:
- Contains
deepseekâ DeepSeek API - Contains
moonshotormoonâ Moonshot API - Contains
claudeâ Anthropic API - Other OpenAI format requests â OpenAI API
đ Unified Authentication
- Access all providers with a single API key
- Supports both
Authorization: Bearerandx-api-keyauthentication methods - Enterprise-grade authentication with Better Auth integration
đ° Wallet & Billing
- Built-in wallet system with pay-as-you-go billing
- New users receive a $1 welcome bonus
- Detailed transaction records and balance management
- Precise pricing for multiple models
đ API Key Management
- Create and manage multiple API keys
- Set rate limits and quotas
- View usage statistics for each key
- Support for key metadata and labels
Why Choose AgentRouter?
Simplified Development
No need to write different code for each LLM provider - use a unified API interface to access multiple providers.
# Use OpenAI SDK to access any provider
from openai import OpenAI
client = OpenAI(
api_key="sk-ar-your-api-key",
base_url="https://your-agentrouter.com/v1"
)
# Access OpenAI
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello!"}]
)
# Access DeepSeek - just change the model name
response = client.chat.completions.create(
model="deepseek-chat",
messages=[{"role": "user", "content": "Hello!"}]
)Cost Reduction
- Pay-as-you-go billing based on actual usage
- No need to maintain multiple provider accounts
- Built-in wallet system with prepaid credits
- Transparent pricing for multiple models
Improved Reliability
- Unified error handling
- Automatic retry mechanism
- Detailed logging and monitoring
Quick Start
- Register an account - Visit the AgentRouter website to register and receive a $1 welcome bonus
- Create API key - Create your first API key in the console
- Start calling - Start making calls using any OpenAI or Anthropic SDK
See Getting Started for detailed steps.
Compatibility
AgentRouter is fully compatible with:
- OpenAI SDK - Python, Node.js, Go, and more
- Anthropic SDK - Python, TypeScript, and more
- Any OpenAI or Anthropic client that supports custom
base_url