Key Benefits
No API Key
No registration or key management. Your wallet is your identity.
Pay Per Call
Only pay for what you use. Prices start at $0.001 per request.
Agent-Native
Built for AI agents — autonomous payments with no human in the loop.
Gasless Payments
Allium handles onchain settlement. Users only need USDC, not ETH.
How It Works
The x402 protocol uses HTTP status code402 Payment Required to negotiate payments inline with API requests.
Sign payment
Your client constructs and signs an EIP-712 payment authorization via Privy server wallets — no private keys or gas needed.
Settlement
Allium verifies the authorization and settles the USDC payment onchain via Coinbase.
The quickstart shows how to set this up with Privy server wallets in a few lines of Python. You send a request, and the helper handles the payment flow.
Supported Tokens & Networks
x402 payments use USDC on the following networks:| Network | USDC Contract Address | EIP-712 Domain |
|---|---|---|
| Base (mainnet) | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 | name: USD Coin, version: 2 |
| Base Sepolia (testnet) | 0x036CbD53842c5426634e7929541eC2318f3dCF7e | name: USDC, version: 2 |
MCP vs x402
Allium offers two ways for agents to access blockchain data. Choose based on your setup:| MCP | x402 | |
|---|---|---|
| Protocol | Model Context Protocol (tool calls) | REST API with micropayments |
| Auth | OAuth or API key | USDC wallet (Base or Base Sepolia) |
| Best for | AI coding assistants (Claude Code, Cursor) | Autonomous agents, scripts, backends |
| Setup | Add MCP server to your client | Install Python library + fund wallet |
| Billing | Allium account / subscription | Pay-per-call, no account needed |
| Rate limits | Per account plan | 3/s data, 5/s docs (per wallet) |