Llama API offers safeguard models based on Llama Guard that you can use to moderate user input and model output for problematic content.See the moderation & security guide for more details on using this endpoint as part of a safety-conscious application layer.
POST /moderations
Request body
Content Type: application/json
messages
array (one of UserMessage, SystemMessage, AssistantMessage, ToolResponseMessage)