77trust / 100

Micro Feature Distribution Drift

by Summary feature drift report in AI models & inference

x402 APIPassing, checked 23 min ago

Compare up to 24 public/synthetic feature summaries: mean differences, reference-standardized shifts and variance ratios. Explicitly flags zero reference variance. Counts and variance convention are declared, not verified; not a distribution test or clinical inference. No raw EEG, participant identifiers or full participant signals.

POST https://www.mahastrategies.com/api/v1/micro/feature-distribution-drift

Last 30 days

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed

Uptime
100%
Response time
504 ms typical, 1.7 s slowest 5%
Last check
23 min ago
Next check
in 4 min

How to call it

POST https://www.mahastrategies.com/api/v1/micro/feature-distribution-drift

Each call costs $0.043 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://www.mahastrategies.com/api/v1/micro/feature-distribution-drift
content-type: application/json

{
  "dataClass": "synthetic",
  "features": [
    {
      "current": {
        "count": 100,
        "mean": "5",
        "variance": "8"
      },
      "name": "band-power",
      "reference": {
        "count": 100,
        "mean": "2",
        "variance": "4"
      }
    }
  ],
  "maxStandardizedMeanShift": "1",
  "varianceConvention": "population"
}

Parameters

ParameterTypeRequiredDescription
dataClassstringYes One of: public, synthetic.
featuresarrayYes
maxStandardizedMeanShiftstringYes
varianceConventionstringYes One of: population, sample.

Example response

The provider's example. We can't check it without paying.

{
  "amountBaseUnits": "43000",
  "boundaries": [
    "Public or synthetic inputs only. Caller labels are declarations,…"
  ],
  "inputDigest": "sha256:c39173f5b0424174a53137b2d599aa0e6871a5798923dc742cb7711d6…",
  "offerId": "feature-distribution-drift",
  "receiptDigest": "sha256:827373a1b527c5841c770feceba1c4e005ba335a457ad3ccf542307ac…",
  "result": {
    "dataClass": "synthetic",
    "distributionTestPerformed": false,
    "features": [
      {
        "meanDifference": "3",
        "name": "band-power",
        "standardizedMeanShift": "1.5",
        "state": "mean-shift-flagged",
        "varianceRatio": "2"
      }
    ],
    "participantSignalsIncluded": false,
    "varianceConvention": "population"
  },
  "version": "maha-microproducts/0.1"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.043.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://www.mahastrategies.com/api/v1/micro/feature-distribution-drift' \
  -H 'content-type: application/json' \
  --data-raw '{"dataClass":"synthetic","features":[{"current":{"count":100,"mean":"5","variance":"8"},"name":"band-power","reference":{"count":100,"mean":"2","variance":"4"}}],"maxStandardizedMeanShift":"1","varianceConvention":"population"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://www.mahastrategies.com/api/v1/micro/feature-distribution-drift' \
  -H 'content-type: application/json' \
  --data-raw '{"dataClass":"synthetic","features":[{"current":{"count":100,"mean":"5","variance":"8"},"name":"band-power","reference":{"count":100,"mean":"2","variance":"4"}}],"maxStandardizedMeanShift":"1","varianceConvention":"population"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.043 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.043" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.043 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwww.mahastrategies.com%2Fapi%2Fv1%2Fmicro%2Ffeature-distribution-drift&method=POST
const res = await pay("https://www.mahastrategies.com/api/v1/micro/feature-distribution-drift", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "dataClass": "synthetic",
    "features": [
      {
        "current": {
          "count": 100,
          "mean": "5",
          "variance": "8"
        },
        "name": "band-power",
        "reference": {
          "count": 100,
          "mean": "2",
          "variance": "4"
        }
      }
    ],
    "maxStandardizedMeanShift": "1",
    "varianceConvention": "population"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.043 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.043"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://www.mahastrategies.com/api/v1/micro/feature-distribution-drift",
        json={
            "dataClass": "synthetic",
            "features": [
                {
                    "current": {
                        "count": 100,
                        "mean": "5",
                        "variance": "8",
                    },
                    "name": "band-power",
                    "reference": {
                        "count": 100,
                        "mean": "2",
                        "variance": "4",
                    },
                },
            ],
            "maxStandardizedMeanShift": "1",
            "varianceConvention": "population",
        },
    )
    print(res.status_code, res.text)

Security scan

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

Recent checks

WhenResultHTTPTimePrice
23 min agoPassed402605 ms$0.043
5 h agoPassed402395 ms$0.043
9 h agoPassed402589 ms$0.043
12 h agoPassed402646 ms$0.043
16 h agoPassed4021.7 s$0.043
20 h agoPassed402392 ms$0.043
24 h agoPassed402398 ms$0.043
28 h agoPassed402554 ms$0.043
32 h agoPassed402349 ms$0.043
35 h agoPassed402525 ms$0.043
39 h agoPassed402991 ms$0.043
42 h agoPassed402396 ms$0.043
46 h agoPassed402461 ms$0.043
2 days agoPassed402361 ms$0.043
2 days agoPassed4022.2 s$0.043