---
description: Keep AI interactions secure and risk-free with Guardrails in AI Gateway
title: Introducing Guardrails in AI Gateway
image: https://developers.cloudflare.com/changelog/post/2025-02-26-guardrails/og.png?v=7e1e212cd39b309a
---

[Skip to content](#main-content)

[View RSS feeds](https://developers.cloudflare.com/fundamentals/new-features/available-rss-feeds/) [ Subscribe to RSS](https://developers.cloudflare.com/changelog/rss/index.xml)

[Back to all posts](https://developers.cloudflare.com/changelog)

February 26, 2025

## Introducing Guardrails in AI Gateway

[AI Gateway](https://developers.cloudflare.com/ai-gateway/)

Copy as Markdown| [View as Markdown](https://developers.cloudflare.com/changelog/post/2025-02-26-guardrails/index.md)| [Agent setup](https://developers.cloudflare.com/agent-setup/)

[AI Gateway](https://developers.cloudflare.com/ai-gateway/) now includes [Guardrails](https://developers.cloudflare.com/ai-gateway/features/guardrails/), to help you monitor your AI apps for harmful or inappropriate content and deploy safely.

Within the AI Gateway settings, you can configure:

- **Guardrails**: Enable or disable content moderation as needed.
- **Evaluation scope**: Select whether to moderate user prompts, model responses, or both.
- **Hazard categories**: Specify which categories to monitor and determine whether detected inappropriate content should be blocked or flagged.

![Guardrails in AI Gateway](https://developers.cloudflare.com/cdn-cgi/image/onerror=redirect,width=2524,height=444,format=webp/_astro/Guardrails.BTNc0qeC.png)

Learn more in the [blog ↗︎](https://blog.cloudflare.com/guardrails-in-ai-gateway/) or our [documentation](https://developers.cloudflare.com/ai-gateway/features/guardrails/).

```json
{"@context":"https://schema.org","@type":"BlogPosting","@id":"https://developers.cloudflare.com/changelog/post/2025-02-26-guardrails/#page","headline":"Introducing Guardrails in AI Gateway","description":"Keep AI interactions secure and risk-free with Guardrails in AI Gateway","url":"https://developers.cloudflare.com/changelog/post/2025-02-26-guardrails/","inLanguage":"en","image":"https://developers.cloudflare.com/changelog/post/2025-02-26-guardrails/og.png?v=7e1e212cd39b309a","dateModified":"2025-02-26","datePublished":"2025-02-26","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
```
