Setting up Mistral Guardrails
Mistral Guardrails
Use Portkey to enforce structured inputs, safe outputs, and usage policies across all Mistral requests. Configure verdict actions like async checks, request denial, and feedback logging, according to your enforcement needs.
Mistral Guardrails
Mistral offers high-performance open-weight models like Mistral 7B, Mixtral, and more, designed for speed, efficiency, and transparency. But deploying them in production environments still demands structured control. With Portkey, you can apply guardrails to every Mistral request, ensuring safe, compliant, and predictable outputs—without modifying your app logic.
Mistral models are widely used for tasks like summarization, RAG, chat, and embedded reasoning, especially where cost and openness matter. Portkey supports all major Mistral deployments, whether hosted or local, enabling input/output guardrails, usage monitoring, and intelligent routing with minimal setup.
With Portkey, you can:
- Protect your AI stack from security threats with built-in guardrails
- Route requests with precision and zero latency based on guardrail checks
- View guardrails verdicts, latency, and pass/fail status for every check in real time.
- Enforce org-wide AI safety policies across all your teams, workspaces and models.
- Integrate existing guardrail infrastructure through simple webhook calls
- Secure vector embedding requests
Portkey supports all Mistral models out of the box and can be deployed in hours, not weeks, making it the easiest way to bring enterprise-grade control to your AI stack.
Guardrail checks you can apply to Mistral
Portkey offers both deterministic and LLM-powered guardrails that work seamlessly with Mistral's APIs. You can apply these checks to inputs, outputs, or both.
Input guardrails
Regex Match
Basic
Enforce patterns on input prompts
Sentence / Word / Character Count
Basic
Control verbosity
Lowercase Detection
Basic
Control verbosity
Ends With
Basic
Validate specific prompt endings
Webhook
Basic
Enforce custom business logic
JWT Token Validator
Basic
Verify token authenticity
Model Whitelist
Basic
Allow only approved models per route
Moderate Content
Pro
Block unsafe or harmful prompts
Check Language
Pro
Enforce language constraints
Detect PII
Pro
Prevent sensitive info in prompts
Detect Gibberish
Pro
Block incoherent or low-quality input
Output guardrails
Regex / Sentence / Word / Character Count
Basic
Need content here
JSON Schema / JSON Keys
Basic
Ensure required words or phrases
Contains
Basic
Ensure required words or phrases
Valid URLs
Basic
Validate links in responses
Contains Code
Basic
Detect code in specific formats
Lowercase Detection / Ends With
Basic
Need content here
Webhook
Basic
Post-process or validate output
Detect PII / Detect Gibberish
Basic
Need content here
Frequently Asked Questions
Do guardrails add latency to requests?
Can I block a request if a guardrail fails?
What happens if I don’t want to block, just observe?
Are OpenAI Guardrails only for inputs?
What’s the difference between basic and pro guardrails?
Safeguard your Mistral requests now.
Whether you're running production workloads, or scaling across teams, Portkey’s guardrails give you control without compromise.
Portkey, Inc
2261 Market Street #5205,
San Francisco, CA