---
title: "Create Moderation"
method: POST
path: "/v1/moderations"
tags: ["moderations"]
---

# Create Moderation

`POST /v1/moderations`

OpenAI-compatible moderations endpoint.

Authentication modes:
- Master key + user field: Use specified user (must exist)
- API key + user field: Use specified user (must exist)
- API key without user field: Use virtual user created with API key

## Query parameters

- `include_raw` boolean

## Request body

- ModerationRequest — OpenAI-compatible moderation request.
  - `input` union, required — Text, list of texts, or list of content-part dicts to moderate
    - string
    - string[]
    - object[]
  - `model` string, required
  - `user` string, nullable

## Response `200`

Successful Response

- ModerationResponse — Normalized moderation response across providers.
  - `id` string, required
  - `model` string, required
  - `results` ModerationResult[], required
    - `categories` object
    - `category_applied_input_types` object, nullable
    - `category_scores` object
    - `flagged` boolean, required
    - `provider_raw` object, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-05-20** `bb754bbf3e78` — 1 info
  - endpoint added
- **2026-05-14** `843517ce5d0c` — 1 breaking
  - api path removed without deprecation
- **2026-04-17** `a983b42405a7` — 1 breaking, 3 info
  - the response's body type changed from no type to `object` for status `200`
  - added the required property `id` to the response with the `200` status
  - added the required property `model` to the response with the `200` status
  - added the required property `results` to the response with the `200` status
- **2026-04-17** `0f43605bdc13` — 4 breaking, 1 info
  - the response's body type changed from `object` to no type for status `200`
  - removed the required property `id` from the response with the `200` status
  - removed the required property `model` from the response with the `200` status
  - removed the required property `results` from the response with the `200` status
  - …1 more

[Change history](https://skmtc.dev/mozilla-ai/apis/otari/changes/v1/moderations/post.md)

---

[API](https://skmtc.dev/mozilla-ai/apis/otari.md) · [All operations](https://skmtc.dev/mozilla-ai/apis/otari/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mozilla-ai/otari/revisions/bb754bbf3e78/schema)
