81trust / 100

Reliability Curve

by Reliability Curve Points in Weather & location

x402 APIPassing, checked 3 h ago

Reliability diagram points (mean forecast vs hit rate per bin). Call when plotting calibration without a notebook stack. Returns bins with mean_forecast and hit_rate as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

POST https://api.delx.ai/api/v1/x402/reliability-curve

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
6 ms typical, 33 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.delx.ai/api/v1/x402/reliability-curve" \
  -H "content-type: application/json" \
  -d '{"bins":4,"forecasts":[0.1,0.2,0.8,0.9],"outcomes":[0,0,1,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%2Fapi.delx.ai%2Fapi%2Fv1%2Fx402%2Freliability-curve
const res = await pay("https://api.delx.ai/api/v1/x402/reliability-curve", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"bins":4,"forecasts":[0.1,0.2,0.8,0.9],"outcomes":[0,0,1,1]}),
});
console.log(await res.json());

Example input

{
  "bins": 4,
  "forecasts": [
    0.1,
    0.2,
    0.8,
    0.9
  ],
  "outcomes": [
    0,
    0,
    1,
    1
  ]
}

Example output

{
  "points": [
    {
      "bin": 0,
      "hit_rate": 0,
      "mean_forecast": 0.15000000000000002,
      "n": 2
    },
    {
      "bin": 3,
      "hit_rate": 1,
      "mean_forecast": 0.8500000000000001,
      "n": 2
    }
  ],
  "schema": "delx/util-reliability-curve/v1"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed4025 ms$0.001
7 h agoPassed40223 ms$0.001
11 h agoPassed4026 ms$0.001
14 h agoPassed40233 ms$0.001
18 h agoPassed4025 ms$0.001
21 h agoPassed4026 ms$0.001
25 h agoPassed4028 ms$0.001
30 h agoPassed40233 ms$0.001