One endpoint, four models. Choose a model and send text to get a safe or not safe result.
Pass your API key as a bearer token in the Authorization header on every request.
jailbreak-detectionvulgar-languagepii-detectionscam-detectioncurl -X POST https://api.mistyoz.com/v1/moderate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "scam-detection",
"text": "Congratulations, you won a prize"
}'const response = await fetch("https://api.mistyoz.com/v1/moderate", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
model: "scam-detection",
text: "Congratulations, you won a prize"
})
});
const data = await response.json();import requests
response = requests.post(
"https://api.mistyoz.com/v1/moderate",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"model": "scam-detection", "text": "Congratulations, you won a prize"}
)
print(response.json())Every request returns a binary result, either safe or not safe, along with latency in milliseconds.
{
"model": "scam-detection",
"result": "not safe",
"latency_ms": 7
}