Screen content for threats
The guard API endpoint is the integration point for GenAI applications using AI Guardrails. It allows you to call on all of AI Guardrails' defenses with a single API call.
For an overview and integration guidance please see here.
Using guard, you can submit the content of an LLM interaction to AI Guardrails. This include inputs from the user, reference documents, and the LLM output. The guardrails configured in the policy will screen the interaction, and a flagging response will indicate whether any threats were detected, in line with your policy.
Your application can then be programmed to take mitigating action based on the flagging response, such as blocking the interaction, warning the end user, or generating an internal security alert.
A request must contain messages, tools, or both. Send tools on its own to screen tool definitions independently of a conversation.
Request
- Base URL: https://api.lakera.ai
- URL: https://api.lakera.ai/v2/guard
- Auth: HTTP bearer
Request body
Response
Screening result
Changes
No recorded changes to this operation across all 1 revision of this API.