Skip to main content
POST
zlm-v1-moderation-edge: Moderations
This model is routable only on /v1/moderations. Send the text to classify as input — a string, an array of strings, or an array of {"type": "text", "text": "…"} content parts. The response is OpenAI’s native moderations envelope, { id, model, results[] }, with each result carrying a flagged verdict, per-category categories booleans, and calibrated category_scores — so it drops into any pipeline written against omni-moderation-latest.
ZeroGPU’s moderation model screens text for unsafe, harmful, or policy-sensitive content and returns the complete OpenAI 13-category taxonomy (a flagged verdict, per-category booleans, and calibrated category_scores), so it drops into any pipeline written against omni-moderation-latest. Under the hood it’s an 86M-parameter DeBERTa encoder with a shared trunk feeding one binary safe/unsafe head and 13 category heads, with per-category thresholds calibrated on held-out validation data. In head-to-head benchmarks against OpenAI omni-moderation it wins the binary safe/unsafe decision (0.899 vs 0.853 F1) and 9 of 13 harm categories, with the largest gains on graphic violence, illicit content, and self-harm, while returning verdicts 1.2–1.8× faster at the median on production-range inputs, because inference is co-located at the edge instead of a round trip to a central API. Moderation sits inline in front of every response your app serves; this is the model that’s fast and accurate enough to live there.
References: Moderation benchmarkTermsPrivacy

Authorizations

x-api-key
string
header
required

Headers

x-project-id
string

Optional project identifier. Scopes the request to a specific project when provided.

Body

application/json
model
string
default:zlm-v1-moderation-edge
required

Model identifier (fixed for this playground).

Allowed value: "zlm-v1-moderation-edge"
Example:

"zlm-v1-moderation-edge"

input
required

Text to classify. Accepts a single string, an array of strings (one result per element), or an array of content parts ({ "type": "text", "text": "..." }) that form a single multi-modal input.

Required string length: 1 - 131072

Response

Success

OpenAI-compatible moderations envelope. One results entry per input.

id
string

Unique identifier for the moderation request.

Example:

"modr-0a1b2c3d4e5f60718293a4b5c6d7e8f90"

model
string

The model used for classification.

Example:

"zlm-v1-moderation-edge"

results
object[]

Moderation verdicts, one per input (a string input yields a single-element array).