Skip to main content
Request safety filtering lets a single request opt into content moderation by naming the categories that should block it. Pass flagged_categories in the request body: abliteration.ai runs the last user message through moderation, and if the result intersects your list, the call is rejected with 400 before it reaches the model. No Policy Gateway subscription or policy setup is required. This is the inline, per-request control. For org-wide governance that applies to every request on a project — including rewrites, redaction, allow/deny lists, and audit logs — use the Policy Gateway, where flagged_categories is one of the rule fields.

Parameter

Fieldflagged_categories (also accepts flaggedCategories)
LocationTop level of the request body
TypeArray of category strings
Endpoints/v1/chat/completions, /v1/messages

Categories

Per request, four categories are honored. Any other value is ignored.
ValueBlocks
harassmentAbusive or insulting language toward a target.
hateDerogatory or hateful content about a protected group.
illicitRequests for wrongdoing, fraud, or prohibited activity.
sexualSexual content involving explicit acts.
The Policy Gateway rule of the same name supports the full OpenAI-moderation set, including granular child-safety, self-harm, and violence variants. See policy rules.

Always blocked

A minimal safety floor applies to every request, independent of flagged_categories — you cannot opt out of it, and it applies even when flagged_categories is omitted:
Always blockedRejection message
Child sexual contentContent flagged: Sexual harm against minors.
Self-harm contentContent flagged: Self-harm.
These are the only categories abliteration.ai blocks by default. Everything else passes through unless you opt in via flagged_categories or a policy.
If a legitimate use case is blocked, email help@abliteration.ai.

Example

Rejection

When the moderation result intersects your list, the request is rejected with HTTP 400 and a message naming the triggered categories, for example Content flagged: Harassment, Hate. The model is never called and the request is not billed for completion tokens.
Last modified on July 15, 2026