GET pay per call
Tensorust counterfactual search
PubMed sources for a topic, plus the sources that discuss its myths and controversies. Retrieval only, no automatic verdict. Empty searches are free.
- Price per call
- $0.10
- 402 check
- verified 402
- Uptime
- 100% 7d · 100% 30d
- Tried here
- 0 times
Pays via: x402 · USDC on Base to 0x5f2dAb...791696. Payment goes straight to the seller. Tensorust never holds it.
Endpoint: https://tensorust-site.vercel.app/api/counterfactual · docs
Last probe
25 min ago: HTTP 402 in 1218 ms. Valid payment terms.
- $0.1 · exact · Base
Last 6 probes, oldest to newest (green = valid 402):
Try it
One call with no payment, sent from our server. You'll see exactly what your agent sees: usually the 402 and its price.
Code
See the price from a terminal:
# See the price: the bare call answers 402 with terms in PAYMENT-REQUIRED curl -i "https://tensorust-site.vercel.app/api/counterfactual?topic=vitamin%20d"
Pay and call from Node with the x402 client (your agent's own wallet signs; nothing goes through us):
// npm i @x402/core @x402/evm viem
import { x402Client } from "@x402/core/client";
import { x402HTTPClient } from "@x402/core/http";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const signer = privateKeyToAccount(process.env.AGENT_WALLET_KEY); // your agent's own wallet
const client = new x402HTTPClient(new x402Client().register("eip155:*", new ExactEvmScheme(signer)));
const url = "https://tensorust-site.vercel.app/api/counterfactual?topic=vitamin%20d";
const init = {};
let res = await fetch(url, init);
if (res.status === 402) {
const terms = client.getPaymentRequiredResponse((h) => res.headers.get(h), await res.json());
const payment = await client.createPaymentPayload(terms); // signs a USDC transfer straight to the seller
res = await fetch(url, { ...init, headers: { ...(init.headers || {}), ...client.encodePaymentSignatureHeader(payment) } });
}
console.log(res.status, await res.text());