Skip to main content
Welcome to XRoute. Follow this quickstart guide to obtain your unified API key, send your first model request across unified OpenAI, Anthropic, or native multimodal endpoints, and monitor your usage in real time.
1

Obtain your API Key

In the left sidebar of the personal console, click Access Credentials (https://xroute.ai/personal/keys).XRoute provides a default credential key out-of-the-box. Click the Copy icon next to the API Key input field to copy your secret key (sk-...).
Access Credentials Overview

Access credentials overview showing the default API Key and copy button

2

(Optional) Create a new API key

To isolate environments or control access permissions across different applications, you can create additional keys:
  1. Click the + Create button at the top of the credentials list.
  2. Enter a descriptive Name for your key (e.g. dev-agent or production).
  3. Choose the authentication type (API Key), parameter location (Header: Authorization), and optional expiration date.
  4. Click Confirm to generate the key.
Create New Access Key

Dialog for creating a new access credential

3

Quickest call: Copy pre-configured cURL from Dashboard

You do not need to manually assemble endpoint URLs, model identifiers, or headers. The XRoute Personal Dashboard provides a Quick Call Guide that automatically generates ready-to-run code with your secret key and chosen model pre-filled:
  1. In the left navigation menu, click Dashboard (https://xroute.ai/personal/dashboard).
  2. Under Quick Call Guide, choose your target AI Model and Credential (e.g. default).
  3. Select your protocol format (OpenAI Compatible Format, Claude Compatible Format, or Native Invocation Mode).
  4. Click Copy Code on the CURL tab, paste it into your terminal, and run it immediately!
Dashboard Quick Call Guide

XRoute Personal Dashboard Quick Call Guide with ready-to-copy cURL command

4

Export your API key in your environment

For programmatic usage with SDKs or command-line scripts, export the API key in your terminal session:
Never commit your API keys to public repositories or expose them in client-side frontend code.
5

Send your first request

XRoute supports multiple generation modalities and protocols. Choose the format that fits your application:
  • Text Models: Support OpenAI Unified (https://api.xroute.ai/v1/chat/completions), Anthropic Unified (https://api.xroute.ai/v1/messages), and Provider Native formats.
  • Image Models: Call provider native endpoints directly (e.g. https://api.xroute.ai/OpenAI/images/generations).
  • Video Models: Asynchronous workflow (submit task to /contents/generations/tasks, then poll status).
6

Check balance and call statistics

After making requests, you can monitor your account usage and API traffic directly in the console:
  1. View balance and today’s usage on the Dashboard: Go to Dashboard (https://xroute.ai/personal/dashboard) to view your real-time Account Balance (USD), Today’s Usage, and total Today’s Calls.
Personal Dashboard Overview

Check your account balance and today's usage in the Personal Dashboard

  1. Inspect detailed invocation metrics in Call Statistics: Under REPORTS in the left sidebar, click Call Statistics (https://xroute.ai/personal/call) to analyze your model calls. You can view Total Calls, Success Call Rate, Average Duration, Total Tokens Called, Total Consumption Amount, and the real-time Model Invocation Trend breakdown chart.
Call Statistics Analysis

Monitor model traffic, token consumption, and duration in Call Statistics


Next steps

SDK Compatibility

Use XRoute with OpenAI, Anthropic, LangChain, LlamaIndex, or Byteplus SDKs.

Model Catalog

Explore all supported LLMs, image generation, and video generation models.

XRoute Console

Manage access credentials, monitor real-time balance, configure model mapping failovers, and track call statistics.

Rate Limits & Errors

Understand default rate limits, retry mechanisms, and error codes.