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

# मॉडरेशन

> TypeScript SDK से /moderations call करें।

**Method**: `client.generateModeration()`।

### उदाहरण

```typescript theme={null}
const moderation = await client.generateModeration({
  model: "openai/omni-moderation-latest",
  input: "Text to classify",
});
```

### मुख्य parameters

* `model` (आवश्यक): मॉडरेशन मॉडल ID (जैसे, `openai/omni-moderation-latest`)।
* `input` (आवश्यक): स्ट्रिंग या सामग्री आइटमों की सूची (पाठ या `image_url`)।
* वैकल्पिक: `categories`/`severity` फ़िल्टर (यदि समर्थित हों) और `user` टैग।

### रिटर्न मान

`ModerationResponse`

```json theme={null}
{
  "results": [
    {
      "flagged": false,
      "categories": {
        "hate": false,
        "hate/threatening": false,
        "harassment": false,
        "harassment/threatening": false,
        "self-harm": false,
        "self-harm/intent": false,
        "self-harm/instructions": false,
        "sexual": false,
        "sexual/minors": false,
        "violence": false,
        "violence/graphic": false
      },
      "category_scores": {
        "hate": 0.01,
        "hate/threatening": 0.0,
        "harassment": 0.02,
        "harassment/threatening": 0.0,
        "self-harm": 0.0,
        "self-harm/intent": 0.0,
        "self-harm/instructions": 0.0,
        "sexual": 0.05,
        "sexual/minors": 0.0,
        "violence": 0.01,
        "violence/graphic": 0.0
      }
    }
  ]
}
```


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