---
title: "Moderate content"
method: POST
path: "/ai/v1/moderate"
tags: ["AI"]
---

# Moderate content

`POST /ai/v1/moderate`

## Request

- Base URL: `https://api.run402.com`
- URL: `https://api.run402.com/ai/v1/moderate`
- Auth: HTTP bearer

Check content against OpenAI moderation categories. Free for all projects.

## Request body

- object
  - `text` string, required: Text to moderate (max 10,000 chars)

## Response `200`

Moderation result

- AiModerationResponse
  - `flagged` boolean
  - `categories` object
  - `scores` object

## Other responses

- `400`: Invalid input
- `401`: Missing or invalid authentication. Run402-originated JSON bodies use the canonical ErrorEnvelope.
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/run402/apis/run402-api.md) · [All operations](https://skmtc.dev/run402/apis/run402-api/llms.txt) · [OpenAPI document](https://skmtc.dev/run402/apis/run402-api/revisions/893607557f50?raw)
