1. Authenticate
Choose the authentication flow that matches how you connect:- OAuth for MCP & CLI (recommended for agents): Connect your coding agent to
https://mcp.xroute.ai/mcpand sign in through your browser. No API key needs to be copied into config files. - Bearer API Key (for applications & SDKs): Generate an API key in the XRoute Console and pass it in the
Authorization: Bearer $XROUTE_API_KEYheader. - Machine Payments (MPP): Selected read-only data endpoints support HTTP 402 machine payments without requiring an account or API key.
2. Call an endpoint
All requests go through XRoute’s high-availability edge gateway:3. Pay per use
Every call draws from your unified Credits balance:- Models: Billed per input and output token at transparent, vendor-beating rates.
- Data APIs: Billed per request or per returned record.
- Free quotes: Query
/v1/modelsor run MCPbatch_quote/ CLIxroute quote --jsonat zero cost before executing paid calls.
What XRoute handles vs. what you own
When to use XRoute
- Building AI agents: Give Claude Code, Cursor, Codex, or custom agents instant access to search, finance, social data, and 60+ LLMs.
- Production LLM apps: Eliminate single-vendor downtime with multi-cluster automatic failover and low-latency edge routing.
- Multi-modal workflows: Combine text reasoning (
deepseek/deepseek-r1,anthropic/claude-sonnet-4) with video generation (Byteplus/dreamina-seedance-2-5) under one billing balance.
Next steps
Connect via MCP
Connect your coding agent in under a minute using browser OAuth.
API Key & First Call
Create an API key and make your first HTTP request.

