# Invalid api key on wordpress site

**URL:** <https://community.openai.com/t/invalid-api-key-on-wordpress-site/508078>\
**Category:** API\
**Tags:** chatgpt, api, chatgpt-plugin\
**Created:** [November 16, 2023, 6:53pm UTC](https://community.openai.com/t/invalid-api-key-on-wordpress-site/508078 "2023-11-16T18:53:47Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![hadi.hajivand1](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/hadi.hajivand1/32/251131_2.png) [@hadi.hajivand1](https://community.openai.com/u/hadi.hajivand1)\
**Post date:** [November 16, 2023, 6:53pm UTC](https://community.openai.com/t/invalid-api-key-on-wordpress-site/508078/1 "2023-11-16T18:53:47Z")

</div>

Hello to all  
I use chatgpt and dall-e on my website using a few wordpress plugins, and connecting my own api key. But today, unlike usual, I see the following errors; While no changes have been made to my account or site:

> OpenAI returned empty response for this request. Please try again

> The OpenAI key is invalid. Make sure you have entered the correct key.

I emphasize again that no changes have been made to the plugins or the server and my account is charged.

---

<div class="post-metadata">

**Author:** ![PaulBellow](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/paulbellow/32/597962_2.png) [@PaulBellow](https://community.openai.com/u/PaulBellow)\
**Post date:** [November 16, 2023, 6:57pm UTC](https://community.openai.com/t/invalid-api-key-on-wordpress-site/508078/2 "2023-11-16T18:57:38Z")

</div>

Welcome to the forum.

No emails from OpenAI? Can you access the Playground?

Can you try a new key and cancel the old one?

---

<div class="post-metadata">

**Author:** ![hadi.hajivand1](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/hadi.hajivand1/32/251131_2.png) [@hadi.hajivand1](https://community.openai.com/u/hadi.hajivand1)\
**Post date:** [November 16, 2023, 7:00pm UTC](https://community.openai.com/t/invalid-api-key-on-wordpress-site/508078/3 "2023-11-16T19:00:21Z")

</div>

![image](https://us1.discourse-cdn.com/openai1/original/3X/8/6/860888ea49d672b30b8ccb4d97de32e581deef5e.png)  
No emails from OpenAI…  
I have attached the image. Do I need to do something in this section?  
By the way, I changed the api key several times, but I see the same errors

---

<div class="post-metadata">

**Author:** ![PaulBellow](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/paulbellow/32/597962_2.png) [@PaulBellow](https://community.openai.com/u/PaulBellow)\
**Post date:** [November 16, 2023, 7:01pm UTC](https://community.openai.com/t/invalid-api-key-on-wordpress-site/508078/4 "2023-11-16T19:01:29Z")

</div>

If your account is good, and you’ve tried a new key, I would reach out to the WordPress Plugin support … there’s been changes recently, and maybe they haven’t kept up?

Link to the WP plugin?

---

<div class="post-metadata">

**Author:** ![hadi.hajivand1](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/hadi.hajivand1/32/251131_2.png) [@hadi.hajivand1](https://community.openai.com/u/hadi.hajivand1)\
**Post date:** [November 16, 2023, 7:07pm UTC](https://community.openai.com/t/invalid-api-key-on-wordpress-site/508078/5 "2023-11-16T19:07:16Z")

</div>

check this plugin name: ai-engine by: Jordy Meow

---

<div class="post-metadata">

**Author:** ![PaulBellow](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/paulbellow/32/597962_2.png) [@PaulBellow](https://community.openai.com/u/PaulBellow)\
**Post date:** [November 16, 2023, 7:11pm UTC](https://community.openai.com/t/invalid-api-key-on-wordpress-site/508078/6 "2023-11-16T19:11:05Z")

</div>

Here’s their support page…

> **[\[AI Engine: Chatbots, Generators, Assistants, GPT 4 and more!\] Support |...](https://wordpress.org/support/plugin/ai-engine/)**

Doesn’t appear to be anything reported yet, so it might be on your end?

You said you generated a new key then input that new key into the WP plugin configuration?

---

<div class="post-metadata">

**Author:** ![hadi.hajivand1](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/hadi.hajivand1/32/251131_2.png) [@hadi.hajivand1](https://community.openai.com/u/hadi.hajivand1)\
**Post date:** [November 16, 2023, 7:11pm UTC](https://community.openai.com/t/invalid-api-key-on-wordpress-site/508078/7 "2023-11-16T19:11:45Z")

</div>

Yes, this is another error:  
Got an unexpected response from OpenAI. Check your PHP Error Logs. (OpenAI)

---

<div class="post-metadata">

**Author:** ![PaulBellow](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/paulbellow/32/597962_2.png) [@PaulBellow](https://community.openai.com/u/PaulBellow)\
**Post date:** [November 16, 2023, 7:15pm UTC](https://community.openai.com/t/invalid-api-key-on-wordpress-site/508078/8 "2023-11-16T19:15:23Z")

</div>

If you know your API key is good, the only thing you can do is reach out the Plug-in developer for support. Good luck. Let us know how it goes.

---

<div class="post-metadata">

**Author:** ![hadi.hajivand1](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/hadi.hajivand1/32/251131_2.png) [@hadi.hajivand1](https://community.openai.com/u/hadi.hajivand1)\
**Post date:** [November 16, 2023, 7:20pm UTC](https://community.openai.com/t/invalid-api-key-on-wordpress-site/508078/9 "2023-11-16T19:20:49Z")

</div>

I don’t think it’s a problem with the plugin. Because two new versions of this plugin were released today and I updated the plugin as well. Also, this plugin is one of several plugins that I am using and other plugins have the same problem.

---

<div class="post-metadata">

**Author:** ![PaulBellow](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/paulbellow/32/597962_2.png) [@PaulBellow](https://community.openai.com/u/PaulBellow)\
**Post date:** [November 16, 2023, 7:23pm UTC](https://community.openai.com/t/invalid-api-key-on-wordpress-site/508078/10 "2023-11-16T19:23:56Z")

</div>

Sounds like it’s your account or API key then.

Are the php logs giving any more info?

> OpenAI returned empty response for this request. Please try again
> 
> ```
> The OpenAI key is invalid. Make sure you have entered the correct key.
> 
> ```

This is an error message from the plug-in not OpenAI, I believe…

---

<div class="post-metadata">

**Author:** ![hadi.hajivand1](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/hadi.hajivand1/32/251131_2.png) [@hadi.hajivand1](https://community.openai.com/u/hadi.hajivand1)\
**Post date:** [November 16, 2023, 7:26pm UTC](https://community.openai.com/t/invalid-api-key-on-wordpress-site/508078/11 "2023-11-16T19:26:53Z")

</div>

where to check the php logs?  
which folder in file manager?

---

<div class="post-metadata">

**Author:** ![hadi.hajivand1](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/hadi.hajivand1/32/251131_2.png) [@hadi.hajivand1](https://community.openai.com/u/hadi.hajivand1)\
**Post date:** [November 16, 2023, 7:28pm UTC](https://community.openai.com/t/invalid-api-key-on-wordpress-site/508078/12 "2023-11-16T19:28:27Z")

</div>

I have removed the payment method from my account, but my account is charged. Could this be the reason I’m getting the errors?

---

<div class="post-metadata">

**Author:** ![PaulBellow](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/paulbellow/32/597962_2.png) [@PaulBellow](https://community.openai.com/u/PaulBellow)\
**Post date:** [November 16, 2023, 7:29pm UTC](https://community.openai.com/t/invalid-api-key-on-wordpress-site/508078/13 "2023-11-16T19:29:25Z")

</div>

Likely… Why did you remove the payment method? It needs to be valid…
