Skip to content

Set Base URL ​

CodyRouter provides the following API endpoints:

EndpointBase URLDescription
Standard endpointhttps://api.codyrouter.comDefault global routing for most users.
China optimized endpointhttps://api-cn.codyrouter.comOptimized route for networks in mainland China.
Enclave endpointhttps://apisec.codyrouter.comRoutes 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.com

China optimized endpoint

Optimized route for networks in mainland China.

https://api-cn.codyrouter.com

Protocol URLs ​

ProtocolBase URL
OpenAI Compatiblehttps://api.codyrouter.com/v1
Anthropic Compatiblehttps://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/v1

Follow the setup page for each tool when in doubt.

Troubleshooting ​

SymptomCommon cause
404 Not FoundRequest path or endpoint configuration is incorrect
401 UnauthorizedAPI key is wrong or the request is missing Bearer
Model unavailableModel ID is wrong, or the account does not have access to that model

Continue with Claude Code Setup, Codex Setup, or OpenCode Setup.

CodyRouter integration documentation.