Obtain your API Key
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 showing the default API Key and copy button
(Optional) Create a new API key
- Click the + Create button at the top of the credentials list.
- Enter a descriptive Name for your key (e.g.
dev-agentorproduction). - Choose the authentication type (API Key), parameter location (
Header: Authorization), and optional expiration date. - Click Confirm to generate the key.

Dialog for creating a new access credential
Quickest call: Copy pre-configured cURL from Dashboard
- In the left navigation menu, click Dashboard (
https://xroute.ai/personal/dashboard). - Under Quick Call Guide, choose your target AI Model and Credential (e.g.
default). - Select your protocol format (OpenAI Compatible Format, Claude Compatible Format, or Native Invocation Mode).
- Click Copy Code on the CURL tab, paste it into your terminal, and run it immediately!

XRoute Personal Dashboard Quick Call Guide with ready-to-copy cURL command
Export your API key in your environment
Send your first request
- 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).
Check balance and call statistics
- 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.

Check your account balance and today's usage in the Personal Dashboard
- 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.

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

