X402 · Completions
Standard /v1-style chat completions over x402. Pay 0.001 USDC on Base.
price
0.0010 USDC
rail
Base
facilitator
OMNIGATE
method
POST
endpoint https://mcp-x402.onrender.com/x402/chat/completions
payTo 0x5bbd32e0478e49a7540ef2d760e0b0f9aa6328b2
asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
indexed 2026-10-25T20:10:49.000Z
Live 402 challenge
Hits the real endpoint without paying and shows exactly what it demands. Nothing is charged.
Pay from your agent
import { wrapFetchWithPayment } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";
const signer = privateKeyToAccount(process.env.BUYER_PRIVATE_KEY);
const pay = wrapFetchWithPayment(fetch, { schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(signer) }] });
const res = await pay("https://mcp-x402.onrender.com/x402/chat/completions", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({}) });
console.log(await res.json(), res.headers.get("PAYMENT-RESPONSE"));Example output
{
"timestamp": "2026-10-29T04:00:00.000Z",
"model": "claude-sonnet-4-5",
"content": "Hello!",
"usage": {
"input_tokens": 12,
"output_tokens": 3
},
"source": "anthropic",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello!"
},
"finish_reason": "stop"
}
],
"object": "chat.completion"
}