Moderations
Create Moderation
Classifies if text is potentially harmful.
POSThttps://api.portkey.ai/v1/moderations
Body
input*one of
The input text to classify
modelany of
Two content moderations models are available: text-moderation-stable
and text-moderation-latest
.
The default is text-moderation-latest
which will be automatically upgraded over time. This ensures you are always using our most accurate model. If you use text-moderation-stable
, we will provide advanced notice before updating the model. Accuracy of text-moderation-stable
may be slightly lower than for text-moderation-latest
.
"text-moderation-stable"
Response
OK
Body
id*string
The unique identifier for the moderation request.
model*string
The model used to generate the moderation results.
results*array of object
A list of moderation objects.
Response
Last updated