API documentationCommon API errors and troubleshooting
Common API errors and troubleshooting
Use the HTTP status, error body and request ID to locate the cause.
400- Check the request format, required fields and model capabilities.
401- Confirm that the full TokenPilot key is present and active. Check for a duplicate Bearer prefix, whitespace, or a client using a different environment variable.
403- Check model access, key scope and any IP restrictions. If the response mentions quota or balance, review the key limit and account balance in the console.
404- Confirm the path, method and model ID. Compare with the API reference and the model list.
429- Reduce concurrency. Retry with backoff and honor Retry-After if returned.
5xx- Check the usage logs and retain the request ID. Avoid automatically resubmitting a video job after an ambiguous timeout.
Record the timestamp, HTTP status, model ID and X-Oneapi-Request-Id when present. Remove the API key and sensitive prompt data before sharing logs.