Passer au contenu principal

Informations sur l’API

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

Démarrage rapide

Exemple d’utilisation

Exemple de sortie

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.

Catégories de contenu

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.

Dernière mise à jour : 2026-06-01