Title: Incorrect API Key Error when Using Chatbot: use Azure API
Last modified: April 15, 2023

---

# Incorrect API Key Error when Using Chatbot: use Azure API

 *  Resolved [brian0616](https://wordpress.org/support/users/brian0616/)
 * (@brian0616)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/incorrect-api-key-error-when-using-chatbot-use-azure-api/)
 * After installing the package and configuring the Azure key and other information,
   I successfully tested the conversation in the playground of the WordPress backend.
   However, when I input messages using the chatbot, an error occurs: “Error while
   calling OpenAI: Incorrect API key provided.” I am not sure what the reason is,
   but could it be because the chatbot has not correctly switched to using the Azure
   API? I have attached a screenshot. Thank you again for this fantastic and easy-
   to-use package.
 * > [View post on imgur.com](https://imgur.com/juzqaA4)
 * > [View post on imgur.com](https://imgur.com/rZ2KHBC)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fincorrect-api-key-error-when-using-chatbot-use-azure-api%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/incorrect-api-key-error-when-using-chatbot-use-azure-api/#post-16677424)
 * Hi [@brian0616](https://wordpress.org/support/users/brian0616/),
 * It’s only using Azure if the model was found in your Azure config (in the Settings).
   So you need to properly link your Deployments to the Models, and that will work
   🙂 If the model is not found, my plugin switches to OpenAI.

Viewing 1 replies (of 1 total)

The topic ‘Incorrect API Key Error when Using Chatbot: use Azure API’ is closed 
to new replies.

 * ![](https://ps.w.org/ai-engine/assets/icon-256x256.png?rev=3431928)
 * [AI Engine - The Chatbot, AI Framework & MCP for WordPress](https://wordpress.org/plugins/ai-engine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ai-engine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ai-engine/)
 * [Active Topics](https://wordpress.org/support/plugin/ai-engine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ai-engine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ai-engine/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/incorrect-api-key-error-when-using-chatbot-use-azure-api/#post-16677424)
 * Status: resolved