AllDocumentation Index
Fetch the complete documentation index at: https://docs.arouter.ai/llms.txt
Use this file to discover all available pages before exploring further.
/v1/* endpoints require authentication. ARouter supports four methods: three
API-key-based methods for every major LLM SDK, plus wallet-based authentication
for AI agents with crypto wallets.
Auth Methods
- Bearer Token
- X-Api-Key Header
- Query Parameter
- Wallet JWT (SIWx)
Used by the OpenAI SDK, DeepSeek SDK, Mistral SDK, and most OpenAI-compatible clients.
The first three methods use the same ARouter API key. The gateway automatically detects
which method is being used. Wallet users follow a separate path: SIWx/x402 produce a
wallet JWT, and subsequent requests use
Authorization: Bearer <jwt>.Key Types
| Key Type | Format | Description |
|---|---|---|
| Management Key | lr_mgmt_xxxx | Create and manage API keys via the management API. |
| API Key | lr_live_xxxx | Make LLM requests. Can have provider/model restrictions and spending limits. |
Error Responses
When authentication fails, you’ll receive one of these responses:401 Unauthorized.