Skip to main content

API Information

  • Endpoint: https://aihubmix.com/v1/moderations
  • Request Method: POST
  • Authentication: Authorization: Bearer <AIHUBMIX_API_KEY>
  • Content-Type: application/json
  • This endpoint supports two models:
    1. omni-moderation-latest: This model and all snapshots support more classification options and multimodal input.
    2. text-moderation-latest: Supports only text input, with fewer classification options.

Quick Start

Usage Example

Output Example

Here is a complete output example, where the model correctly predicts self-harm and violence elements in the image.
The output result includes several categories in the JSON response, which inform you about the types of content present in the input (if any) and the extent to which the model believes they are present.

Content Categories

The table below describes the types of content that the moderation API can detect, along with the models and input types supported for each category.
Categories labeled “text-only” do not support image input. If you send only images to the model (without text) using omni-moderation-latest, the model will return a score of 0 for these unsupported categories.

Last updated: 2026-06-01