Total number of tokens in the batch exceeds the limit;
Number of tokens in an example exceeds the context length;
Solution: The specific error will be indicated in the error message. Double check the request body and correct the errors.
🔴 401
Unauthorized
Cause: Invalid authentication. Solution: Ensure the API key is correctly specified in the HTTP request header. Please create or view your API key in our dashboard.
🔴 403
Forbidden
Cause: The IP address you are sending the request from might be forbidden. Solution: Try to use a different IP address to call the API.
🔴 429
Rate Limit Exceeded
Cause: The frequency of your requests is too high. Solution: Please pace your requests. Read the rate limit guide for more information.
🔴 500
Server Error
Cause: Unexpected issue on our servers. Solution: Retry your request after a brief wait. If the error persists, please contact us at [email protected].
🔴 502 🔴 503 🔴 504
Service Unavailable
Cause: Our servers are currently experiencing high traffic. Solution: Retry your requests after a brief wait.