Moderation
Screen a prompt
Changed onEvaluate a text prompt against content policies before generation. This endpoint is experimental and may change.
post/v1/moderation/prompt
Request
- Base URLhttps://api.creem.io
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Prompt screening result
Example response
{
"object": "moderation_result"
}Changes
- info
added the non-success response with the status
- info