---
title: "Moderates text content."
method: POST
path: "/api/ai/images/v2/image-moderation"
---

# Moderates text content.

`POST /api/ai/images/v2/image-moderation`

## Request

- Base URL: `https://api.worqhat.com`
- URL: `https://api.worqhat.com/api/ai/images/v2/image-moderation`
- Auth: API key in header `x-api-key` and API key in header `x-org-key`
- TypeScript: <https://skmtc.dev/worqhat/apis/worqhat-ai-api-endpoints/docs/api/ai/images/v2/image-moderation/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body `multipart/form-data`

- object
  - `image` string, binary, required

## Response `200`

OK

- ImageModerationResponse
  - `id` string: The unique identifier associated with the moderation analysis process.
  - `status` string: The status of the moderation analysis process.
  - `timestamp` integer: The timestamp when the moderation analysis request was processed.
  - `content` ImageModerationCategory[]
    - `Confidence` number: The confidence level of the moderation analysis result.
    - `Name` string: The name of the moderation category.
    - `ParentName` string: The parent category of the moderation category.
  - `processing_count` integer: The number of times the content has been processed to generate the final analysis results.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized - Invalid API Key or Organization Key
- `404`: Not Found
- `406`: Not Acceptable - Invalid Content Type or Content not supported
- `500`: Internal Server Error

## Changes

- **2023-06-26** `1196dfb8716d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/worqhat/apis/worqhat-ai-api-endpoints/changes/api/ai/images/v2/image-moderation/post.md)

---

[API](https://skmtc.dev/worqhat/apis/worqhat-ai-api-endpoints.md) - [All operations](https://skmtc.dev/worqhat/apis/worqhat-ai-api-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/worqhat/apis/worqhat-ai-api-endpoints/revisions/a1044e79bd85?raw)
