Skip to content

Troubleshooting & FAQ ​

When troubleshooting issues, first run curl with the same API Key, Base URL, and Model ID. Once curl succeeds, then check SDK, client, or coding tool configuration.

Quick Self-Check ​

Check ItemCorrect ExampleCommon Errors
OpenAI Base URLhttps://api.corerouter.cloud/v1Missing /v1 or duplicate /v1/v1
Anthropic Base URLhttps://api.corerouter.cloudUsed /v1/chat/completions for Claude Code
API Key HeaderAuthorization: Bearer sk-...Missing Bearer or copied extra spaces
Model IDclaude-sonnet-4-5Used display name instead
Account StatusHas balance, Key not disabledInsufficient quota, Key expired, IP restriction mismatch

Minimal Verification Command ​

bash
export COREROUTER_API_KEY="sk-xxxxxxxxxxxxxxxx"

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

If the model list returns successfully, test chat:

bash
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"}
    ]
  }'

HTTP Status Codes ​

Status CodeMeaningHow to Handle
400Request format or parameter errorCheck JSON, model ID, required fields, field types
401Invalid API KeyCheck Header, whether Key is complete, expired, or deleted
403Insufficient permissionsCheck model permissions, IP whitelist, account status, and Key restrictions
404Path or capability does not existCheck Endpoint, confirm corresponding API is supported
429Rate limit triggeredReduce concurrency, add retry backoff, check account or Key limits
5xxService or upstream temporary errorRetry later, switch models if necessary, or contact support

For video, image, or audio generation, do not automatically resubmit after a timeout, disconnect, or 5xx: the request may already have been accepted. Query the original task if you have its ID. Without an ID, check task records and usage logs or contact support before resubmitting. This avoids duplicate generation and charges. A failed download only requires retrying the existing task's download.

Error Response Format ​

OpenAI-compatible interface errors typically look like:

json
{
  "error": {
    "message": "model is required (request id: 202609221234567890)",
    "type": "new_api_error",
    "code": "invalid_request"
  }
}

When troubleshooting, focus on three items:

  • message: Most direct failure reason, may include Request ID.
  • code: Error category, helps determine if it's a parameter, authentication, rate limit, or upstream issue.
  • HTTP status code: Determines whether to modify request, change Key, reduce concurrency, or retry later.

Media plugins may instead return top-level code, message, and data; some parameter errors have an empty error.code. Handle both error.message and top-level message, and use the HTTP status rather than relying on a fixed error code.

Response Headers may also include X-Oneapi-Request-Id. Provide this Request ID when contacting support.

How to Fill Base URL ​

ScenarioRecommended Value
OpenAI SDK / Chat Completionshttps://api.corerouter.cloud/v1
Responses API / Codexhttps://api.corerouter.cloud/v1, and use a Model ID that supports Responses
Claude Codehttps://api.corerouter.cloud
Gemini-style clientshttps://api.corerouter.cloud
Novita text-to-speech pluginhttps://api.corerouter.cloud, submit to /novita/audio/speech; not standard OpenAI TTS
ElevenLabs text-to-speech pluginhttps://api.corerouter.cloud, submit to /novita/elevenlabs/speech; decode audio_base64 from the JSON response
Realtime WebSocketwss://api.corerouter.cloud/v1/realtime?model=realtime-model-id
Clients that auto-append /v1/chat/completionshttps://api.corerouter.cloud
Clients requiring full OpenAI API addresshttps://api.corerouter.cloud/v1

If unsure whether the client will auto-append paths, first check the final requested URL. If you see paths like /v1/v1 or /v1/chat/completions/chat/completions, the Base URL format doesn't match.

Client Can Chat, But Agent Doesn't Work ​

Successful chat only indicates the model can generate text. Agents also require more stable capabilities:

  • Tool Calling / Tool Use
  • Streaming
  • Long context
  • Multi-turn task stability
  • Responses API or the protocol required by the corresponding tool

Switch to a model marked as supporting Coding Agent in the console and test tool calling examples separately.

Is Client or Plugin Supported? ​

Judge by the following rules:

  • Can fill custom Base URL, API Key, Model ID: Usually can try to integrate.
  • Only official account login, cannot change interface address: Not supported.
  • Only fixed official model list: Not recommended to promise support.
  • Only supports chat: Don't promise Tool Calling, Agent, image, audio, or Embeddings.
  • Tools like Cursor: Don't default to writing as officially supported. Some functions may not use custom Base URL unless you fully test a specific version.
  • Claude Code: Conditional support, requires Anthropic-compatible Messages available; if a version strongly depends on additional auxiliary endpoints, may need to switch versions or tools.

Responses or Codex Unavailable ​

/v1/chat/completions success does not mean /v1/responses success. Codex depends on Responses API. When troubleshooting, confirm:

  • base_url is https://api.corerouter.cloud/v1, not the full /v1/responses.
  • model is a Model ID from the console that supports Responses / Coding Agent.
  • Calling /v1/responses with the same API Key and Model ID returns successful JSON.
  • If it returns 404 or protocol not supported, usually the current model doesn't have Responses capability bound.

Streaming Output Has No Content ​

Check in order:

  1. Is stream: true set in the request body?
  2. Does the client support Server-Sent Events?
  3. Are proxies, gateways, browser plugins, or corporate networks buffering streaming responses?
  4. Does the current model or channel support Streaming?
  5. First use curl to observe if data: events are returned.

Model List Is Empty ​

Possible causes:

  • Invalid or insufficient API Key permissions.
  • Key restricts available models.
  • Account has no available groups or quota.
  • User group has no bound available channels.
  • Billing configuration, model multiplier, or model status causes current Key to be invisible.
  • Client requests model list path incompatibly.

First validate with /v1/models, then return to the client to correct Base URL and Key.

/v1/models returns models visible to the current API Key, not necessarily all platform models. Model list may be affected by user groups, Key model restrictions, channel status, model billing configuration, and admin settings.

Realtime Connection Failure ​

Realtime is WebSocket, not HTTP POST. Troubleshoot in order:

  1. Is the URL wss://api.corerouter.cloud/v1/realtime?model=realtime-model-id?
  2. Is model a model from the console that supports Realtime?
  3. Does the server program pass Authorization: Bearer sk-...?
  4. Does the browser or SDK pass Sec-WebSocket-Protocol with realtime, openai-insecure-api-key.sk-...?
  5. Do proxies, load balancers, or corporate networks allow WebSocket?

Rerank or Moderations Unavailable ​

  • Rerank must pass query and non-empty documents.
  • Rerank requires models that support Rerank; chat models usually cannot be directly reused.
  • Moderations must pass input.
  • If no moderation model is passed, the system may use the default moderation model; production environments should explicitly fill in an available moderation model ID from the console.

Video Tasks Don't Return Results ​

Video and async tasks don't immediately return video files in one request. Troubleshoot in order:

  1. Did the submission interface return an id or task_id?
  2. Are you querying the task with the same API Key?
  3. Does the OpenAI-style query still report queued or in_progress? Generic task queries use different status names; see Video and Async Tasks.
  4. For failed tasks, inspect error or fail_reason and check usage/refund records. An HTTP error alone does not prove a refund occurred.
  5. If /content fails, query the existing task's artifact list or result URL instead of generating again. Signed URLs containing access are download credentials; do not publish them.

The MiniMax audio plugin requires saving the task ID and downloading the MP3 separately. ElevenLabs requires saving the first successful JSON response and decoding audio_base64; its task status endpoint does not return audio, and there is no separate result recovery endpoint. If that response is lost, check consumption records and contact support before resubmitting. Saving either JSON response directly as .mp3 will not produce playable audio. Image responses may also require Base64 decoding. See Image and Audio APIs.

Before Contacting Support ​

Please prepare the following information for quick troubleshooting:

  • Request time and timezone.
  • Endpoint and Model ID used.
  • HTTP status code and error message.
  • X-Oneapi-Request-Id or Request ID in error message.
  • Whether streaming output was used.
  • Client, plugin, or SDK name and version.
  • Whether it can be reproduced with curl.
  • Redacted API Key, e.g., sk-abc...xyz.

Do not send complete API Keys, account passwords, verification codes, private keys, or complete Cookies.

Released under the MIT License.