Skip to main content

Common Error

If you encounter an error message like the one below, it typically indicates an incorrect Base URL configuration.
Most common mistake: Using MixRoute API Key but the request URL still points to OpenAI’s https://api.openai.com

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 2: Environment Variables

Supported URL Formats

Quick Test

Verify configuration with cURL:
Expected result: Returns available models list
If you get an error, check:
  1. API Key copied correctly (no extra spaces)
  2. Network connection is working
  3. Account balance is sufficient

Troubleshooting

Possible causes:
  1. Typos: Verify the URL spelling
  2. Cache issues: Restart program or clear cache
  3. Proxy or middleware: Some tools may redirect requests
  4. Multiple configurations: Check config files, env vars, code initialization
Check in Mixroute Api console:
  1. Login to Mixroute Api Console
  2. Go to “Tokens” page
  3. Check if Key status is “Enabled”
  4. Confirm account balance is sufficient
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