Skip to main content
Content safety endpoints let you run a Waffo content safety check on a user’s text prompt before your product generates an image or video. Send the prompt, receive a clear verdict, and generate only when the verdict is allow. The check is stateless — the prompt text is not retained after the response is returned. This is the fastest way to satisfy the pre-generation moderation requirement in AIGC compliance. Pair it with an output-stage check for full coverage.

What it checks

The check screens the prompt for content that is unsafe to generate, with particular focus on child-unsafe material — the category every major AI generation platform intercepts. When the prompt matches one or more restricted categories, the check returns a non-allow verdict and lists the categories it matched.

Verdicts

The action field carries the verdict. Continue to generation only on allow.
Treat allow as the only signal to proceed. Both review and block mean “do not generate yet.”

Reason codes

The reasonCode field explains the verdict in machine-readable form.
When the moderation service is temporarily unavailable, the check returns review (with service_degraded) so that nothing is generated without a verdict. Retry the request rather than generating on a degraded response.

How to use it

1

Collect the user's prompt

Any text description your user submits for image or video generation.
2

Call scan-prompt before generating

Send the prompt to scan-prompt and read the action field.
3

Act on the verdict

  • allow → call your generation model.
  • review → hold the request and retry later; a decision usually resolves within about 1 hour.
  • block → don’t generate; show a friendly message such as “This content doesn’t meet our usage guidelines.”

Endpoints

Scan Prompt

Screen a generation prompt and receive an allow / review / block verdict.