ERROR RECOVERY
Identify the failing layer first
Keep the HTTP status, complete error body, request time, and Request ID. Test authentication, path, model, group, quota, and upstream routing in that order.
Choose a failure
Diagnostic order
- Save the original status, error body, model ID, time and timezone, and Request ID.
- Use the minimal request below to separate client configuration from the CDAPI connection.
- Check usage logs. No log usually means the request did not reach CDAPI.
Minimal connection test
curl -i https://ai.bycomet.cc/v1/models \
-H "Authorization: Bearer $CDAPI_API_KEY"
HTTP 401
Unauthorized
- Copy the complete key again and remove spaces or extra quotes.
- Send exactly
Authorization: Bearer sk-.... - Confirm that the key is enabled and has not expired.
- Restart the process if it may still hold an old environment variable.
Never include the full key in support details
Use a redacted form such as sk-abcd...wxyz.
HTTP 404
Not Found
| Client type | Correct value | Common mistake |
|---|---|---|
| OpenAI compatible | https://ai.bycomet.cc/v1 |
Entering the full /v1/chat/completions path
|
| Claude Code | https://ai.bycomet.cc |
Adding /v1 before the client adds it |
| Direct HTTP | Complete resource URL | Requesting only the Base URL |
Inspect the final URL for /v1/v1/, a duplicated
resource path, or a missing /v1.
HTTP 429
Rate limit or quota exceeded
- Read the error body to distinguish account balance, key quota, concurrency, and upstream rate limits.
- Check for an agent or client loop sending concurrent retries.
-
Honor
Retry-Afteror use bounded exponential backoff with jitter. - If one model remains limited, choose another currently available model with the required capability.
HTTP 500 / 502 / 503 / 504
Gateway or upstream failure
- Keep the Request ID and confirm whether the same request was already retried.
-
Call
/v1/modelswith the same key to verify the platform connection. - Retry only idempotent or safely repeatable requests, with a hard attempt limit.
- For a persistent single-model failure, check Models and switch to a currently available route.
-
Use
https://api-direct.ai.bycomet.cc/v1for long requests or gateway timeouts.
Do not blindly retry generation tasks
Check the task list or usage logs first to avoid duplicate tasks and charges.
MODEL ROUTING
Model not found or unavailable
- Copy the exact ID from Models or the live catalog.
- Confirm that the key group appears in the model's available groups.
- Match the request route to the model's supported endpoint types.
- Clear any model list cached by the client and sync again.
TIMEOUT / CONNECTION
Timeout or disconnect
-
Use
curl -i https://ai.bycomet.cc/v1/modelsto test DNS, TLS, and authentication. - If there is no usage log, inspect the local network, proxy, and final client URL.
-
If a log exists, move long-running work to
https://api-direct.ai.bycomet.cc/v1. - Increase the client read timeout while keeping bounded retries and a total deadline.
- Create video tasks asynchronously and poll their status.
SERVER-SENT EVENTS
Streaming stalls or arrives at once
- Set
"stream": true. -
Consume
Content-Type: text/event-streamline by line and parse eachdata:event. - Disable buffering in local or reverse proxies.
- Verify the same model with a non-streaming request before debugging SSE.
Send diagnostic support details
- Time and timezone
- HTTP status and complete error body
- Request ID or task ID
- Request path and Base URL
- Model ID and key group
- A redacted key
Contact [email protected] or the Telegram · 交流群.
