# Text moderation with the API

Source: [Text moderation with the API](<https://docs.gptunnel.ru/en/moderation/>)

<a id="_top"></a>
Use moderation to check user text before publishing it or sending it to a model for generation. Send a single string and read `results[0].flagged`. A value of `true` means at least one category was flagged.

<a id="base-url"></a>
## Base URL

```text
https://gptunnel.ru/v1/moderations
```

<a id="endpoints"></a>
## Endpoints

[Check text with `POST /v1/moderations`](<https://docs.gptunnel.ru/en/moderation/text-moderation/>). The method returns the result in the same HTTP response. The endpoint reference includes a request example, category results, billing details, and errors.
