78trust / 100

Buy

by x402joker.com in AI models & inference

x402 APIPassing, checked 1 h ago

Pay-per-joke vending machine: send USDC, get a fresh Claude-generated joke. Optional "theme" picks the topic.

POST https://www.x402joker.com/api/buy

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
350 ms typical, 504 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://www.x402joker.com/api/buy" \
  -H "content-type: application/json" \
  -d '{"theme":{"description":"Optional joke theme. Omit for a surprise joke.","example":"corgis","required":false,"type":"string"}}'
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%2Fwww.x402joker.com%2Fapi%2Fbuy
const res = await pay("https://www.x402joker.com/api/buy", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"theme":{"description":"Optional joke theme. Omit for a surprise joke.","example":"corgis","required":false,"type":"string"}}),
});
console.log(await res.json());

Example input

{
  "theme": {
    "description": "Optional joke theme. Omit for a surprise joke.",
    "example": "corgis",
    "required": false,
    "type": "string"
  }
}

Example output

{
  "joke": "I told my dog he's adopted. He didn't take it well — turns out he already knew, he just hadn't found the right moment to bring it up.",
  "theme": "dogs"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402335 ms$0.01
5 h agoPassed402423 ms$0.01
8 h agoPassed402321 ms$0.01
12 h agoPassed402332 ms$0.01
16 h agoPassed402504 ms$0.01
19 h agoPassed402285 ms$0.01
24 h agoPassed402551 ms$0.01
27 h agoPassed402349 ms$0.01
31 h agoPassed402365 ms$0.01
34 h agoPassed402378 ms$0.01
37 h agoPassed402503 ms$0.01
42 h agoPassed402350 ms$0.01