g402 is the managed payment layer for the x402 protocol. It brings native, pay-per-use payments to your APIs — under your own domain, not ours. We proxy payments, not traffic. Both clients and servers use Privy-backed wallets — created automatically, secured by design. No key handling, no blockchain setup, no checkout screens.

Most API monetization platforms host your paid endpoints on their domains. g402 runs payment logic under your own DNS, keeping your brand, SSL, and trust chain intact. If your API is api.yourdomain.com, we create g.yourdomain.com — an isolated edge gateway that enforces 402 payments and forwards valid requests upstream. You stay fully in control; we only manage payment negotiation and verification.
| Feature | Hosted Gateways | g402 (Domain-Native) | 
|---|---|---|
| Domain ownership | Third-party | Yours (CNAME / A-record) | 
| Redirects | Yes | None | 
| Wallet management | Manual / user-side | Automatic via Privy (client & server) | 
| Transaction visibility | Limited | Full dashboard control | 
| Lock-in | High | Zero | 


The Client SDK sends a request to g.yourdomain.com and detects x402 requirements.
Gateway checks for valid payment proof or returns structured 402 metadata.
Wallets for both sides are provisioned by Privy — no keys, no UI; BYOW optional.
After verification, the request is proxied to your API and returns normally.
Stay under your own DNS. No third-party URLs, no redirects.
Clients & servers auto-provisioned, no keys, crypto-optional.
Built for autonomous clients and backend agents — no UI needed.
Users can link an external wallet; Privy handles the switch.
Monitor every payment & refund; set caps, budgets, alerts.
Pay-per-use, subscription, or hybrid — per route.
Cloudflare Worker / VM with sub-100 ms latency.
Choose processor and settlement rules; zero lock-in.
To preserve trust, SSL, and latency — enterprise compliance ready. g402 enforces payments without taking over your URL.
No. All wallets are provisioned and secured by Privy — no exposed keys.
Yes. BYOW via Privy — seamless external wallet linking when desired.
No. Payments happen automatically via the SDK; ideal for agent/API calls.
The Dashboard lets you track all txs, spending caps, budgets, and alerts in real time.
Facilitator-dependent and configurable. Set thresholds and AML rules from your Dashboard.
Join thousands of developers building the future of API monetization.