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

# الإشراف على المحتوى

> استدعِ /moderations باستخدام SDK PHP.

**الطرق**: `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` (مطلوب): معرّف نموذج الإشراف (مثل `openai/omni-moderation-latest`).
* `input` (مطلوب): عناصر المحتوى (نص أو `image_url`).
* اختياري: عوامل تصفية `categories`/`severity` (عند دعمها) ووسم `user`.

### القيمة المعادة

استجابة الإشراف


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