Response
Response
retryable before you do anything else.
Decide what to do
Every code is listed in Errors.
A retry loop
Common cases
401 unauthorizedmeans the key is missing or wrong. SendAuthorization: Bearer <key>.402 insufficientCreditsmeans your balance is too low. The error says how many credits the call needs and how many you have. Add credits and try again.429 rateLimitedortooManyInFlightmeans you are over your rate limits. Wait, then retry.400 invalidRequestmeans the input is not valid. The message names the field. Check the endpoint’s input in the API reference.404 notFoundmeans the thing you asked for does not exist. Don’t retry.