Platform
Chatbot Builder Bulk Messaging Team Inbox Mini CRM API & Webhooks AI Integration WhatsApp Flows
Industries
E-commerce & D2C Real Estate Education Healthcare Finance & BFSI Logistics Hospitality Retail
Integrations 📚 Learn 📝 Blog 🗂 Codex Pricing Start Free Trial →
Connect  ›  Connect Mistral to WhatsApp
AI connection guide

Connect Mistral AI to WhatsApp

Mistral uses almost exactly the same API shape as OpenAI, which makes it one of the quickest AI providers to connect. The differences are the base URL and the model names. Everything else maps directly onto what you already know.

 Published 21 June 2026  7 min read  Live-researched  Bring your own key

Mistral is a French AI company whose models are available through their La Plateforme API. The request format follows the OpenAI standard closely: same Bearer auth, same messages array, same response path. If you have already connected OpenAI, connecting Mistral is essentially changing two lines.

New to the External API Request step? Read the foundation guide first.

Step 1: Get your Mistral API key

1

Sign in to La Plateforme

Go to console.mistral.ai and create or log into your account.
2

Create an API key

Under API Keys, create a new key and copy it. Unlike OpenAI, Mistral keys do not have a visible prefix format, so label yours clearly.
3

Add billing

Under Billing, add a payment method. Mistral has a free trial tier, but you need billing set up for sustained use.

 Official source

Current model list and pricing: docs.mistral.ai/getting-started/models. The -latest aliases simplify things, but the page also lists pinned versions if you need stable behaviour across updates.

Step 2: Fill in the External API Request step

External API Request
Method
POST
Request URL
https://api.mistral.ai/v1/chat/completions
Auth Type
Bearer token
Header Parameters
Authorization
Bearer YOUR_MISTRAL_KEY
Content-Type
application/json
Body Type
JSON (raw)
Response Type
Default Response
SaveRun and Save

Request URL

Request URL
https://api.mistral.ai/v1/chat/completions

Headers

HeaderValue
AuthorizationBearer YOUR_KEY
Content-Typeapplication/json

Same pattern as OpenAI. No extra headers needed.

Body

JSON body
{
  "model": "mistral-small-latest",
  "messages": [
    {
      "role": "system",
      "content": "You are a helpful support assistant for {{business_name}}. Answer briefly."
    },
    {
      "role": "user",
      "content": "{{customer_message}}"
    }
  ]
}

Unlike Claude, max_tokens is optional here. Unlike OpenAI's gpt-4o, the model you use affects cost significantly. mistral-small-latest handles most WhatsApp chatbot tasks at a fraction of the cost of larger models.

Step 3: Map the reply

The response path is identical to OpenAI's.

Response path
{
  "choices": [
    {
      "message": {
        "role": "assistant",
        "content": "...Mistral's reply is here..."
      },
      "finish_reason": "stop"
    }
  ]
}

Map choices[0].message.content into your next WhatsApp message. If you previously connected OpenAI, the mapping is exactly the same; only the provider changed.

Troubleshooting

SymptomLikely causeFix
401 UnauthorizedWrong or missing API keyConfirm the full key is in the Authorization header as Bearer YOUR_KEY
422 UnprocessableInvalid model nameUse mistral-small-latest or check docs.mistral.ai for current model IDs
400 Bad RequestMalformed JSON bodyValidate the body; check messages is an array with at least one user message
Empty replymodel field missingmodel is required in the body for Mistral

Mistral returns an error object in the response body with a message field naming the problem.

Common questions

Where do I get a Mistral API key?
+
Sign in or create an account at console.mistral.ai (called La Plateforme). Under API Keys, create a new key. You will need to add billing details before the key works beyond any trial credit. Keys do not have a visible prefix the way OpenAI or Anthropic keys do.
Which Mistral model should I use?
+
For WhatsApp chatbot replies, mistral-small-latest is the best starting point: fast, inexpensive, and capable for conversational use. Use mistral-large-latest for more complex reasoning. The -latest aliases always point to the current recommended version, so you do not need to pin a dated model ID for everyday use.
Is Mistral's API format the same as OpenAI's?
+
Very close. Mistral uses the same messages array, the same Authorization: Bearer auth, and the same choices[0].message.content response path as OpenAI. The only differences are the base URL (api.mistral.ai instead of api.openai.com) and the model names. This makes Mistral one of the easiest alternatives to switch to from OpenAI.
Is Mistral GDPR-friendly for Indian businesses handling European customers?
+
Mistral's API runs on infrastructure in Europe, which can help with GDPR obligations if you are handling data from EU-based customers. For Indian customers and Indian regulations, the data location is less critical than your own consent and data-handling practices under DPDP.
Does the reply cost anything on WA.Expert?
+
WA.Expert does not mark up Mistral's charges. You pay Mistral directly for the tokens used. The WhatsApp reply is free if sent inside the active 24-hour service window.
Can I use Mistral for something other than open-ended questions?
+
Yes. Mistral supports function calling (tool use), so you can build structured interactions where the model decides to call an action rather than just generate text. For most WhatsApp chatbot uses though, the straightforward completions endpoint covered here is enough.
Related

Keep building

Connect OpenAI

Same auth pattern; compare costs for your volume.

Read guide →

Connect Claude

Different auth: x-api-key and a version header.

Read guide →

Connect OpenRouter

One key, 200+ models including Mistral.

Read guide →

Connect hub

All connection guides.

Browse all →

The External API Request step

The foundation guide.

Read guide →

WhatsApp API glossary

Bearer, endpoint, tokens, defined.

Open glossary →

Connect Mistral to WhatsApp in minutes.

Free trial, no credit card required. And if you ever get stuck, we are the only platform in India that answers you live on WhatsApp.

Start Free →Book Demo
1