Classify any text snippet across OpenAI's standard moderation categories (sexual, hate, harassment, self-harm, violence, and more). Returns a boolean flag plus per-category booleans and confidence scores — a drop-in safety gate for chat inputs, generated text, and free-form prompts.
About this model
Classify any text snippet across the standard policy categories — sexual, hate, harassment, self-harm, violence, and more — with confidence scores per category. A drop-in safety gate for chat inputs, generated text, and free-form prompts.
Cost analysis
| Provider | Cost | Notes |
|---|---|---|
| muapiapp | $0.001 per call | Flat fee per text moderation call. No volume tiers. |
| Fal.ai | Not available | No equivalent first-party text-moderation model. |
| Replicate | Not available | No equivalent first-party text-moderation model. |
Flat fee per text moderation call. No volume tiers.
No equivalent first-party text-moderation model.
No equivalent first-party text-moderation model.
* Competitor pricing is estimated based on similar model architectures and usage tiers.
Configuration schema
| Parameter | Type | Description | Default |
|---|---|---|---|
| Text | string | Text to moderate. Truncated to 8000 characters before evaluation. | A beautiful sunset over the mountains. |
Text to moderate. Truncated to 8000 characters before evaluation.
A beautiful sunset over the mountains.Developer documentation
Submit the text: POST text (truncated to 8000 chars before evaluation). No other fields required.
Read the verdict: Text moderation completes synchronously — poll /api/v1/predictions/{request_id}/result immediately and you'll usually have a result within a second.
Inspect categories and scores: output.flagged is the binary gate. output.categories is a dict of {category: boolean} showing which policies were tripped, and output.category_scores gives a confidence score per category (0–1).
Frequently asked
Up to 8000 characters; anything longer is truncated before evaluation.
The moderator handles a broad set of languages, but English yields the most reliable category scores.
Sexual, sexual/minors, hate, hate/threatening, harassment, harassment/threatening, self-harm and its sub-types, violence, and violence/graphic.