Skip to main content
XRoute sits between your application or AI agent and 60+ global model providers and 100+ real-time data APIs. You authenticate once, call a standard endpoint, and pay per request from a single prepaid balance.

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/mcp and 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_KEY header.
  • 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/models or run MCP batch_quote / CLI xroute quote --json at 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.