ERR_AI_PERMISSION_DENIED β AI Permission Denied
HTTP Status: 502 Retryable: No Automatic retry: None. Permission errors are permanent until the key/account configuration changes.
What the User Sees
AI service access denied. The API key may not have the required permissions. (ERR_AI_PERMISSION_DENIED)
What Causes This Error
The API key is valid (authentication succeeded) but the key does not have permission to use the requested model or feature. This is distinct from ERR_AI_AUTH_INVALID where the key itself is rejected.
For Anthropic, this means the API key does not have access to the specific model being requested (e.g., Claude Sonnet 4). This can happen when a new model is released and access is gated behind a specific tier or approval process, or when the organizationβs access to a model is revoked.
For Gemini, the error typically means the Generative AI API is not enabled in the associated Google Cloud project, or the projectβs billing account has been suspended.
For OpenAI, this can occur when the organizationβs billing status changes or when a model is deprecated and removed from the keyβs allowed models.
Resolution Steps
For Users
- This error indicates a server configuration issue, not a problem with your document or account.
- Try the βbudgetβ quality tier, which may use a different AI provider that is not affected.
- If the error persists, contact support.
For Administrators
- For Anthropic: Check key permissions and model access at https://console.anthropic.com. Verify the organization has access to the model specified in the converter configuration (e.g.,
claude-sonnet-4-6). - For Gemini: Verify the Generative AI API is enabled in the Google Cloud Console. Check the projectβs billing status.
- For OpenAI: Check the organizationβs billing status and verify model access at https://platform.openai.com.
- If a model was recently deprecated or renamed, update the model identifier in the converter configuration and redeploy.
- After fixing, run a test conversion to confirm the issue is resolved.
Related Errors
- ERR_AI_AUTH_INVALID β Key itself is invalid or expired (authentication failure)