# xAI API adds Custom Moderation Controls



xAI



xAI's API now offers Custom Moderation Controls: add a guidelines array to set nsfw, violence or profanity to decline, so Grok steers further away from that content \(no sexual innuendo, graphic violence or profanity\) while still answering educational, clinical, historical and news questions. Unlisted categories keep default moderation, responses keep the same shape, and xAI says it may refine the details.

- Recorded time: Oct 28, 2026 14:02 · Beijing Time (UTC+8)
- Review updated: Oct 28, 2026 14:48 Wed · Beijing Time (UTC+8)

## Sources

- Source excerpt: https://docs.x.ai/developers/advanced-api-usage/custom-moderation-controls

Canonical entry: https://www.ailyre.com/source/?id=xai-api-custom-moderation-controls-2026-10-28&lang=en
