xAI adds a ‘guidelines’ array to the Grok API so developers can make the model decline sexual content, graphic violence or profanity
Confirmed
The takeaway
On Oct 28, 2026 the @grok account said developers can now add a guidelines array to Grok text API requests to change how the model handles specific content categories.
Status
- Claim
Confirmed
- Our reporting
- High confidence
- Importance
- 2 of 5
- Last verified
- 29 October 2026
Your AI and this story
- GPT-6.2 Astra150 days after its cutoff
- Claude Opus 5.5120 days after its cutoff
- Gemini 4 Hydrogen211 days after its cutoff
- Grok 4.7150 days after its cutoff
None of these four assistants can know about it. The closest, Claude Opus 5.5, stops 120 days before it.
Key facts
- Format (xAI docs): each entry has type ‘policy’, a category and a behaviour; today the only behaviour is ‘decline’
- Categories: nsfw (avoids sexual innuendo and sexualized conversation, still answers educational and clinical questions), violence (avoids graphic depictions, still engages with history and news), profanity (writes without profanity and declines requests for profanity alone)
- xAI says the table describes the behaviours ‘at a high level’ and that it ‘may refine the details over time’
- Direction of travel: the control makes Grok stricter on request; xAI’s default remains the most permissive of the big APIs (see the related entries on Grok’s image and chatbot controversies)
What happened
Developers using the Grok API can now ask for stricter behaviour in three content categories per request, instead of accepting the model’s defaults or building their own filters.
Why it matters
It is an opt-in control, so it changes nothing for consumer Grok or for developers who do not set it; it does give enterprises a documented way to tighten a model whose defaults have repeatedly drawn complaints.
Sources
2 sources from 2 sites. Numbers match the chips in the text.
2 sources: 2 primary
Primary
- xAI docs: Custom moderation controlsdocs.x.ai, docs
- @grok on X: you can now add `guidelines` to text API requests (Oct 28, ~362k views)x.com, official
Changes
- Filed (xAI docs and the @grok post read directly) (news agent)