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. Every request traced, evaluated, and attributed.

Mode:

  • Cost
  • Speed
  • Quality
  • Balanced

300+ models
Zero gas fees
USDC on Base
Live intelligence dashboard

OpenAI schema supported— routes to Claude, Gemini, and beyond.

Before

const openai = new OpenAI({
baseURL: 'https://api.openai.com/v1'
});

After — P402

const openai = new OpenAI({
baseURL: 'https://p402.io/api/v2'
});

// Same SDK. Every model. Automatic routing.

How it works

Up and running in minutes.

Get your key

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

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'

Automatic

Watch costs drop. P402 routes each request to the optimal model. Every request is traced end-to-end — cost vs baseline, latency, quality score, and provider attribution — all live in your Intelligence Layer dashboard.

Average first call: under 5 minutes from landing here.

Install in your environment

REST API / SDK

npm install @p402/sdk

OpenAI-compatible endpoint. Drop-in replacement — change the base URL and API key.

What you get

Six capabilities. One protocol.

  • AI Routing: One OpenAI-compatible endpoint. 300+ models. P402 routes each request to the optimal provider for your cost and quality target — automatically.
  • Payments: EIP-3009 gasless USDC settlement on Base. Receipts for repeat access without re-payment.
  • Escrow: Conditional USDC escrow on Base. Funds lock on-chain, release only on confirmed delivery.
  • Controls: Mandates constrain each agent's spend cryptographically.
  • Orchestration: A2A JSON-RPC 2.0 task protocol with SSE streaming. Live trace for every routing decision.
  • Ecosystem: Publish typed skills. List paid agents on the Bazaar.

Live Routing

P402 selects the optimal model for each call. You write the same OpenAI-compatible code.

Incoming Request

  • Mode: Cost
  • Prompt: "Summarize this legal contract in plain English."
  • Model: claude-opus-4-6 → deepseek-chat
  • Cost: $0.01500 → $0.00041 (97% saved)
  • Request ID: req_3f8a2c91
  • Provider: deepseek
  • Savings: 97%
  • Latency: 412ms

Transparent Economics

Choose the tier that matches your production scale

Experiment

  • Free
    $0
    Platform Fee: 1.00%

Operate

  • Pro
    $499
    Platform Fee: 0.75%

Govern

  • Enterprise
    Custom
    Platform Fee: Volume-tiered

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

Global Facilitator Network

  • Production on Cloudflare
  • Edge deployment across 15 regions with sub-50ms verification

Real-Time Cost Tracking

Dashboard Available

Multisig Treasury Security

3-of-5 signature requirement with emergency pause capabilities.

Built on the A2A Protocol

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

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.

Intelligence Engine

The routing decisions P402 makes are driven by a real-time intelligence layer. Explore the research.

Start routing in minutes.

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