Quick Start
To use CoreRouter for the first time, you only need to complete three things: create an API Key, select a Model ID, and configure the endpoint in your client or code.
One-Minute Configuration
| Parameter | Value | Description |
|---|---|---|
| Base URL | https://api.corerouter.cloud/v1 | OpenAI-compatible endpoint |
| API Key | sk-xxxxxxxxxxxxxxxx | Create in CoreRouter console |
| Model ID | claude-sonnet-4-5 | Use the exact Model ID shown in console |
Use the Model ID from the console, not the display name. For example, use
claude-sonnet-4-5, notClaude Sonnet.
Confirm Your API Type
| Usage | Base URL |
|---|---|
| OpenAI SDK, Chat Completions, Embeddings, Rerank, Images, Standard Audio, Video Tasks | https://api.corerouter.cloud/v1 |
| Novita text-to-speech plugin | https://api.corerouter.cloud, full path /novita/audio/speech; see example |
| ElevenLabs text-to-speech plugin | https://api.corerouter.cloud, full path /novita/elevenlabs/speech; see example |
| Codex, Responses API | https://api.corerouter.cloud/v1, and select a model that supports Responses |
| Realtime WebSocket | wss://api.corerouter.cloud/v1/realtime?model=realtime-model-id |
| Claude Code, Anthropic Messages API | https://api.corerouter.cloud |
| Gemini API Client | https://api.corerouter.cloud |
If your client automatically appends the full path, you may only need to enter https://api.corerouter.cloud. If the client requires an OpenAI Compatible Base URL, typically use https://api.corerouter.cloud/v1.
Setup Steps
- Register and log in to the CoreRouter console.
- Add credits on the Wallet or Recharge page.
- Create an API Key on the API Keys page. You can configure quota limits, expiration time, allowed models, and IP restrictions as needed.
- Copy the Model ID from the console.
- Test with the curl request below.
export COREROUTER_API_KEY="sk-xxxxxxxxxxxxxxxx"
curl https://api.corerouter.cloud/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COREROUTER_API_KEY" \
-d '{
"model": "claude-sonnet-4-5",
"messages": [
{
"role": "user",
"content": "Hello, please introduce yourself."
}
]
}'If the response contains a choices field, your API Key, endpoint, and Model ID are configured correctly.
Save Environment Variables
macOS / Linux:
export COREROUTER_API_KEY="sk-xxxxxxxxxxxxxxxx"
export COREROUTER_BASE_URL="https://api.corerouter.cloud/v1"
export COREROUTER_MODEL="claude-sonnet-4-5"Windows PowerShell:
$env:COREROUTER_API_KEY="sk-xxxxxxxxxxxxxxxx"
$env:COREROUTER_BASE_URL="https://api.corerouter.cloud/v1"
$env:COREROUTER_MODEL="claude-sonnet-4-5"When deploying to servers, containers, serverless functions, or CI, use the platform's Secret / Environment Variables feature to save API Keys. Never hardcode keys in source code.
Next Steps
- API Integration: For Python, Node.js, LangChain, and server-side projects.
- Endpoints & Capabilities Overview: To confirm endpoints, Base URLs, and model capabilities.
- Desktop Clients: For graphical clients like Cherry Studio.
- AI Coding Tools: For development tools like Cline, Claude Code, and Codex.
- Infinite Canvas: Open the canvas from the web workspace and organize images, videos, and reference media as nodes.
- Troubleshooting & FAQ: To diagnose 401, 403, 429, Base URL, and Agent issues.
Common Issues
401: API Key is incorrect, expired, has extra spaces when copied, or the Header is notAuthorization: Bearer ....400: Invalid JSON format, or themodelfield is not the Model ID from the console.403: Insufficient API Key permissions, model permissions, IP restrictions, or account permissions.429: Request rate too high or rate limit triggered. Reduce concurrency and retry.- No response or timeout: Use the model-list request below with its
Authorizationheader to check the network and Key; omitting authentication returns401. - Agent not working: Standard chat models may not support tool calling. Switch to a model that supports Coding Agent.
List Available Models
curl https://api.corerouter.cloud/v1/models \
-H "Authorization: Bearer $COREROUTER_API_KEY"