Getting Started
What is ARouter?
What is ARouter?
How do I get started?
How do I get started?
- Create an account at https://api.arouter.ai
- Generate an API key in the Dashboard
- Set your base URL to
https://api.arouter.ai/v1in any OpenAI-compatible client - Send your first request
How do I get support?
How do I get support?
- GitHub Issues: github.com/arouter-ai
- Email: Check the Dashboard for contact information
- Documentation: You’re here!
Billing
How am I billed?
How am I billed?
How does ARouter price requests?
How does ARouter price requests?
usage field of every response.Do credits expire?
Do credits expire?
What is the refund policy?
What is the refund policy?
Does BYOK have a fee?
Does BYOK have a fee?
How do I check my balance?
How do I check my balance?
My credits have not appeared yet. What should I do?
My credits have not appeared yet. What should I do?
What payment methods are accepted?
What payment methods are accepted?
Is there a free tier?
Is there a free tier?
Models
What models are supported?
What models are supported?
How do I specify which model to use?
How do I specify which model to use?
provider/model format in the model field:openai/gpt-5.4anthropic/claude-sonnet-4.6google/gemini-2.5-flashdeepseek/deepseek-v3.2
Can ARouter automatically select the best model?
Can ARouter automatically select the best model?
model to "auto" and ARouter’s routing service will pick the best available model for your request:model field showing which model was actually used. See Model Routing — Auto Routing for details.Can I provide multiple candidate models?
Can I provide multiple candidate models?
models array together with route:API Technical
How do I authenticate?
How do I authenticate?
- Bearer token:
Authorization: Bearer lr_live_xxxx(OpenAI SDK, fetch) - API Key header:
X-Api-Key: lr_live_xxxx(Anthropic SDK) - Query parameter:
?key=lr_live_xxxx(Gemini SDK)
What are the rate limits?
What are the rate limits?
X-RateLimit-LimitX-RateLimit-RemainingX-RateLimit-Reset
Which endpoints are available?
Which endpoints are available?
/v1/chat/completions— OpenAI-compatible chat/v1/embeddings— OpenAI-compatible embeddings/v1/models— List available models/v1/messages— Anthropic native/v1beta/models/{model}:generateContent— Gemini native/api/v1/balance— Account balance/api/v1/transactions— Transaction history/api/v1/keys— API key management/{provider}/{path}— Provider proxy
What input formats are supported?
What input formats are supported?
- Text: All models
- Images: Vision-capable models (URL or base64)
- PDFs: Anthropic Claude and Google Gemini
Does ARouter support streaming?
Does ARouter support streaming?
stream: true in your request. ARouter supports Server-Sent Events (SSE) streaming for all providers.See Streaming for the full guide including SSE format, error handling, and cancellation.Which SDKs are supported?
Which SDKs are supported?
- Python: OpenAI SDK (
pip install openai) - Node.js / TypeScript: OpenAI SDK (
npm install openai) - Go: ARouter Go SDK (
go get github.com/arouter-ai/arouter-go) - Anthropic SDK: Python and Node.js
- Google Gemini SDK: Python
- Any HTTP client: via cURL, fetch, etc.
Privacy & Data
Does ARouter store my prompts?
Does ARouter store my prompts?
Which providers see my data?
Which providers see my data?
model field processes your request. ARouter acts as a transparent proxy.See Provider Logging for details on upstream provider data policies.Can I prevent providers from training on my data?
Can I prevent providers from training on my data?
provider.data_collection: "deny" to restrict routing to providers that do not use request data for model training:provider.zdr: true for Zero Data Retention enforcement. See Provider Routing — Data Collection Policy.Does ARouter support Zero Data Retention (ZDR)?
Does ARouter support Zero Data Retention (ZDR)?
provider.zdr: true in your request to restrict routing to providers with Zero Data Retention agreements. See Provider Routing.Models & Providers
What are model variants like :nitro, :floor, and :free?
What are model variants like :nitro, :floor, and :free?
:nitro— route to the highest-throughput instance:floor— route to the lowest-cost instance:free— use the free-tier instance (rate limits apply):thinking— enable extended chain-of-thought reasoning:extended— use the version with a larger context window
Does ARouter support images and PDFs?
Does ARouter support images and PDFs?
content array alongside text. PDFs are supported by Anthropic Claude and Google Gemini.Does ARouter support tool calling?
Does ARouter support tool calling?
tools and tool_choice in your request.See Tool Calling for the full guide.Does ARouter support structured outputs / JSON mode?
Does ARouter support structured outputs / JSON mode?
response_format: {"type": "json_object"} for valid JSON output, or response_format: {"type": "json_schema", "json_schema": {...}} for schema-enforced output.See Structured Outputs for details.Does ARouter support prompt caching?
Does ARouter support prompt caching?
cache_control blocks for explicit caching. Google Gemini supports both automatic and explicit caching.See Prompt Caching for the full guide.Account Management
Can I set spending limits on API keys?
Can I set spending limits on API keys?
spending_limit to cap how much that key can spend:How do I restrict which providers a key can access?
How do I restrict which providers a key can access?
Can I have multiple API keys?
Can I have multiple API keys?
Can I track usage per user in my application?
Can I track usage per user in my application?
user field in each request with an opaque identifier for your end user. Usage is then available per user in the Activity Export.Can multiple people share an account?
Can multiple people share an account?