OpenAPI 3.1.02026-08-226994571.1 MB
1e929292ddd5
moderations
Moderations
The moderations endpoint is a tool you can use to check whether content complies with an LLM Providers policies. Quick Start
curl --location 'http://0.0.0.0:4000/moderations' --header 'Content-Type: application/json' --header 'Authorization: Bearer sk-1234' --data '{"input": "Sample text goes here", "model": "text-moderation-stable"}'
post/moderations
Response
Successful Response
{"stackTrail":"paths:/moderations:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}