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

# モデレーション

> Python SDKで `/moderations` を呼び出します。

**メソッド**: `client.generate_moderation()`.

### 例

```python theme={null}
moderation = client.generate_moderation({
    "model": "openai/omni-moderation-latest",
    "input": "Text to classify",
})
```

### 主なパラメーター

* `model`（必須）: モデレーションモデルのID（例: `openai/omni-moderation-latest`）。
* `input`（必須）: 文字列またはコンテンツ項目の配列（テキストまたは `image_url`）。
* 任意: `categories`/`severity`フィルター（対応している場合）と`user`タグ。

### 戻り値

`ModerationResponse`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.