Set Base URL
CodyRouter provides the following API endpoints:
| Endpoint | Base URL | Description |
|---|---|---|
| Standard endpoint | https://api.codyrouter.com | Default global routing for most users. |
| China optimized endpoint | https://api-cn.codyrouter.com | Optimized route for networks in mainland China. |
| Enclave endpoint | https://apisec.codyrouter.com | Routes through enclave-protected infrastructure. |
CodyRouter's API endpoint supports both OpenAI Compatible and Anthropic Compatible request formats.
Latency Test
Run a browser-side latency test from your current network and choose the lower-latency endpoint.
Standard endpoint
Default global routing for most users.
https://api.codyrouter.comChina optimized endpoint
Optimized route for networks in mainland China.
https://api-cn.codyrouter.comProtocol URLs
| Protocol | Base URL |
|---|---|
| OpenAI Compatible | https://api.codyrouter.com/v1 |
| Anthropic Compatible | https://api.codyrouter.com/v1 |
The /v1 suffix is optional. For the standard endpoint, both Base URLs below are valid for API calls:
text
https://api.codyrouter.com
https://api.codyrouter.com/v1Follow the setup page for each tool when in doubt.
Troubleshooting
| Symptom | Common cause |
|---|---|
404 Not Found | Request path or endpoint configuration is incorrect |
401 Unauthorized | API key is wrong or the request is missing Bearer |
| Model unavailable | Model ID is wrong, or the account does not have access to that model |
Continue with Claude Code Setup, Codex Setup, or OpenCode Setup.