Skip to main content
Animus provides content moderation capabilities that help you identify and filter potentially harmful content. Unlike some other APIs, our moderation is integrated directly into our chat completions endpoint using the compliance parameter.

Using Content Moderation

To enable content moderation in your API requests, simply set the compliance parameter to true in your chat completion requests. When enabled, the API will analyze the content and return details about any detected violations.

Response Format

When compliance checking is enabled, the API response will include a compliance_violations field that contains an array of any detected content violations. Here’s an example response with detected violations:

Content Violation Categories

Our compliance system can detect and flag the following categories of potentially harmful content:

Advanced Implementation

Handling Different Violation Types

Batch Content Moderation

For applications that need to check multiple pieces of content:

Best Practices

For effective content moderation in your applications:
  1. Always enable compliance: Set compliance: true for all user-generated content
  2. Implement appropriate responses: Create user-friendly notifications when content is flagged
  3. Pair with frontend filters: Implement basic filtering on the client side to reduce API calls for obvious violations
  4. Handle violations gracefully: Provide constructive feedback to users when their content is flagged
  5. Review edge cases: Periodically review flagged content to understand common violations in your application
  6. Log violations: Keep records for analysis and improvement of your moderation system
  7. Implement appeals process: Allow users to appeal moderation decisions when appropriate

Error Handling

Implement robust error handling for moderation requests:

Integration Examples

Web Application Integration

Next Steps

Text Generation

Learn how to generate text with built-in moderation

Vision

Understand vision capabilities and content analysis

Webhooks

Set up webhooks for automated moderation workflows

API Reference

Complete API documentation and reference