You can now set content guidelines on text API requests. Add a `guidelines` array to a Chat Completions or Responses API request to set how Grok handles content in the `nsfw`, `violence`, and `profanity` categories. Grok follows the guidelines as it writes its response. See [Custom Moderation Controls](/developers/advanced-api-usage/custom-moderation-controls).
New model Grok News
Custom moderation controls
You can now set content guidelines on text API requests. Add a `guidelines` array to a Chat Completions or Responses API request to set how Grok handles content in the `nsfw`, `violence`, and `profanity` categories. Grok follows the guidelines as it writes its response. See [Custom Moderation Controls](/developers/advanced-api-usage/custom-moderation-controls).