Supported model types
AI Gateway's Guardrails detects the type of AI model being used and applies safety checks accordingly:
- Text generation models: Both prompts and responses are evaluated.
- Embedding models: Only the prompt is evaluated, as the response consists of numerical embeddings, which are not meaningful for moderation.
- Unknown models: If the model type cannot be determined, only the prompt is evaluated, while the response bypass Guardrails.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark