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

WhenResultHTTPTimePrice
1 h agoPassed402260 ms$0.003
5 h agoPassed402321 ms$0.003
9 h agoPassed402287 ms$0.003
13 h agoPassed402265 ms$0.003
16 h agoPassed402259 ms$0.003
20 h agoPassed402348 ms$0.003
23 h agoPassed402403 ms$0.003
26 h agoPassed402475 ms$0.003
32 h agoPassed402409 ms$0.003