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

# मॉडरेशन

> PHP SDK के साथ /moderations call करें।

**Methods**: `generateModeration()`, `createModeration()`

### उदाहरण

```php theme={null}
<?php

require 'vendor/autoload.php';

use Phaseo\Sdk\Phaseo;

$apiKey = getenv('PHASEO_API_KEY');
$client = new Phaseo(apiKey: $apiKey);

$response = $client->createModeration([
    'model' => 'openai/omni-moderation-latest',
    'input' => 'Text to classify'
]);
echo $response['results'][0]['flagged'] ? 'Flagged' : 'Not flagged';
```

### मुख्य पैरामीटर

* `model` (ज़रूरी): moderation model ID (जैसे `openai/omni-moderation-latest`)।
* `input` (आवश्यक): सामग्री आइटम (पाठ या `image_url`)।
* Optional: `categories`/`severity` filters (जब समर्थित हों), `user` tag।

### लौटाया गया मान

ModerationResponse


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