80trust / 100
X402 Router Route
by Tenjin in AI models & inference
x402 APIPassing, checked 1 h ago
Tenjin's tool router. Send a turn's bounded conversation packet, or a one-line query, and get which pay-per-call x402 service fits the step, if any, with its spec to fill and pay yourself. $0.003 per answer from a completed routing gate; an answer made without one settles at $0. batch-settlement only. Agent guide: https://tenjin.sh/llms.txt
POST https://tenjin.sh/api/x402-router/route
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 321 ms typical, 409 ms slowest 5%
- Last check
- 1 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://tenjin.sh/api/x402-router/route" \
-H "content-type: application/json" \
-d '{"accepts":["discovered","spec"],"query":"current BTC and ETH prices in USD","schemaVersion":1}'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%2Ftenjin.sh%2Fapi%2Fx402-router%2Froute
const res = await pay("https://tenjin.sh/api/x402-router/route", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"accepts":["discovered","spec"],"query":"current BTC and ETH prices in USD","schemaVersion":1}),
});
console.log(await res.json());Example input
{
"accepts": [
"discovered",
"spec"
],
"query": "current BTC and ETH prices in USD",
"schemaVersion": 1
}Example output
{
"decision": {
"action": "native",
"diagnostics": {
"missing": [],
"nextAction": "Answer with the host assistant and its own tools; no paid capability fits this step.",
"reasonCode": "native_sufficient",
"stage": "capability"
},
"reason": "The host assistant and its own tools are enough for this step."
},
"jev": {
"calls": 1,
"latencyMs": 420
},
"routerVersion": "2026-10-02.3",
"schemaVersion": 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 |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 260 ms | $0.003 |
| 5 h ago | Passed | 402 | 321 ms | $0.003 |
| 9 h ago | Passed | 402 | 287 ms | $0.003 |
| 13 h ago | Passed | 402 | 265 ms | $0.003 |
| 16 h ago | Passed | 402 | 259 ms | $0.003 |
| 20 h ago | Passed | 402 | 348 ms | $0.003 |
| 23 h ago | Passed | 402 | 403 ms | $0.003 |
| 26 h ago | Passed | 402 | 475 ms | $0.003 |
| 32 h ago | Passed | 402 | 409 ms | $0.003 |