Skip to content

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 ​

ParameterValueDescription
Base URLhttps://api.corerouter.cloud/v1OpenAI-compatible endpoint
API Keysk-xxxxxxxxxxxxxxxxCreate in CoreRouter console
Model IDclaude-sonnet-4-5Use 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, not Claude Sonnet.

Confirm Your API Type ​

UsageBase URL
OpenAI SDK, Chat Completions, Embeddings, Rerank, Images, Standard Audio, Video Taskshttps://api.corerouter.cloud/v1
Novita text-to-speech pluginhttps://api.corerouter.cloud, full path /novita/audio/speech; see example
ElevenLabs text-to-speech pluginhttps://api.corerouter.cloud, full path /novita/elevenlabs/speech; see example
Codex, Responses APIhttps://api.corerouter.cloud/v1, and select a model that supports Responses
Realtime WebSocketwss://api.corerouter.cloud/v1/realtime?model=realtime-model-id
Claude Code, Anthropic Messages APIhttps://api.corerouter.cloud
Gemini API Clienthttps://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 ​

  1. Register and log in to the CoreRouter console.
  2. Add credits on the Wallet or Recharge page.
  3. Create an API Key on the API Keys page. You can configure quota limits, expiration time, allowed models, and IP restrictions as needed.
  4. Copy the Model ID from the console.
  5. Test with the curl request below.
bash
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:

bash
export COREROUTER_API_KEY="sk-xxxxxxxxxxxxxxxx"
export COREROUTER_BASE_URL="https://api.corerouter.cloud/v1"
export COREROUTER_MODEL="claude-sonnet-4-5"

Windows PowerShell:

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 ​

Common Issues ​

  • 401: API Key is incorrect, expired, has extra spaces when copied, or the Header is not Authorization: Bearer ....
  • 400: Invalid JSON format, or the model field 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 Authorization header to check the network and Key; omitting authentication returns 401.
  • Agent not working: Standard chat models may not support tool calling. Switch to a model that supports Coding Agent.

List Available Models ​

bash
curl https://api.corerouter.cloud/v1/models \
  -H "Authorization: Bearer $COREROUTER_API_KEY"

Released under the MIT License.