Short answer
Most AI plugin key errors come from the AI provider, not WordPress. A 401 means the key is wrong, revoked or from another project. A quota or billing error means the API account has no credit or hit a spend limit. Model-access errors mean the project can't use that model. Timeouts usually come from your server's limits.
Key facts
- OpenAI's error-code guide (checked December 2026) lists 'Incorrect API key provided' as a 401 caused by typos, extra spaces, deleted keys or keys from another organization or project.
- OpenAI says billing 429s (credit_balance_exhausted, project or organization spend limit exceeded) won't clear by retrying; you have to add credit or change the limit.
- Anthropic's API returns 402 billing_error for payment problems, and a 400 when an organization or workspace hits a spend limit you set; its usage-tier spend cap returns a 429 that keeps failing until access resumes.
- Google's Gemini troubleshooting page says a 403 for unavailable free tier isn't fixed by a new key in the same project; you need an active Cloud Billing account. Leaked keys are blocked.
- WordPress's HTTP API defaults to a 5-second timeout, adjustable with the http_request_timeout filter; AI plugins normally set their own longer limit.
- ChatGPT Plus or Claude subscriptions don't pay for API use; the API is billed separately.
You paste a key into an AI plugin, click test, and get 'Invalid API key', 'quota exceeded', or nothing at all. The same handful of causes sits behind almost every one of these, whichever plugin you use: AI Engine, the official WordPress AI plugin, AI Puffer in own-key mode, or the AI tools listed in our best free AI WordPress plugins guide.
We've seen the starting point ourselves: on our November 2026 test site, AI Engine marked both default models 'No API key yet', and the official WordPress AI plugin showed a red warning until a valid connector was set up. We didn't add keys, so the fixes below come from the providers' own error documentation and user reports.
The five errors you'll actually see
Plugins word errors differently, but most pass on the provider's status code somewhere in the message or the plugin's log. Match it here first:
| What you see | Usual code | What it means | Where to fix it |
|---|---|---|---|
| Invalid / incorrect API key | 401 | Key mistyped, revoked, expired or from another project | Provider's API keys page |
| Quota exceeded / credit balance / billing | 429 (OpenAI), 400, 402 or 429 (Anthropic), 403 (Gemini) | No prepaid credit, payment problem or a spend limit reached | Provider's billing and limits pages |
| Model not found / no access | 403 or 404 | Your key or project can't use the model the plugin asked for | Plugin's model setting, provider project settings |
| Rate limit reached | 429 | Too many requests too quickly | Wait, or slow the plugin down |
| Timeout, blank reply, overloaded | 504, 500, 503, 529, or none | Request took too long or provider is busy | Your host, the plugin's timeout, provider status page |

'Invalid API key': check the obvious things first
- Copy the key again from the provider's dashboard and paste it into the plugin with no space or line break at either end. OpenAI's guide lists extra spaces and typos among the causes of 'Incorrect API key provided'.
- Make sure it's the right kind of key for that field. A plugin with separate fields for OpenAI, Anthropic and Google rejects a key pasted into the wrong one.
- Check the key still exists. Keys deleted by a teammate, rotated or expired fail with a 401. Anthropic's error docs mention malformed, revoked and expired keys.
- For OpenAI, check the key belongs to the organization and project you think it does. A key from another project, or one restricted to certain endpoints, can fail even though it's valid. OpenAI lets keys be set to All, Restricted or Read Only permissions; Read Only can't generate anything.
- If your OpenAI organization uses an IP allowlist, add your web host's server IP. The request comes from the server, not your laptop, and OpenAI returns 'IP not authorized' otherwise.
- For Gemini, if the message says the key was reported as leaked, Google has blocked it. Create a new key in Google AI Studio and keep it out of public code.
If your plugin uses WordPress's Settings > Connectors screen, the key is stored once and shared across plugins, so one wrong key breaks every AI feature at once. Our explainer on WordPress AI connectors covers how that screen works.

Quota exceeded: billing, not the plugin
This is the most common error with a brand-new key, and the plugin can't fix it. API access is billed separately from ChatGPT Plus or a Claude subscription, so a new API account often has no credit at all. Each provider phrases it differently:
- OpenAI: a 429 with codes such as
credit_balance_exhaustedorproject_spend_limit_exceeded. OpenAI says retrying won't help; add credit or raise the limit. Our AI Engine quota fix walks through OpenAI's billing and limits screens step by step, and the same steps apply to any plugin. - Anthropic: a 402
billing_errorfor payment problems, a 400 when a spend limit you set is reached, or a 429 when your usage tier's monthly spend cap is hit. Anthropic says that last one has no retry-after header and keeps failing until access resumes. - Google Gemini: a 403 if the free tier isn't available to your project or a payment is past due; Google says a new key in the same project won't help, you need billing set up. A 429
RESOURCE_EXHAUSTEDmeans you've hit a rate or quota limit.
Clear any page cache after fixing billing. AI Engine's FAQ warns caching plugins can store error responses, which keeps the old error showing to visitors.
Valid key rejected: project and model access
If the key works in the provider's own playground but not in WordPress, the plugin is probably asking for a model your account can't use. Plugins ship with a default model, and it may be newer than your account is approved for, retired, or blocked in your project's settings.
First, change the plugin's model setting to a widely available model and test again. If that works, the problem is access to the original model. On OpenAI, a user on its community forum got a 'project does not have access to model' error because the project's settings only allowed certain models; adding the model to the project's allowed list fixed it. Gemini returns a 403 when the project needs verification or billing first.
Sometimes it really is the plugin. A one-star WordPress.org review of the official AI plugin described a valid paid Anthropic key being rejected with no clear error, and GitHub issues on that plugin record provider-specific bugs, such as Gemini showing errors despite a valid key. If a key works everywhere else and on a different model, report it to the plugin with the exact message.
Timeouts and blank responses
A spinner that never finishes, or an empty reply, usually means the request timed out before the AI answered. Long tasks like full articles take far longer than a chatbot reply.
- Your server's limits. WordPress's own HTTP requests default to a 5-second timeout. AI plugins normally set their own, longer one, but PHP's maximum execution time and your host's gateway timeout still apply. Testers on the official AI plugin's GitHub reported title generation timing out after 30 seconds on a WordPress 7.0 release candidate.
- Long generations. Anthropic recommends streaming for long requests, especially those over 10 minutes, and returns a
timeout_errorwhen a request runs out of time. If your plugin offers streaming or a shorter output length, try it. - Provider overload. A 500, 503 or Anthropic's 529
overloaded_erroris the provider's problem. Check its status page and retry later. - Security and caching layers. Meow Apps' docs note AI Engine talks to WordPress through the REST API, so a firewall blocking
/wp-json/can break the chatbot in ways that look like key problems.
When to ask plugin support
Go to the plugin's forum once you've confirmed the key and billing work outside WordPress, another model fails the same way, and the error isn't a provider code from the table above. Include the plugin and WordPress versions, the provider and model, the full error text (with the key removed) and whether it happens in the admin, on the front end, or both.
If you'd rather not manage provider billing at all, tools that run on the vendor's own credits avoid this whole class of errors. Do I need an OpenAI API key for WordPress AI? lists which ones, and AI Puffer can run on its own credits. For what a working key costs per month, see OpenAI API costs for WordPress plugins.
Frequently asked questions
Why does my API key work in ChatGPT but not in WordPress?
ChatGPT's app doesn't use API keys at all, and a ChatGPT Plus subscription doesn't fund API usage. The API is a separate account with separate billing. If your API account has no prepaid credit, every request from a WordPress plugin fails with a quota or billing error even though your ChatGPT subscription is active.
How long after adding credit does the quota error stop?
Usually as soon as the provider's billing updates, though cached error pages can keep showing it on your site. Clear your caching plugin and CDN, then test from the plugin's admin playground rather than a cached page. If a spend limit caused it, raising the limit should take effect right away.
Is it a WordPress problem or a provider problem?
Look for a status code in the message. 401, 402, 403 and 429 errors come from the provider and are fixed in your provider account. Errors with no code, a white screen, or problems only on the public site point to WordPress, your host, caching or security plugins.
Can I use one API key in several AI plugins?
Yes. A key works anywhere you paste it, and WordPress's Connectors screen is designed to share one key across plugins. The catch is that all of them then share one balance and one rate limit, so one busy chatbot can cause quota errors in your writing tools too.
Should I switch providers to stop the errors?
Only if the problem is a provider's model access or region. Every provider has its own billing, spend limits and rate limits, so switching from OpenAI to Claude or Gemini moves the same issues to a new account. It can help if your project can't use a model the plugin needs.
Sources
- developers.openai.com/api/docs/guides/error-codes
- help.openai.com/en/articles/8867743-assign-api-key-permissions
- help.openai.com/en/articles/8156019-is-api-usage-included-in-chatgpt-subscriptions
- community.openai.com/t/project-does-not-have-access-to-gpt-4o/745038
- platform.claude.com/docs/en/api/errors
- aistudio.google.com/docs/troubleshooting
- developer.wordpress.org/reference/classes/wp_http/request
- wordpress.org/plugins/ai-engine
- ai.thehiddendocs.com/common-issues
- wordpress.org/support/topic/so-many-issues-6
- github.com/WordPress/ai/issues/339
- github.com/WordPress/ai/issues/392