X

X402 Ai Starter · ADD

by X402 Ai Starter

POSTbase-sepolia

$0.005

per call · USDC on base-sepolia

Access to protected content

Endpoint

POST https://x402-ai-starter.vercel.app/api/add

6

Calls / 30d

1

Unique payers / 30d

Sep 7

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402-ai-starter.vercel.app/api/add", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({}),
});
const data = await res.json();
cURL
curl -X POST \
  "https://x402-ai-starter.vercel.app/api/add" \
  -H "Content-Type: application/json" \
  -d '{}' \
  -H "X-PAYMENT: <signed x402 payment>"

Payment details

Pay to0x78397b97e4cc96ddb46fdeae391b05546316a218
AssetUSDC · 0x036cbd53842c5426634e7929541ec2318f3dcf7e
Networksbase-sepolia
Schemesexact

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from X402 Ai Starter & similar services