> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Moderations

> Call /moderations with the Java SDK.

**Method**: `client.createModeration(...)`

```java theme={null}
import ai.stats.sdk.AIStats;

AIStats client = new AIStats(System.getenv("AI_STATS_API_KEY"));

String body = """
{
  "model": "openai/omni-moderation",
  "input": "Please rate this message for safety"
}
""";

Object response = client.createModeration(body);
System.out.println(String.valueOf(response));
```
