Skip to Content

Error Talking to Your AI Agent in Odoo? Learn to Set Up OpenAI and Google Gemini API Keys

Discover how to fix the message saying you need the provider's API and correctly configure your artificial intelligence agent in Odoo
May 23, 2026 by
Error Talking to Your AI Agent in Odoo? Learn to Set Up OpenAI and Google Gemini API Keys
Wilfredo Fernando Pastor Avila
| No comments yet

The problem: your AI agent goes silent

Mariana is an operations manager at a logistics company that implemented Odoo with AI modules to automate customer responses. One day, while testing her new virtual agent, it simply wouldn't respond. A message appeared on screen: "You need the provider's API". Frustrated, Mariana had no idea what it meant or how to fix it.

If something similar has happened to you, don't worry. It's a common error that can be fixed in minutes. The reason is that AI agents in Odoo use language models from external providers such as OpenAI or Google Gemini, and you need a private key (API Key) for them to work. Here's how to configure it.

Where access to providers is configured

In Odoo, go to the AI module and then to the Settings option. There you'll find the options to enable ChatGPT (OpenAI) or Google Gemini, or both. You must create an account with each provider and get your own API Keys. This means pay-per-use billing; it isn't like using the free versions of ChatGPT or Gemini.

Take Carlos, owner of a consulting firm that implements Odoo for his clients. He configured his AI agent to handle billing queries. When he enabled OpenAI in Settings and pasted his API Key, the agent started working instantly. The secret was having created the key on the OpenAI platform, not on the ChatGPT page.

Create an OpenAI API Key

Go to the link Odoo provides or directly to the OpenAI developer platform. Once there, sign in (you can use your Google account). In the left sidebar, select "API Keys". Click "Create new secret key", give it a descriptive name (for example, "Odoo AI agent"), select a project (or create a new one) and press "Create secret key". Copy the generated key (it's a string starting with "sk-") and paste it into the corresponding field in Odoo.

Create a Google Gemini API Key

Go to the Google AI Studio link or the Google Cloud console. If you're not signed in, do so. In the left sidebar, look for "Get API key" or "API Keys". Create a new key, give it a descriptive name and press "Create key". Copy the generated API Key and paste it into Odoo.

Maria, an entrepreneur who uses Odoo for her online store, only configured OpenAI because all her agents use GPT-4. But if you have agents that use models from both providers, you must configure both keys. In Odoo you can choose which model each agent uses, so if they all use OpenAI, you only need the OpenAI key.

Model costs

Both providers charge per million tokens. For example, GPT-4o costs $2.50 per million input tokens and $10 per million output tokens (approximately). Cheaper models like GPT-4.1 mini cost $0.40 per million input tokens. Google Gemini 2.5 Pro has similar pricing. The choice of model should depend on the quality of responses you need. Test different models and pick the one that works best for your case.

At Mariana's company, they first tried GPT-4.1 mini to save costs, but the answers weren't accurate enough to handle complaints. They switched to GPT-4o and customer satisfaction improved noticeably. So invest time in testing.

Security: your API Key is a secret

Never share your API Key with anyone. If someone else obtains it, they can consume your credits and you'll receive the bill. Don't store it in text files on your desktop, and don't send it by email or chat. Treat it as a critical password. If you suspect it has been compromised, revoke it immediately from the provider's platform and generate a new one.

Remember: Ganemo is your best ally for implementing these solutions in Odoo securely and efficiently. Our experts guide you through every step, from API configuration to optimizing AI agents for your business.

Related video

Error Talking to Your AI Agent in Odoo? Learn to Set Up OpenAI and Google Gemini API Keys
Wilfredo Fernando Pastor Avila May 23, 2026
Share this post
Tags
Archive
Sign in to leave a comment
Google Antigravity is dead: what to do when your favorite code editor changes radically
Discover how the recent Google Antigravity update changes AI session management and how to adapt without losing productivity