Identify potentially harmful content in text and images using the REST API
compliance
parameter.
compliance
parameter to true
in your chat completion requests. When enabled, the API will analyze the content and return details about any detected violations.
compliance_violations
field that contains an array of any detected content violations. Here’s an example response with detected violations:
Category | Description |
---|---|
pedophilia | Content related to sexual content involving minors |
beastiality | Content involving sexual acts with animals |
murder | Content that promotes or glorifies murder |
rape | Content related to sexual assault |
incest | Content involving sexual relations between family members |
gore | Explicit and graphic violent content |
prostitution | Content promoting or soliciting prostitution |
drug_use | Content promoting or describing drug use |
compliance: true
for all user-generated content