Complete reference for the Omni by Moderate content moderation API
The Omni API provides a powerful, flexible interface for content moderation. It allows you to moderate both text and images with a single API call, providing comprehensive protection for your platform.
https://api.omnimoderate.com/v1
All API requests require authentication using an API key. You can obtain an API key from your Omni dashboard.
Include your API key in the request headers:
X-API-Key: your_api_key_here
Here's a simple example of how to moderate text content:
curl -X POST https://api.omnimoderate.com/v1/moderate \
-H "Content-Type: application/json" \
-H "X-API-Key: your_api_key_here" \
-d '{
"input": [
{ "type": "text", "text": "This is a sample text to moderate." }
]
}'
And here's how to moderate both text and images:
curl -X POST https://api.omnimoderate.com/v1/moderate \
-H "Content-Type: application/json" \
-H "X-API-Key: your_api_key_here" \
-d '{
"input": [
{ "type": "text", "text": "Check out this amazing photo!" },
{ "type": "image", "base64": "data:image/jpeg;base64,/9j/4AAQSkZ..." }
],
"analyze_images": true
}'
The API evaluates content across multiple categories of harmful content, including hate speech, harassment, self-harm, sexual content, and violence.
When multiple text items are submitted, the API evaluates each item individually and also evaluates all text items together. This helps catch issues that might only be apparent when text fragments are considered as a whole.
In addition to standard moderation, the API can perform deep analysis of images using OpenAI's vision models. This helps detect inappropriate content that might not be caught by standard moderation techniques.
All API responses include a cryptographic signature that allows you to verify the response came from our service and hasn't been tampered with.
The API enforces rate limits based on your subscription tier. Current rate limits are:
Plan | Rate Limit |
---|---|
Free | 10 requests per minute |
Basic | 60 requests per minute |
Pro | 300 requests per minute |
Enterprise | Custom rate limits |
When rate limits are exceeded, the API returns a 429 Too Many Requests
response. The response headers include X-RateLimit-Limit
, X-RateLimit-Remaining
, and X-RateLimit-Reset
to help you manage your API usage.
The API enforces the following size limits:
Explore the documentation to learn more about the API endpoints, request and response formats, and integration examples.