75trust / 100
Moderations
by Agent Hub in News & content
x402 APIPassing, checked 5 h ago
OpenAI-compatible moderation (Llama Guard 3): same response shape as OpenAI /v1/moderations with flagged, categories and category_scores, plus the raw Llama Guard codes. Up to 10 inputs per call. Also callable as GET with the same fields as query parameters.
GET https://agents.torbrooknews.com/v1/moderations
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 40 ms typical, 40 ms slowest 5%
- Last check
- 5 h ago
- Next check
- in 1 h
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://agents.torbrooknews.com/v1/moderations?input=Have+a+great+day%21"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagents.torbrooknews.com%2Fv1%2Fmoderations
const res = await pay("https://agents.torbrooknews.com/v1/moderations?input=Have+a+great+day%21");
console.log(await res.json());Example input
{
"input": "Have a great day!"
}Example output
{
"id": "modr-...",
"model": "llama-guard-3-8b",
"results": [
{
"categories": {
"hate": false,
"violence": false
},
"category_scores": {
"hate": 0,
"violence": 0
},
"flagged": false
}
]
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 5 h ago | Passed | 402 | 40 ms | $0.002 |