To use AskAI, you need to provide your own API key from the AI provider of your choice. This key stays stored on your server and never passes through PrestaShop.
Here's how to get your key depending on the provider you choose.
OpenAI (ChatGPT)
- Go to platform.openai.com and sign in (or create an account).
- In the left-hand menu, click API keys (or go directly to platform.openai.com/api-keys).
- Click Create new secret key, give it a name, then confirm.
- Copy the generated key immediately: it won't be visible again afterward.
⚠️ A payment method must be set up on your OpenAI account for the key to work.
Official documentation:
Anthropic (Claude)
- Go to console.anthropic.com and sign in (or create an account).
- Go to Settings → API Keys, or directly to console.anthropic.com/settings/keys.
- Click Create Key, give it a name, and select the relevant workspace if you have more than one.
- Copy the generated key: it starts with
sk-ant-...and won't be shown again afterward.
⚠️ A payment method must be set up for the key to work.
Official documentation:
Google Gemini
- Go to Google AI Studio and sign in with your Google account.
- In the left-hand menu, click Get API key, or go directly to aistudio.google.com/app/apikey.
- Click Create API key, then choose to create the key in a new project (recommended if it's your first key).
- Copy the generated key (it starts with
AIza...).
⚠️ Make sure the key isn't marked as "unrestricted": Google now requires keys to be restricted to the Gemini API to remain valid.
Official documentation:
Mistral AI (Le Chat)
- Go to console.mistral.ai and create an account or sign in.
- In the left-hand menu, go to API Keys.
- Click Create new key, give it a name and an expiration date if needed.
- Copy the key immediately: it won't be shown again afterward.
⚠️ Keys work in free mode by default (limited usage); billing activation is required for higher volumes.
Official documentation:
Good to know
- Once retrieved, the key needs to be pasted into AskAI's configuration, in the module's configuration page.
- Keep your key somewhere safe: most providers only show it once, at creation time.