Moderations
Moderations
POST
/
moderations
Authorizations
x-portkey-api-key
string
headerrequiredx-portkey-virtual-key
string
headerrequiredBody
application/json
input
default: required
The input text to classify
model
default: text-moderation-latest
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
.
Response
200 - application/json
Represents if a given text input is potentially harmful.
id
string
requiredThe unique identifier for the moderation request.
model
string
requiredThe model used to generate the moderation results.
results
object[]
requiredA list of moderation objects.
Was this page helpful?