---
title: AI Text Moderation API
slug: text-moderation
url: https://apyverse.com/apyhub/service/text-moderation
provider: ApyHub
categories: [Artificial Intelligence, "Security & Privacy"]
auth: api_key
---

# AI Text Moderation API

Send text and a requested service to get moderation results back in a data.google object. Useful for filtering user-generated content before publishing.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `ai/text/moderation` | What it does Sends text to the moderation endpoint and returns a JSON object containing a data obje… | 500 |

## About

## What it does
Text Moderation checks a text string for moderation results using the requested service. Send `body.text` with the text you want analysed and set `body.requested_service` to `google`. If you need Google-specific handling, you can also include `body.google.key` and `body.google.google_language`.

Use Text Moderation when you need to inspect user-generated content before publishing it, flagging, or routing it for review. The request is focused and the response is simple: the API returns a `data` object with a `google` object when `requested_service` is `google`.

That makes it suitable for comment systems, chat moderation workflows, marketplace listings, and other places where you need an automated moderation step in front of stored or public content. You send the text, get back the moderation payload, and decide how to handle the result in your application.

Text Moderation is best when you already know which moderation backend you want to use and need a lightweight endpoint around it.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyverse.com/apyhub/service/text-moderation
