Skip to main content
Run a Waffo content safety check on a user’s text prompt before your product generates an image or video. The response carries a verdict in the action field — continue to generation only when it is allow. The check is stateless and does not retain the prompt text after returning.
Authentication: API Key

Request Body

semantic controls the optional semantic-scoring layer: off disables it, shadow scores without affecting the verdict, and enforce lets the score influence the verdict. When omitted, the service applies its default mode.

Example Request

Success Response (200)

Response Fields

Verdict handling

When the moderation service is temporarily unavailable, the check returns action: "review" with reasonCode: "service_degraded" so that nothing is generated without a verdict. Retry the request rather than generating on a degraded response.

Errors

Retry policy: Never retry 4xx — fix the request and resubmit. Retry 5xx with exponential backoff (start 5s, max 3 attempts).
Screen prompts before generation and continue only on allow. For full coverage, add an output-stage check as described in AIGC compliance.