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

# Create a moderation

> Classify text or multimodal input for safety

| Field   | Type         | Required | Description                                                  |
| ------- | ------------ | -------- | ------------------------------------------------------------ |
| `input` | string/array | Yes      | Text, text array, or model-supported multimodal input items. |
| `model` | string       | No       | Moderation model ID.                                         |

<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.bianxie.ai/v1/moderations \
    -H "Authorization: Bearer API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "your-model",
      "input": "Content to check"
    }'
  ```

  ```python Python theme={null}
  client.moderations.create(model="your-model", input="Content to check")
  ```

  ```javascript Node.js theme={null}
  await client.moderations.create({ model: "your-model", input: "Content to check" });
  ```
</CodeGroup>

The response includes `id`, `model`, and `results[]`. Each result has an overall `flagged` value, category flags, category scores, and sometimes applicable input types. This endpoint does not stream.
