x402 Protocol · USDC Settlement · Solana
Build Agents That Pay for APIs
PincerPay lets AI agents autonomously pay for API access using USDC micropayments. No card rails, no 3% fees — just instant on-chain settlement via the x402 protocol.
How It Works
Step 1
Agent Requests
Agent calls a paid API endpoint like any HTTP request
Step 2
402 Challenge
Server responds with HTTP 402 and a payment payload
Step 3
Agent Pays
Agent signs a USDC payment and resubmits the request
Step 4
Data Delivered
Facilitator settles payment, merchant delivers the data
Automatic Payments
agent.fetch() handles 402 challenges transparently. Your agent just makes HTTP requests — PincerPay handles the rest.
Spending Policies
Set per-request limits and daily budgets. Agents enforce spending policies automatically before signing any payment.
Any Chain
Solana (primary), Base, and Polygon supported. USDC settlement with sub-second finality on Solana.
6 Lines of Code
agent.ts
import { PincerPayAgent } from "@pincerpay/agent";
const agent = await PincerPayAgent.create({
chains: ["solana"],
solanaPrivateKey: process.env.AGENT_SOLANA_KEY,
});
// That's it — agent.fetch handles 402 payments automatically
const data = await agent.fetch("https://api.example.com/weather");