---
title: Generate SEO and social metadata with Mistral AI
url: "https://www.seopress.org/support/guides/generate-seo-and-social-metadata-with-mistral-ai/"
lang: en-US
updated: 2026-01-30
---

# Generate SEO and social metadata with Mistral AI

[SEOPress PRO](https://www.seopress.org/wordpress-seo-plugins/pro/) 9.5 is required.

## Register to Mistral

The first step is to create an account on [Mistral website](https://mistral.ai/).

We strongly invite you to register a credit card to avoid any errors from the **Settings**, **Billing** page of your Mistral AI account.

## Create your API key

From the [AI Studio console of Mistral](https://console.mistral.ai/home), click on **API Keys** (left panel).

[![Mistral AI Studio - main panel](https://www.seopress.org/wp-content/uploads/2026/01/mistral-ai-seopress-pro-integration-1.png)](https://www.seopress.org/wp-content/uploads/2026/01/mistral-ai-seopress-pro-integration-1.png)

*Mistral AI Studio – main panel*

Click **Create a new API key** button.

[![Your API keys - Mistral](https://www.seopress.org/wp-content/uploads/2026/01/mistral-ai-seopress-pro-integration-2.png)](https://www.seopress.org/wp-content/uploads/2026/01/mistral-ai-seopress-pro-integration-2.png)

*Your API keys – Mistral*

Enter a **name for your API key** and an **expiration date** (optional).

[![Modal to create a new Mistral AI API key](https://www.seopress.org/wp-content/uploads/2026/01/mistral-ai-seopress-pro-integration-3.png)](https://www.seopress.org/wp-content/uploads/2026/01/mistral-ai-seopress-pro-integration-3.png)

*Modal to create a new Mistral AI API key*

**Validate**.

[![Your new Mistral AI API key to copy](https://www.seopress.org/wp-content/uploads/2026/01/mistral-ai-seopress-pro-integration-4.png)](https://www.seopress.org/wp-content/uploads/2026/01/mistral-ai-seopress-pro-integration-4.png)

*Your new Mistral AI API key to copy*

**Copy** your **new Mistral AI API key**.

## What information is sent to Mistral AI?

To get better results and maximize our chance to have a relevant answer from the AI, we send:

- your **post content **(if not possible your post URL),
- your **post language**,
- your **target keywords** (and we ask to put at least one of them in the SEO metadata in return).

Note that we can’t fully control the provided answers by Mistral AI.

## Enable Mistral in SEOPress

Go to **SEO**, **PRO**, **AI** tab.

Select **Mistral AI** from AI provider option.

Paste the key to **Mistral API key** field.

**Save changes**.

[![AI settings - SEOPress PRO](https://www.seopress.org/wp-content/uploads/2026/01/mistral-ai-seopress-pro-integration-5.png)](https://www.seopress.org/wp-content/uploads/2026/01/mistral-ai-seopress-pro-integration-5.png)

*AI settings – SEOPress PRO*

### Add my Mistral AI key to wp-config.php

By adding this code below:

`define( 'SEOPRESS_MISTRAL_KEY', 'XXXXXXX' );`

You will store your Mistral API key in your **wp-config.php** file instead of your database. This is more efficient on a multisite network for example but also more secured.

## Generate SEO and social metadata with AI

Now you have linked your Mistral AI account with your WordPress site, you can use AI to:

- [generate SEO metadata](https://www.seopress.org/support/guides/generate-your-seo-metadata-with-openai/#generate-your-title-and-meta-description-with-ai)
- [generate alternative texts for your media](https://www.seopress.org/support/guides/generate-alternative-texts-for-your-images-with-openai-and-seopress-pro/)

## Common errors

Quickly test your Mistral API key by going to **SEO**, **PRO**, **AI** tab.

Then from **Mistral** section, click **Test API key** button.

Wait a few seconds to get a positive or negative answer from Mistral server.

From the **AI Logs** section (**SEO**, **PRO**, **AI** tab), you will see the messages returned by the AI used.

### 401 – Invalid API Key

- **What it means:** Your Mistral API key isn’t working
- **How to fix:** Check that you’ve entered the correct API key in SEOPress settings

### 403 – Permission Denied

- **What it means:** Your API key doesn’t have access to this feature
- **How to fix:** Verify your Mistral plan includes the features or models you’re trying to use

### 429 – Too Many Requests

- **What it means:** You’ve made too many requests too quickly
- **How to fix:** Wait a minute and try again. Consider upgrading your Mistral plan if this happens often

### 500 – Server Error

- **What it means:** Something went wrong on Mistral’s end
- **How to fix:** Wait a few moments and try again

### 503 – Service Unavailable

- **What it means:** Mistral’s servers are temporarily unavailable
- **How to fix:** Wait 30-60 seconds and retry your request

### 400 – Bad Request

- **What it means:** There’s something wrong with your request format
- **How to fix:** This is usually a plugin issue. Contact SEOPress support if you see this error
