检查文本内容是否违反使用政策
POST
/v1/moderationsAuthorizations
AuthorizationstringrequiredUse a OneAster inference API Key (Bearer sk-…).
Authorization: Bearer $ONEASTER_API_KEY
Body · application/json
inputoneOfrequiredmodelstringJSON Schema
{
"type": "object",
"required": [
"input"
],
"properties": {
"input": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"model": {
"type": "string",
"example": "text-moderation-latest"
}
}
}