Buy one result with automatic x402 payment

There is no signup or API key. Your x402 client sends the request, reads the HTTP 402 challenge, authorizes the exact USDC price, and retries automatically.

Node.js

npm install @x402/fetch @x402/evm viem
import { x402Client, wrapFetchWithPayment } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY);
const client = new x402Client();
registerExactEvmScheme(client, { signer });
const paidFetch = wrapFetchWithPayment(fetch, client);

const response = await paidFetch("https://temporary-instant-tempest-4a1g1wu.vercel.app/v1/diagnose-and-fix", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({ log: "npm ERR! code ERESOLVE", step_name: "npm install" }),
});
console.log(await response.json());

Wallet safety: keep the buyer private key in the buyer's environment. This API never needs or receives it. Start with the free demo, and inspect exact prices at /api/pricing.

Agent discovery

Machine clients can read /.well-known/x402, /openapi.json, or /agents.txt. Agent402's external router can also match natural-language CI tasks to these endpoints.

Protocol reference: official x402 buyer quickstart.