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 Item | Correct Example | Common Errors |
|---|---|---|
| OpenAI Base URL | https://api.corerouter.cloud/v1 | Missing /v1 or duplicate /v1/v1 |
| Anthropic Base URL | https://api.corerouter.cloud | Used /v1/chat/completions for Claude Code |
| API Key Header | Authorization: Bearer sk-... | Missing Bearer or copied extra spaces |
| Model ID | claude-sonnet-4-5 | Used display name instead |
| Account Status | Has balance, Key not disabled | Insufficient quota, Key expired, IP restriction mismatch |
Minimal Verification Command
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:
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 Code | Meaning | How to Handle |
|---|---|---|
400 | Request format or parameter error | Check JSON, model ID, required fields, field types |
401 | Invalid API Key | Check Header, whether Key is complete, expired, or deleted |
403 | Insufficient permissions | Check model permissions, IP whitelist, account status, and Key restrictions |
404 | Path or capability does not exist | Check Endpoint, confirm corresponding API is supported |
429 | Rate limit triggered | Reduce concurrency, add retry backoff, check account or Key limits |
5xx | Service or upstream temporary error | Retry 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:
{
"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
| Scenario | Recommended Value |
|---|---|
| OpenAI SDK / Chat Completions | https://api.corerouter.cloud/v1 |
| Responses API / Codex | https://api.corerouter.cloud/v1, and use a Model ID that supports Responses |
| Claude Code | https://api.corerouter.cloud |
| Gemini-style clients | https://api.corerouter.cloud |
| Novita text-to-speech plugin | https://api.corerouter.cloud, submit to /novita/audio/speech; not standard OpenAI TTS |
| ElevenLabs text-to-speech plugin | https://api.corerouter.cloud, submit to /novita/elevenlabs/speech; decode audio_base64 from the JSON response |
| Realtime WebSocket | wss://api.corerouter.cloud/v1/realtime?model=realtime-model-id |
Clients that auto-append /v1/chat/completions | https://api.corerouter.cloud |
| Clients requiring full OpenAI API address | https://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_urlishttps://api.corerouter.cloud/v1, not the full/v1/responses.modelis a Model ID from the console that supports Responses / Coding Agent.- Calling
/v1/responseswith 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:
- Is
stream: trueset in the request body? - Does the client support Server-Sent Events?
- Are proxies, gateways, browser plugins, or corporate networks buffering streaming responses?
- Does the current model or channel support Streaming?
- 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:
- Is the URL
wss://api.corerouter.cloud/v1/realtime?model=realtime-model-id? - Is
modela model from the console that supports Realtime? - Does the server program pass
Authorization: Bearer sk-...? - Does the browser or SDK pass
Sec-WebSocket-Protocolwithrealtime, openai-insecure-api-key.sk-...? - Do proxies, load balancers, or corporate networks allow WebSocket?
Rerank or Moderations Unavailable
- Rerank must pass
queryand non-emptydocuments. - 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:
- Did the submission interface return an
idortask_id? - Are you querying the task with the same API Key?
- Does the OpenAI-style query still report
queuedorin_progress? Generic task queries use different status names; see Video and Async Tasks. - For failed tasks, inspect
errororfail_reasonand check usage/refund records. An HTTP error alone does not prove a refund occurred. - If
/contentfails, query the existing task's artifact list or result URL instead of generating again. Signed URLs containingaccessare 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-Idor 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.
