> ## 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.

# モデレーション

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

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

### 例

```ruby theme={null}
require 'phaseo_sdk'

client = PhaseoSdk::Phaseo.new(api_key: ENV.fetch("PHASEO_API_KEY"))

moderation = client.create_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.