Skip to main content
For the full error structure, see API error codes. This page is a quick reference.

4xx client errors

5xx server errors

Task-API specific

Errors during streaming

When a streaming 200 response errors midway, it is sent as SSE:
Always check the error field when consuming SSE.

General troubleshooting flow

1

Copy the Request ID

Get the ID from the X-OpenPAI-Request-Id response header.
2

Check the logs

Console → Logs → search for the Request ID to see the model, token usage and error code.
3

Verify the key

curl https://openp.ai/v1/models -H "Authorization: Bearer sk-..." to verify the key works.
4

Keep the details

If you still can’t pin it down, record the Request ID, the time of the error, and reproduction steps for later investigation.