Live on Base Mainnet

Pay less
for AI.
Smart routing.

We route each request to the cheapest model that meets your quality bar, optimizing continuously across 300+ models. Payments settle gaslessly on Base. Full audit trail.

Mode:
300+ modelsZero gas feesUSDC on Base
OpenAI schema supported— routes to Claude, Gemini, and beyond.
Before
const openai = new OpenAI({
baseURL: 'https://api.openai.com/v1'
});
one change
After — P402
const openai = new OpenAI({
baseURL: 'https://p402.io/api/v2'
});
// Same SDK. Every model. Automatic routing.
Tracelive
req_idreq_7f3a9c12
→ routegemini-2.0-flashcost
→ cost$0.015$0.000398%
→ settletx 0xab2f…c13e✓ Base
→ receiptrcpt_7f3a9c12cached 30s
→ policy✓ mandate okgasless
402
How it works

Up and running in minutes.

0130 seconds

Get your key

Sign up free. Your API key is ready immediately — no credit card, no wallet required to start.

Create Free Account
021 line of code

Swap one URL

Replace your provider base URL. That's it. Your existing OpenAI SDK, same models, same interface.

baseURL: 'https://p402.io/api/v2'
03Automatic

Watch costs drop

P402 routes each request to the optimal model. Every call is logged with cost, latency, and savings. Payments settle on Base.

Run quickstart

Request Inspector

Trace every interaction. Audit every payment.

01

Handshake & Policy

The SDK negotiates A2A handshakes and verifies EIP-712 mandates before emitting a single token.

// 1. Initialize P402 client
const client = new P402Client({ 
  mode: 'balanced',
  policy: 'strict-budget'
});

// 2. Discover & Verify A2A Capability
const target = await client.discover('did:p402:agent-alpha');

// 3. Execute with Automatic 402 handling
const response = await client.request({
  to: target.id,
  task: 'market-analysis-v2',
  mandate: 'eip712:0x4a2...'
});
SDK v2.0.4 - READY
02

The 402 Exchange

Server Response
HTTP/1.1 402 PAYMENT REQUIRED
X-Payment-Cost: 0.0042 USDC
X-Facilitator-Proof: did:p402:facilitator-1
EIP-712 Signature
{ "domain": { "name": "P402-Router", "version": "1" }, "message": { "cost": "4200", "nonce": "..." }, "signature": "0x82f...a12c" }
Settlement Confirmed
TX: 0x4a1...9b2c
Network: Base L2 (Mainnet)
Status: Finalized

Transparent Economics

Choose the tier that matches your production scale

Experiment

Free

$0
Platform Fee: 1.00%
Get Started
Operate

Pro

$499
Platform Fee: 0.75%
Upgrade
Govern

Enterprise

Custom
Platform Fee: Volume-tiered
Contact Sales
Production Ready

Real Infrastructure
For Real Payments

P402 is live in production with real USDC settlements on Base mainnet. No testnets, no simulations - just working payment infrastructure.

Gasless USDC Payments

Live on Base Mainnet

Users pay zero gas fees with EIP-3009 transferWithAuthorization

100%
Gas Savings
<2 seconds
Settlement Time
1%
Fee Rate

Global Facilitator Network

Production on Cloudflare

Edge deployment across 15 regions with sub-50ms verification

15
Global Regions
<50ms
P95 Latency
99.9%
Uptime SLA

Real-Time Cost Tracking

Dashboard Available

Live cost monitoring, transaction history, and savings analytics

5 seconds
Update Frequency
100%
Cost Transparency
Historical Data

Multisig Treasury Security

Security Hardened

3-of-5 signature requirement with emergency pause capabilities

3 of 5
Required Signatures
Active
Emergency Controls
Complete
Audit Trail

Gasless USDC Payments

Users pay zero gas fees with EIP-3009 transferWithAuthorization

// EIP-3009 Flow
1. User signs authorization (no gas)
2. P402 verifies signature
3. Facilitator executes transfer
4. User receives service instantly
Try Live Demo

Production Infrastructure

$0
Gas Fees for Users
15
Global Edge Regions
99.9%
Uptime Guarantee
3/5
Multisig Security

Built on the A2A Protocol

P402 implements Google's Agent-to-Agent (A2A) Protocol, trusted by leading platforms.

"Ask-AI is excited to collaborate with Google on the A2A protocol, shaping the future of AI interoperability."

Ask-AI
CEO Alon Talmor PhD

"A standardized protocol like A2A will help agents successfully discover, coordinate, and reason with one another to enable richer forms of delegation."

Atlassian
Brendan Haire, VP Engineering AI Platform

"We’re enabling Articul8's ModelMesh to treat A2A as a first-class citizen, enabling secure, seamless communication between intelligent agents."

Articul8
Arun Subramaniyan, CEO

"We look forward to enabling Box agents to work with Google Cloud’s agent ecosystem using A2A... empowering organizations to better automate workflows."

Box
Ketan Kittur, VP Product Management

"A2A has the potential to help customers break down silos and securely enable AI agents to work together across systems, teams, and applications."

C3 AI
Nikhil Krishnan, CTO Data Science

"As a pioneer in enterprise multi-agent systems, Cognizant is committed and actively pursuing agent interoperability as a critical requirement."

Cognizant
Babak Hodjat, CTO - AI

"The open A2A protocol ensures seamless, trusted collaboration—even in air-gapped environments—so that businesses can innovate at scale."

Cohere
Autumn Moulder, VP Engineering

"We're excited to see Google Cloud introduce the A2A protocol to streamline the development of sophisticated agentic systems."

Datadog
Yrieix Garnier, VP Product

"Salesforce is leading with A2A standard support to extend our open platform, enabling AI agents to work together seamlessly."

Salesforce
Gary Lerhaupt, VP Product Architecture

"ServiceNow and Google Cloud are collaborating to set a new industry standard for agent-to-agent interoperability."

ServiceNow
Pat Casey, CTO

"Establishing an industry standard for seamless agent-to-agent communication is a significant step towards a future in which AI agents and humans collaborate."

UiPath
Graham Sheldon, CPO

"Combining MongoDB with A2A lets businesses unlock new possibilities across industries to redefine the future of AI applications."

MongoDB
Andrew Davidson, SVP Products

"PayPal supports Google Cloud’s A2A protocol, which represents a new way for developers and merchants to create next-generation commerce experiences."

PayPal
Prakhar Mehrotra, SVP AI

Disclaimer: These companies use the A2A protocol that P402 is built upon. Quotes shown represent support for the A2A ecosystem, not endorsements of P402.

A distribution loop tied to discovery.

Bazaar is the discovery layer for payable endpoints. Router adds runtime signals so buyers pick endpoints using real health and policy outcomes.

Listing metadataRuntime healthPolicy outcomes
Join Bazaar Waitlist
Bazaar Overlay Preview
Approval Rate
98.2%
p95 Verify
42ms
p95 Settle
310ms
Last Seen
12s ago
exact, USDC, eip155:8453
Free to start. No credit card.

Start routing
in minutes.

One endpoint. 300+ models. Automatic cost savings. Gasless payments on Base.

P402 | AI Payment Router for Agent Commerce