Skip to content

Mistral AI integration

Mask personal data before it reaches Mistral AI

Send Mistral API requests through Maskflare to mask personal data, secrets, and customer records in chat, embeddings, and agent calls.
What the gateway inspects
  • Every text field in the request body: user and system messages, tool and function-call arguments, and tool results, across chat completions and any other Mistral endpoint
  • Embeddings inputs, masked deterministically
  • Streaming responses
  • Base64, hex, and percent-encoded text inside the request is decoded and checked too

Teams often choose Mistral for European data handling, but a European model provider is still a third party receiving whatever is in the prompt. Under GDPR, sending less personal data is better than sending it to a better processor.

Maskflare masks it before it leaves. Requests to the Mistral API go through your gateway, sensitive values become tokens, and with response restoration on, the answer comes back with the real values.

Set up Mistral AI with Maskflare

Requests go to /v1/mistral on your Maskflare gateway instead of the provider.

HTTP: Mistral chat completions through Maskflare
curl https://YOUR_GATEWAY_HOST/v1/mistral/chat/completions \
  -H "Authorization: Bearer mf_live_..." \
  -H "Content-Type: application/json" \
  -d '{"model": "mistral-large-latest",
       "messages": [{"role": "user", "content": "Summarize the complaint from [email protected]"}]}'

What gets masked

  • Every text field in the request body: user and system messages, tool and function-call arguments, and tool results, across chat completions and any other Mistral endpoint
  • Embeddings inputs, masked deterministically
  • Streaming responses
  • Base64, hex, and percent-encoded text inside the request is decoded and checked too

Good to know

  • Paths after /v1/mistral map to the same paths after https://api.mistral.ai/v1.
  • A rule set to block stops the request before it reaches the provider and returns HTTP 403 with the matching rule keys, never the values.
  • Store the provider key once in the Maskflare console, or keep sending it per request in pass-through mode.
  • No code change option: the Maskflare forward proxy inspects traffic to api.mistral.ai with the same rules.

Frequently asked questions

Why mask data if Mistral is a European provider?

Data minimisation still applies. Masking means personal data isn't processed by the model provider at all, which simplifies your records of processing and your data protection impact assessment.

Does it work with Mistral embeddings?

Yes. Embeddings inputs are masked deterministically, so equal values embed identically without being sent in the clear.

How does the request authenticate?

Send a Maskflare key as the Bearer token. Your Mistral key is stored in the console, or sent separately in pass-through mode.

Other ai providers integrations

All integrations

See it on your own data

Try Maskflare free.
Bring your hardest prompts.

28-day free trial or 10,000 requests, whichever comes first. Point one app at the gateway or enroll a few laptops, and watch what gets masked. Or talk to us first.

  • SOC 2 Type II: In progress
  • ISO 27001: In progress
  • EU hosting by default · on-premises available
  • Prompts and files never stored
  • Never used to train AI models
  • GDPR · nDSG · DPA available
  • Trust center