Locul / Setup guides / Mistral AI
Setup guide: in your country

Mistral API key: get one and keep prompts on the EU endpoint

Mistral AI is the French model maker with its own API. Here is how to get a key, keep requests in the EU, stop training on your data and connect it to Locul.

Quick answer

In Mistral's console, open your profile or the Admin panel, go to API Keys and press Create new key. Name it, pick the workspace and expiry, and copy the key, which is shown once. Use the EU base URL https://api.eu.mistral.ai/v1 and the model mistral-medium-3-5. On the free plan, switch off training in admin.mistral.ai > Privacy. In Locul, open Settings > Model > Open models, pick Mistral, paste the key and press Test.

Prompts stay in the EUUpdated By Junaid Khalid8 min read
YOUR OFFICE EUROPEAN UNION HTTPS + YOUR KEY EU ONLY LoculDESKTOP APP ON YOUR MAC Mistral EU endpointAPI.EU.MISTRAL.AI/V1 Mistral EU inferenceEU DATA RESIDENCY YOUR OFFICE EUROPEAN UNION HTTPS + YOUR KEY EU ONLY LoculDESKTOP APP ON YOUR MAC Mistral EU endpointAPI.EU.MISTRAL.AI/V1 Mistral EU inferenceEU DATA RESIDENCY
With the EU endpoint, Mistral processes your requests in the EU. Use api.eu.mistral.ai, not the global address.

Who is the Mistral API a good fit for?

Mistral suits firms that want a French model maker's own models, served from the EU, under a contract with that maker.

Mistral AI is based in Paris and trains its own models, from Mistral Small up to Mistral Large. Its API also serves a few third-party open models such as Z.ai's GLM 5.3. Mistral has a global endpoint and two regional ones. For client work, use the EU one, api.eu.mistral.ai, which Locul does for you.

"Process requests in the EU or, for supported models, US for data residency"

Mistral AI, Inference

"Data sent through our API isn't used for model training, and zero data retention is available on request."

Mistral AI, Inference

Check your plan. Mistral's help centre says requests on the free Experiment plan may be used to improve its models, while paid Scale plans are not. On the free plan, open admin.mistral.ai > Privacy and switch off Anonymous improvement data for the API before any client file goes in. The API and Vibe have separate switches.

The six in-country providers in Locul, from their own docs. Prices change, so each provider's pricing page is linked from its guide.
ProviderCountryWhere prompts runPrompts kept?Used for training?Pick in Locul
ScalewayFranceParis (fr-par)Not kept by defaultNoGLM-5.3
Mistral AI (this guide)FranceEU endpoint, api.eu.mistral.aiZero retention on requestFree plan may; opt out or use a paid planMistral Medium 3.5
OVHcloudFranceGravelinesNot storedNot stated; data not stored or sharedQwen3.5 397B
IONOSGermanyBerlinNever loggedNoQwen3.5 397B
InfomaniakSwitzerlandSwiss data centresNot recordedNoQwen3.5 397B
OpperSwedenStockholm gateway, EU model routesUsage metadata onlyNoDeepSeek V4 Pro (TensorX, EU)

How do I get a Mistral API key?

Sign in to the Mistral console, open API Keys, press Create new key and copy it straight away.

  1. Sign in and choose a plan

    Go to console.mistral.ai. The free Experiment plan needs a phone number but no card; a paid Scale plan needs a payment method.

  2. Open API Keys

    From your profile, choose API Keys. Admins can also use the Admin panel > API > API Keys.

  3. Create the key

    Press Create new key. Fill in Key name (for example "Locul, Hugo's Mac"), pick the Workspace, an Expiration date, and leave the connector access scope as it is.

  4. Copy it once

    Mistral shows the full key only once. Paste it into Locul or your password manager before you close the window.

  5. Turn off training (free plan)

    In admin.mistral.ai, open Privacy in the left menu and switch off Anonymous improvement data for the API. For zero data retention, ask Mistral through the console or sales.

"The full key is shown only once."

Mistral docs, API keys

What is the Mistral EU endpoint URL?

The EU base URL is https://api.eu.mistral.ai/v1; the global api.mistral.ai does not promise EU processing.

Test your key from a terminal before you open Locul:

bash
# paste your key into the variable first, never into a shared file
$ export MISTRAL_API_KEY="paste-your-key-here"
$ curl https://api.eu.mistral.ai/v1/chat/completions \
    -H "Authorization: Bearer $MISTRAL_API_KEY" \
    -H 'Content-Type: application/json' \
    -d '{"model":"mistral-medium-3-5","messages":[{"role":"user","content":"Reply with one word: ready"}]}'

A working key returns JSON with a choices list:

json, shortened
{"object":"chat.completion","model":"mistral-medium-3-5",
 "choices":[{"index":0,"message":{"role":"assistant","content":"Ready"},"finish_reason":"stop"}],
 "usage":{...}}

Which Mistral model should I pick in Locul?

Pick Mistral Medium 3.5: Mistral built it for agent work and coding, which is what Locul's bots do with files and tools.

Mistral models in Locul, all served on the EU endpoint
Model IDMade byUse it for
mistral-medium-3-5Mistral AIRecommended. Everyday client work, bots with tools
mistral-large-4Mistral AIMistral's newest large open-weight model; still marked preview in Locul
zai-glm-5-3Z.ai, served by MistralVery long inputs, with a 1M-token context window

"Our frontier-class multimodal model optimized for agentic and coding use cases."

Mistral docs on Medium 3.5, Models

How do I add Mistral to Locul?

Open Settings > Model > Open models, pick Mistral AI under In your region, paste the key and press Test.

  1. Open Settings, then Model

    In the Locul desktop app, open Settings and choose Model.

  2. Choose Open models

    Pick Open models (marked Recommended), then find Mistral AI under In your country. Each row shows where the provider runs and whether it trains on your data.

  3. Pick the model

    Under Model, choose Mistral Medium 3.5. Locul tags it Recommended.

  4. Paste the key

    Under Access key, paste the key into the field and press Save and test. The Get a key link opens the right page at Mistral AI if you have not made one yet.

  5. Run the connection check

    Under Connection check, press Test. Ready means chat and tools both work. Ready with limits means the model can chat but could not use tools in the check, so pick another model for bots that read files.

Where the key lives. Locul saves it in your Mac's Keychain. It never shows the key again and sends it nowhere except Mistral AI.

Locul marks Mistral "may train on data" in the provider list, because that is true on the free plan. Once you have switched training off or moved to a paid plan, the warning no longer applies to your account.

Why does my Mistral API key not work?

Usually the key has expired, belongs to another workspace, or the free plan's limits were hit.

The message Locul shows, what the provider sent back, and the fix
CodeLocul saysWhat to do
401"Mistral AI did not accept your access key."Check the key has not passed its expiry date and was not revoked. Make a new one under API Keys > Create new key.
404"Mistral AI does not offer mistral-medium-3-5 for your account."The key's workspace may not have that model. Pick another model in Locul, or check the model list in the console.
402"Mistral AI says your account has no credit left."Add a payment method in the Admin panel under Billing, or move from the free plan to a paid plan.
429"Mistral AI is asking us to slow down."The free plan has low rate limits. Wait a minute, or move to a paid plan for higher limits.
No answer"Could not reach Mistral AI."Your network blocks api.eu.mistral.ai. Ask IT to allow HTTPS to that address.
Format"That does not look like a whole access key."The key is one long line with no spaces. Copy it again in one go, without a line break at the end.

What does a real request on Mistral look like?

A messy, everyday job with client names in it, the kind of work this setup is for.

Here is a request a chartered accountant in Paris might send to a Locul bot running on Mistral:

From Hugo, expert-comptable, ParisPrompt
Petite urgence: Mme Benali's SCI, the FEC export for 2025 doesn't match the grand livre, gap of 1 240,18 EUR on 512000. I'm 90% sure it's the two Qonto transfers in December that got booked twice (once by the bank feed, once by Inès by hand). Can you look at the export I attached and list every line on 512 between 15/12 and 31/12 with the same amount +/- 2 days? Don't fix anything, just list. And write me 3 lines in French I can send Mme Benali without making Inès look bad, she's new.

The client's ledger and the colleague's name stay on Mistral's EU endpoint. Locul keeps the file in its own memory on the Mac.

How fast and how good is Mistral in Locul?

We are timing real office tasks on Mistral with the recommended model, and the results will be published here.

Results coming

Response times, tool use and answer quality on real office tasks, measured on Mistral. Coming soon.

What other in-country providers work with Locul?

Five more EU and Swiss providers, each with its own guide.

Frequently asked questions

How do I get a free Mistral API key?

Sign up at console.mistral.ai and choose the free Experiment plan, which needs a phone number but no card. Then open API Keys and press Create new key. On the free plan, switch off training in admin.mistral.ai under Privacy before using client data.

Is the Mistral API free?

There is a free plan with low rate limits for trying it. Paid use is charged per token; see Mistral's pricing page for current rates.

What is the newest Mistral model?

Mistral Large 4 is Mistral's newest large open-weight model, and Mistral Medium 3.5 is its model built for agents and coding. Locul recommends Medium 3.5 for daily work.

Does Mistral train on my API data?

Not on paid plans. On the free Experiment plan, requests may be used to improve Mistral's models unless you switch it off in admin.mistral.ai under Privacy.

What is the difference between api.mistral.ai and api.eu.mistral.ai?

api.mistral.ai is the global endpoint. api.eu.mistral.ai processes requests in the EU for data residency. Locul uses the EU endpoint.

Sources

Every command and quote on this page comes from these primary sources, checked on 24 October 2026.

  1. Mistral AI: Inference and regional endpoints
  2. Mistral docs: API keys
  3. Mistral docs: Activate and generate an API key
  4. Mistral docs: Models
  5. Mistral help: Opt out of training
  6. Mistral AI: Data processing addendum
  7. Mistral AI: Pricing
  8. CNIL: French data protection authority
Junaid Khalid
LOCAL-FIRST AI SPECIALIST

Junaid builds Locul and sets up private AI for small regulated firms. He tests every command on this page on his own machines before it ships.

Other setup paths

In-country Locul

Run your bots on Mistral, from the EU

Download Locul, paste your Mistral key and pick the EU-hosted model. Or email us and we set it up with you.