75trust / 100
Score
by s2ar in Security & trust
x402 APIPassing, checked 9 min ago
Grade a text against a form — deterministic meter, rhyme and line checks with diagnostics. GET ?text=&form=
GET https://api.s2ar.dev/x402/v1/score
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 319 ms typical, 372 ms slowest 5%
- Last check
- 9 min ago
- Next check
- in 24 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.s2ar.dev/x402/v1/score?form=haiku&text=An+old+silent+pond%0AA+frog+jumps+into+the+pond%0ASplash%21+Silence+again"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%2Fapi.s2ar.dev%2Fx402%2Fv1%2Fscore
const res = await pay("https://api.s2ar.dev/x402/v1/score?form=haiku&text=An+old+silent+pond%0AA+frog+jumps+into+the+pond%0ASplash%21+Silence+again");
console.log(await res.json());Example input
{
"form": "haiku",
"text": "An old silent pond\nA frog jumps into the pond\nSplash! Silence again"
}Example output
{
"accepted": true,
"charged_usd": 0.005,
"composite": 0.96,
"form": "haiku",
"ok": true,
"receipt": {
"charter": "https://api.s2ar.dev/charter",
"cost_usd": 0.005,
"determinism": "replayable",
"evidence_hash": "sha256:94abfed2…",
"issued_at": "2026-10-10T00:00:00Z",
"refund_rule": "failed calls are never charged",
"what": "…",
"witnesses": [
"sym"
]
},
"scores": {
"form": 1,
"meter": 0.9,
"rhyme": 1,
"surface": 1
}
}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 |
|---|---|---|---|---|
| 9 min ago | Passed | 402 | 319 ms | $0.005 |
| 4 h ago | Passed | 402 | 115 ms | $0.005 |
| 7 h ago | Passed | 402 | 359 ms | $0.005 |
| 11 h ago | Passed | 402 | 111 ms | $0.005 |
| 14 h ago | Passed | 402 | 377 ms | $0.005 |
| 18 h ago | Passed | 402 | 353 ms | $0.005 |
| 22 h ago | Passed | 402 | 108 ms | $0.005 |
| 25 h ago | Passed | 402 | 323 ms | $0.005 |
| 29 h ago | Passed | 402 | 372 ms | $0.005 |
| 32 h ago | Passed | 402 | 111 ms | $0.005 |
| 38 h ago | Passed | 402 | 108 ms | $0.005 |