Common Error
If you encounter an error message like the one below, it typically indicates an incorrect Base URL configuration.What is Base URL?
Base URL is the target server address for API requests. Different providers use different Base URLs.MixRoute’s Base URL and API Key Must Match
Correct Configuration
Method 1: Modify Base URL (Recommended)
- Python
- Node.js
- cURL
Method 2: Environment Variables
- Linux/macOS
- Windows PowerShell
- Windows CMD
Supported URL Formats
| Format | URL | Use Case |
|---|---|---|
| With /v1 (recommended) | https://api.mixroute.ai/v1 | Most libraries |
| With trailing slash | https://api.mixroute.ai/v1/ | Some frameworks |
| Full path | https://api.mixroute.ai/v1/chat/completions | cURL requests |
Quick Test
Verify configuration with cURL:- API Key copied correctly (no extra spaces)
- Network connection is working
- Account balance is sufficient
Troubleshooting
Changed Base URL but still getting errors
Changed Base URL but still getting errors
Possible causes:
- Typos: Verify the URL spelling
- Cache issues: Restart program or clear cache
- Proxy or middleware: Some tools may redirect requests
- Multiple configurations: Check config files, env vars, code initialization
How to verify Key is valid?
How to verify Key is valid?
Check in Mixroute Api console:
- Login to Mixroute Api Console
- Go to “Tokens” page
- Check if Key status is “Enabled”
- Confirm account balance is sufficient
How to configure third-party tools?
How to configure third-party tools?
Most tools have “Custom API” options:
- API URL / Base URL:
https://api.mixroute.ai/v1 - API Key: Copy from Mixroute Api console
- Model name: Refer to model list