OpenAI API 403 forbidden
OpenAI API 403: Forbidden or Model Access Denied
TL;DR: OpenAI API 403 is an authorization failure. Authentication may be valid, but the requested model or action is not allowed for that account or project.
What this error means
OpenAI API 403 means the key is recognized but the account, project, model, region, or policy does not allow the requested operation.
permission your key or account
Is it code, key, rate limit, or server-side?
| Signal | Diagnosis |
|---|---|
| Provider | OpenAI |
| Error | 403 |
| Likely category | permission |
| Likely fault area | your key or account |
Immediate checklist
- Check whether the model name is available to the project tied to the key.
- Verify organization/project routing if your account has multiple projects.
- Look for policy, region, or safety restriction messages in the response body.
- Try the same key against /v1/models to separate key validity from model access.
cURL test command
curl https://api.openai.com/v1/models \ -H "Authorization: Bearer $OPENAI_API_KEY"
Run this from your server or terminal. llmping does not collect API keys and does not send this command for you.
Common fixes
- Use a model that appears in the model list returned for your key.
- Move the key to the correct project or update the project configured in your app.
- Do not retry a persistent 403 as if it were a transient outage.
- If policy text appears, adjust the input or route the request for manual review.