81trust / 100

Decide

by decision-questions in Onchain & crypto

x402 APIPassing, checked 5 h ago

Ask up to 20 typed yes/no, multiple-choice or ordinal-scale questions about one shared piece of context in a single call - each answered with a real probability (Jev decision primitives), not generated text. Powered by Jev (TypeSafe System One). $0.001 per call, no OpenRouter or TypeSafe account needed. Try GET /decide/sample.

POST https://x402.agentindex.world/decide

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://x402.agentindex.world/decide" \
  -H "content-type: application/json" \
  -d '{"questions":{"is_bug":{"criteria":{"false":"The customer is asking a question or requesting a feature.","true":"The customer describes broken or unexpected behavior."},"instructions":"Is the customer reporting a software defect?","type":"noul"}},"state":"A customer wrote: 'The app crashed when I tried to upload a photo larger than 10MB, and I have already been charged for premium.'"}'
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%2Fx402.agentindex.world%2Fdecide
const res = await pay("https://x402.agentindex.world/decide", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"questions":{"is_bug":{"criteria":{"false":"The customer is asking a question or requesting a feature.","true":"The customer describes broken or unexpected behavior."},"instructions":"Is the customer reporting a software defect?","type":"noul"}},"state":"A customer wrote: 'The app crashed when I tried to upload a photo larger than 10MB, and I have already been charged for premium.'"}),
});
console.log(await res.json());

Example input

{
  "questions": {
    "is_bug": {
      "criteria": {
        "false": "The customer is asking a question or requesting a feature.",
        "true": "The customer describes broken or unexpected behavior."
      },
      "instructions": "Is the customer reporting a software defect?",
      "type": "noul"
    }
  },
  "state": "A customer wrote: 'The app crashed when I tried to upload a photo larger than 10MB, and I have already been charged for premium.'"
}

Example output

{
  "answers": {
    "is_bug": {
      "noul": 0.96,
      "type": "noul"
    }
  },
  "x402_receipt": {
    "latency_ms": 468,
    "model_served": "jev",
    "price_paid_usdc": 0,
    "upstream": "decision"
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed402131 ms$0.001