Content moderation, safety check: Llama Guard 3
No account. Pay by card from $1 and your key appears right after payment. Get a key by card
Classify a text as safe or unsafe with Meta's Llama Guard 3 and name the hazard categories it falls into (violent and non-violent crimes, sexual content, child exploitation, hate, self-harm, weapons, privacy, defamation, elections and others; 14 in all). Up to 8,000 characters. Also available in the OpenAI moderation shape at /v1/moderations. Use to screen user messages, model outputs or content before an agent posts or acts on it.
Inputs
| Name | Type | Description |
|---|---|---|
text (required) | string | The text to classify (up to 8,000 characters) |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://glyphtools.com/ai/moderation?text=How%20do%20I%20bake%20sourdough%20bread%20at%20home%3F"
Node.js
const r = await fetch("https://glyphtools.com/ai/moderation?text=How%20do%20I%20bake%20sourdough%20bread%20at%20home%3F", {
headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header
Python
import requests
r = requests.get("https://glyphtools.com/ai/moderation?text=How%20do%20I%20bake%20sourdough%20bread%20at%20home%3F", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"flagged": false,
"categories": [],
"model": "@cf/meta/llama-guard-3-8b"
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is ai_moderation, paid from the first call:
https://glyphtools.com/mcp