MODERATION
Base-Path:
https://api.hyprlab.io/v1
Moderation Path:
https://api.hyprlab.io/v1/moderations
Moderate Text Input:
curl https://api.hyprlab.io/v1/moderations \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HYPRLAB_API_KEY" \
-d '{
"model": "omni-moderation-latest",
"input": "...text to classify goes here..."
}'
Moderate Image and Text:
curl https://api.hyprlab.io/v1/moderations \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HYPRLAB_API_KEY" \
-d '{
"model": "omni-moderation-latest",
"input": [
{ "type": "text", "text": "...text to classify goes here..." },
{
"type": "image_url",
"image_url": {
"url": "https://example.com/image.png"
}
}
]
}'
Moderation Models
Model Name:
Usage:
Max tokens:
omni-moderation-latest
Free-to-Use
32,768
omni-moderation-2024-09-26
Free-to-Use
32,768
text-moderation-latest
Free-to-Use
32,768
text-moderation-stable
Free-to-Use
32,768
text-moderation-007
Free-to-Use
32,768
Last updated