> ## Documentation Index
> Fetch the complete documentation index at: https://portkey-docs-migration-03-llm-providers.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List of Guardrail Checks

Each Guardrail Check has a specific purpose, it's own parameters, supported hooks, and sources.

## Partner Guardrails

<CardGroup cols={3}>
  <Card title="Acuvity" href="/integrations/guardrails/acuvity" img="https://mintcdn.com/portkey-docs-migration-03-llm-providers/T3vl5DOhXbo2ED95/images/product/Guardrails/Acuvity.jpg?fit=max&auto=format&n=T3vl5DOhXbo2ED95&q=85&s=a4bc61014368d214ad16582a2be4f403" width="798" height="549" data-path="images/product/Guardrails/Acuvity.jpg">
    * Scan prompts and responses for security threats \* Detect PII, toxicity,
      and prompt injections \* Real-time content analysis and filtering
  </Card>

  <Card title="Aporia" href="/integrations/guardrails/aporia" img="https://mintcdn.com/portkey-docs-migration-03-llm-providers/T3vl5DOhXbo2ED95/images/product/Guardrails/Aporia.jpg?fit=max&auto=format&n=T3vl5DOhXbo2ED95&q=85&s=e84354cfdde84df6c895bc8d743c9695" width="798" height="549" data-path="images/product/Guardrails/Aporia.jpg">
    * Validate custom Aporia policies via project ID \* Define policies on your
      Aporia dashboard \* Seamless integration with Portkey checks
  </Card>

  <Card title="AWS Bedrock" href="/integrations/guardrails/bedrock-guardrails" img="https://mintcdn.com/portkey-docs-migration-03-llm-providers/T3vl5DOhXbo2ED95/images/product/Guardrails/Bedrock.jpg?fit=max&auto=format&n=T3vl5DOhXbo2ED95&q=85&s=d3f5edbbf94a4e3abdbde479f2907fa9" width="798" height="549" data-path="images/product/Guardrails/Bedrock.jpg">
    * Analyze and redact PII to prevent manipulation \* Integrate AWS Guardrails
      directly in Portkey \* Advanced security policy enforcement
  </Card>

  <Card title="Azure" href="/integrations/guardrails/azure-guardrails" img="https://mintcdn.com/portkey-docs-migration-03-llm-providers/T3vl5DOhXbo2ED95/images/product/Guardrails/Azure.jpg?fit=max&auto=format&n=T3vl5DOhXbo2ED95&q=85&s=d36f842b5fdeffd744b186d006d3d4ce" alt="Azure OpenAI" width="798" height="549" data-path="images/product/Guardrails/Azure.jpg">
    * Detect and redact sensitive PII data \* Apply Azure's comprehensive content
      safety checks \* Enterprise-grade security compliance
  </Card>

  <Card title="Javelin" href="/integrations/guardrails/javelin" img="https://mintcdn.com/portkey-docs-migration-03-llm-providers/bNMabv2twtA1Fe6u/images/product/Guardrails/Javelin.png?fit=max&auto=format&n=bNMabv2twtA1Fe6u&q=85&s=a4678b350993742687d8c452bc13d2ec" width="798" height="549" data-path="images/product/Guardrails/Javelin.png">
    * Platform to secure your entire AI journey, with visibility at every step,
      protection against emerging AI threats across GenAI, Agents & MCPs, and the
      confidence to innovate at scale
  </Card>

  <Card title="Lasso Security" href="/integrations/guardrails/lasso" img="https://mintcdn.com/portkey-docs-migration-03-llm-providers/bNMabv2twtA1Fe6u/images/product/Guardrails/Lasso.jpg?fit=max&auto=format&n=bNMabv2twtA1Fe6u&q=85&s=d171a2f3ad0f4db0b711c085965828fb" width="798" height="549" data-path="images/product/Guardrails/Lasso.jpg">
    * Analyze content for security risks and jailbreaks \* Enforce custom policy
      violations detection \* AI-powered threat detection and prevention
  </Card>

  <Card title="Mistral" href="/integrations/guardrails/mistral" img="https://mintcdn.com/portkey-docs-migration-03-llm-providers/bNMabv2twtA1Fe6u/images/product/Guardrails/Mistral-AI.jpg?fit=max&auto=format&n=bNMabv2twtA1Fe6u&q=85&s=82b862ea605fbe62d02b13f2c6bb0d28" width="798" height="549" data-path="images/product/Guardrails/Mistral-AI.jpg">
    * Detect and filter harmful content automatically \* Multi-dimensional
      content safety analysis \* Real-time moderation capabilities
  </Card>

  <Card title="Pangea" href="/integrations/guardrails/pangea" img="https://mintcdn.com/portkey-docs-migration-03-llm-providers/bNMabv2twtA1Fe6u/images/product/Guardrails/Pangea.jpg?fit=max&auto=format&n=bNMabv2twtA1Fe6u&q=85&s=c761f760e40b41027934b6da90a4bce1" width="798" height="549" data-path="images/product/Guardrails/Pangea.jpg">
    * Guard LLM inputs and outputs with Text Guard \* Detect malicious content
      and data transfers \* Prevent model manipulation attempts
  </Card>

  <Card title="Palo Alto Networks Prisma AIRS" href="/integrations/guardrails/palo-alto-panw-prisma" img="https://mintcdn.com/portkey-docs-migration-03-llm-providers/bNMabv2twtA1Fe6u/images/product/Guardrails/prisma.png?fit=max&auto=format&n=bNMabv2twtA1Fe6u&q=85&s=521df8930c346bc7bd35dc1ed404697b" alt="PRISMA" width="636" height="588" data-path="images/product/Guardrails/prisma.png">
    * Real-time threat detection across all OSI layers (1-7) \* Block prompt
      injections, data leakage, and model DoS attacks
  </Card>

  <Card title="Patronus" href="/integrations/guardrails/patronus-ai" img="https://mintcdn.com/portkey-docs-migration-03-llm-providers/bNMabv2twtA1Fe6u/images/product/Guardrails/Patronus.jpg?fit=max&auto=format&n=bNMabv2twtA1Fe6u&q=85&s=8e7d070780e31749010e96c6b4625551" width="798" height="549" data-path="images/product/Guardrails/Patronus.jpg">
    * Detect hallucinations and factual errors \* Assess quality: conciseness,
      helpfulness, tone \* Identify gender and racial bias in outputs
  </Card>

  <Card title="Pillar" href="/integrations/guardrails/pillar" img="https://mintcdn.com/portkey-docs-migration-03-llm-providers/bNMabv2twtA1Fe6u/images/product/Guardrails/Pillar.jpg?fit=max&auto=format&n=bNMabv2twtA1Fe6u&q=85&s=1d2675f9547bcd8a8eee42ae859dd7da" width="798" height="549" data-path="images/product/Guardrails/Pillar.jpg">
    * Scan prompts and responses comprehensively \* Detect PII, toxicity, and
      injection attacks \* Enterprise security and compliance features
  </Card>

  <Card title="Prompt Security" href="/integrations/guardrails/prompt-security" img="https://mintcdn.com/portkey-docs-migration-03-llm-providers/bNMabv2twtA1Fe6u/images/product/Guardrails/PromptSecurity.jpg?fit=max&auto=format&n=bNMabv2twtA1Fe6u&q=85&s=5c61d8b11bbd507fffbf1af3c2d1cc9a" width="798" height="549" data-path="images/product/Guardrails/PromptSecurity.jpg">
    * Scan prompts for security vulnerabilities \* Analyze responses for policy
      violations \* Advanced threat detection and mitigation
  </Card>

  <Card title="Qualifire" href="/integrations/guardrails/qualifire" img="https://mintcdn.com/portkey-docs-migration-03-llm-providers/bNMabv2twtA1Fe6u/images/product/Guardrails/Qualifire.png?fit=max&auto=format&n=bNMabv2twtA1Fe6u&q=85&s=7a3b3afa34ce0e2406038c4eaed89b64" width="960" height="540" data-path="images/product/Guardrails/Qualifire.png">
    * Best in class evaluation and guardrails for agents, RAG and chat bots.
      Detect and mitigate hallucinations, grounding issues, and any custom
      policies.
  </Card>
</CardGroup>

The logic for all of the Guardrail Checks (including Partner Guardrails) is open source.

<Info>
  View it
  [here](https://github.com/Portkey-AI/gateway/tree/feat/plugins/plugins/default)
  and
  [here](https://github.com/Portkey-AI/gateway/tree/feat/plugins/plugins/portkey)
  on the Portkey Gateway repo.
</Info>

## Bring Your Own Guardrail

We have built Guardrails in a very modular way, and support bringing your own Guardrail using a custom webhook! [Learn more here](/integrations/guardrails/bring-your-own-guardrails).

## Portkey's Guardrails

Along with the partner Guardrails, there are also deterministic as well as LLM-based Guardrails supported natively by Portkey.

<Note>
  `BASIC` Guardrails are available on all Portkey plans.

  <br />

  <br />

  `PRO` Guardrails are available on Portkey Pro & Enterprise plans.
</Note>

### `BASIC` — Deterministic Guardrails

<CardGroup cols={2}>
  <Card title="Regex Match">
    <br />

    Checks if the request or response text matches a regex pattern.<br /><br />
    **Parameters**: rule: `string`<br />
    **Supported On**: `input_guardrails`, `output_guardrails`
  </Card>

  <Card title="Sentence Count">
    <br />

    Checks if the content contains a certain number of sentences. Ranges allowed.<br /><br />
    **Parameters**: minSentences: `number`, maxSentences: `number`<br />
    **Supported On**: `input_guardrails`, `output_guardrails`
  </Card>

  <Card title="Word Count">
    <br />

    Checks if the content contains a certain number of words. Ranges allowed.<br /><br />
    **Parameters**: minWords: `number`, maxWords: `number`<br />
    **Supported On**: `input_guardrails`, `output_guardrails`
  </Card>

  <Card title="Character Count">
    <br />

    Checks if the content contains a certain number of characters. Ranges allowed.<br /><br />
    **Parameters**: minCharacters: `number`, maxCharacters: `number`<br />
    **Supported On**: `input_guardrails`, `output_guardrails`
  </Card>

  <Card title="JSON Schema">
    <br />

    Check if the response JSON matches a JSON schema.<br /><br />
    **Parameters**: schema: `json`<br />
    **Supported On**: `output_guardrails` only
  </Card>

  <Card title="JSON Keys">
    <br />

    Check if the response JSON contains any, all or none of the mentioned keys.<br /><br />
    **Parameters**: keys: `array`, operator: `string`<br />
    **Supported On**: `output_guardrails` only
  </Card>

  <Card title="Contains">
    <br />

    Checks if the content contains any, all or none of the words or phrases.<br /><br />
    **Parameters**: words: `array`, operator: `string`<br />
    **Supported On**: `output_guardrails` only
  </Card>

  <Card title="Valid URLs">
    <br />

    Checks if all the URLs mentioned in the content are valid<br /><br />
    **Parameters**: onlyDNS: `boolean`<br />
    **Supported On**: `output_guardrails` only
  </Card>

  <Card title="Contains Code">
    <br />

    Checks if the content contains code of format SQL, Python, TypeScript, etc.<br /><br />
    **Parameters**: format: `string`<br />
    **Supported On**: `output_guardrails` only
  </Card>

  <Card title="Lowercase Detection">
    <br />

    Check if the given string is lowercase or not.<br /><br />
    **Parameters**: format: `string`<br />
    **Supported On**: `input_guardrails`, `output_guardrails`
  </Card>

  <Card title="Ends With">
    <br />

    Check if the content ends with a specified string.<br /><br />
    **Parameters**: Suffix: `string`<br />
    **Supported On**: `input_guardrails`, `output_guardrails`
  </Card>

  <Card title="Webhook">
    <br />

    Makes a webhook request for custom guardrails<br /><br />
    **Parameters**: webhookURL: `string`, headers: `json`<br />
    **Supported On**: `input_guardrails`, `output_guardrails`
  </Card>

  <Card title="JWT Token Validator">
    <br />

    Check if the JWT token is valid using JWKS signature verification or token introspection.

    <br />

    **Validation Methods**:

    * JWKS-based validation (via URI or inline JSON)
    * Token introspection (RFC 7662)

    **Parameters**:
    JWKS URI: `string`,
    JWKS: `object`,
    Introspect Endpoint: `string`,
    Introspect Content Type: `string`,
    Introspect Cache Max Age: `number`,
    Header Key: `string`,
    Cache Max Age: `number`,
    Clock Tolerance: `number`,
    Max Token Age: `string`,
    Required Claims: `array`,
    Claim Values: `object`,
    Header Payload Match: `array`,
    Extract Claims: `array`,
    Claim Prefix: `string`

    **Supported On**: `input_guardrails`
  </Card>

  <Card title="Model Whitelist">
    <br />

    Check if the inference model to be used is in the whitelist.

    <br />

    **Parameters**:
    Models: `array`, Inverse: `boolean`

    **Supported On**: `input_guardrails`
  </Card>
</CardGroup>

### `PRO` — LLM Guardrails

<CardGroup cols={2}>
  <Card title="Moderate Content">
    <br />

    Checks if the content passes the mentioned content moderation checks.

    <br />

    <br />

    **Parameters**: categories: `array`

    <br />

    **Supported On**: `input_guardrails` only
  </Card>

  <Card title="Check Language">
    <br />

    Checks if the response content is in the mentioned language.

    <br />

    <br />

    **Parameters**: language: `string`

    <br />

    **Supported On**: `input_guardrails` only
  </Card>

  <Card title="Detect PII">
    <br />

    Detects Personally Identifiable Information (PII) in the content.

    <br />

    <br />

    **Parameters**: categories: `array`

    <br />

    **Supported On**: `input_guardrails`, `output_guardrails`
  </Card>

  <Card title="Detect Gibberish">
    <br />

    Detects if the content is gibberish.

    <br />

    <br />

    **Parameters**: `boolean`

    <br />

    **Supported On**: `input_guardrails`, `output_guardrails`
  </Card>
</CardGroup>

<Note>
  You can now have configurable timeouts for Partner & Pro Guardrails!
</Note>

## Contribute Your Guardrail

Integrate your Guardrail platform with Portkey Gateway and reach our growing user base.
Check out some [existing integrations](https://github.com/portkey-ai/gateway) to get started.
