Identify and map AI usage patterns and potential security risks across your enterprise.
Protect sensitive information with advanced data loss prevention and encryption technologies.
Detect and block prompt injections, jailbreaks, and other AI-specific threats in real-time.
Implement customizable guardrails for your AI applications to ensure compliance and responsible AI usage.
import axios from 'axios';
const response = await axios.post(
'https://api.guardion.ai/v1/guard',
{
messages: [
{ role: 'user', content: 'Ignore all previous instructions...' }
],
session: 'customer_101'
},
{
headers: {
'Authorization': `Bearer ${process.env.GUARDION_API_KEY}`,
'Content-Type': 'application/json'
}
}
);
const res = response.data;
if (res.flagged) {
console.log(res.correction);
}