Error Code Reference
| Code | Meaning | Common Cause |
|---|---|---|
| 401 | Unauthorized | Missing or invalid secret key |
| 402 | Payment Required | Insufficient credits |
| 403 | Forbidden | No permission to access the requested model |
| 408 | Request Timeout | Request processing exceeded the timeout |
| 422 | Unprocessable Entity | Invalid request parameters |
| 429 | Too Many Requests | Rate limit exceeded |
| 502 | Bad Gateway | Temporary model service error |
| 503 | Service Unavailable | Service maintenance or overload |
Authentication Errors
I lost my secret key
I lost my secret key
Secret keys are displayed only once when they are created and cannot be viewed again.Delete the existing key from the Console and generate a new one. We recommend copying it immediately and storing it securely as an environment variable.
Billing and Credit Issues
402 Payment Required — Insufficient credits
402 Payment Required — Insufficient credits
Cause: Your Organization’s AU balance has been exhausted, preventing further API requests.Resolution:
- Add credits from the Billing page in the Console.
- Retry your API request after the credits have been added.
- To prevent interruptions, enable Auto Top-up.
The exact error message returned when credits are exhausted is currently being finalized.
Request Validation Errors
422 Unprocessable Entity — Invalid request parameters
422 Unprocessable Entity — Invalid request parameters
Cause: One or more request parameters are invalid or incorrectly formatted.Check the following:
- Ensure that every item in the
messagesarray includes bothroleandcontent. - Verify that numeric parameters such as
temperatureandmax_tokensare provided as numbers, not strings. - Refer to the API Reference for the valid range and format of each parameter.
The model ID is invalid or not recognized
The model ID is invalid or not recognized
Cause: The value provided in the
model parameter does not match a valid AirCloud model ID.Resolution:- In the Console, click View Code for the selected model. The generated code sample contains the correct model ID, which you can copy directly.
Rate Limits and Service Errors
429 Too Many Requests — Rate limit exceeded
429 Too Many Requests — Rate limit exceeded
Cause: Your application has exceeded the allowed request rate.Resolution:
- Check the
Retry-Afterresponse header and retry after the specified delay. - Distribute requests over time or implement exponential backoff.
Model-specific RPM and TPM limits for Air API will be documented in a future update.
408 Request Timeout — Request timed out
408 Request Timeout — Request timed out
Cause: The model did not complete the request within the allowed timeout. This may occur with long prompts or large
max_tokens values.Resolution:- Reduce the
max_tokensvalue. - Verify that your client-side timeout is not set too low.
- Retry the request after a short delay.
Responses are slower than expected
Responses are slower than expected
Cause: Response latency may increase depending on model load, prompt length, or the configured
max_tokens value.Check the following:- Use only the
max_tokensvalue you actually need. - Test the same prompt in the Playground to compare response times.
- If latency remains high, consider using a smaller model.
Playground Issues
The Playground is not working
The Playground is not working
Try the following steps:
- Refresh your browser and try again.
- Verify that the correct Project and model are selected.
- Confirm that your Organization has sufficient credits.
- Try using an incognito window or a different browser.
The Playground is not available for Embedding models
The Playground is not available for Embedding models
Playground is not supported for Embedding models. This is expected behavior.To use an Embedding model, send requests through the API. See the API Usage Guide for code examples.
Model Issues
The model I need is not available
The model I need is not available
We continuously add support for new models. If the model you need is not available, you can request it through the Contact and Feedback page.
403 Forbidden — Access to the model is denied
403 Forbidden — Access to the model is denied
Cause: Your current account or Project does not have permission to access the requested model.
Details about the Air API model access policy will be documented in a future update.
Still Need Help?
If your issue is not resolved, please contact us through the Contact and Feedback page. To help us investigate the issue more quickly, include the following information whenever possible:- Error code
- Request payload (excluding secret keys)
- Time when the issue occurred
- Any relevant error messages or logs

