Use Cases
T402 enables a wide variety of payment scenarios across web services, AI agents, and digital content.
Enable AI agents to pay for APIs autonomously. $0.001 - $0.10 per call.
Charge per-request fees for your API endpoints. $0.01 - $1.00 per request.
Gate content behind micro-payments. $0.10 - $10.00 per item.
Sub-cent payments for any resource. $0.0001 - $0.01 per tx.
Quick Examples
// AI agent pays for API access via MCP
import { t402Client } from "@t402/fetch";
const client = new t402Client();
registerExactEvmScheme(client, { signer });
// Agent pays automatically when accessing paid APIs
const weather = await client.fetch("https://weather-api.com/forecast");
const analysis = await client.fetch("https://ai-analysis.com/process");AI Agent Payments
AI agents need a way to pay for services programmatically. T402 enables autonomous payments through:
- MCP Integration: Claude, GPT, and other AI agents can pay via the Model Context Protocol
- No human intervention: Agents sign and submit payments automatically
- Budget controls: Set spending limits and approval workflows
Typical pricing: $0.001 - $0.10 per API call
Learn more about AI Payments →
API Monetization
Turn any API endpoint into a paid service with a single line of middleware:
- Per-request pricing: Charge exactly what each request is worth
- No subscriptions needed: Users pay only for what they use
- Global payments: Accept USDT/USDC from anywhere in the world
Typical pricing: $0.01 - $1.00 per request
Learn more about API Monetization →
Premium Content Access
Gate articles, media, or downloadable content without subscription fatigue:
- Micro-transactions: Charge $0.10 for an article instead of $10/month
- No account required: Pay with any supported wallet
- Instant access: Content unlocks immediately after payment
Typical pricing: $0.10 - $10.00 per item
Learn more about Content Access →
Micro-Payments
Enable payments as small as fractions of a cent for IoT, data, and compute:
- Sub-cent transactions: Pay $0.0001 for a single data point
- Gasless payments: ERC-4337 enables zero-gas transactions
- High throughput: Process thousands of payments per second
Typical pricing: $0.0001 - $0.01 per transaction
Learn more about Micro-Payments →
Why T402?
| Traditional Payments | T402 |
|---|---|
| Credit card fees (2.9% + $0.30) | Near-zero fees on L2s (~$0.001) |
| KYC/identity verification | Wallet-based, pseudonymous |
| Chargebacks possible | Irreversible settlements |
| Complex integration | Single HTTP header |
| Subscription-only models | Pay-per-use enabled |
| Days to receive funds | Instant settlement |
Network Recommendations
| Use Case | Recommended Network | Why |
|---|---|---|
| AI API calls | Base, Arbitrum | Low fees, fast finality |
| Premium APIs | Base, Ethereum | Wide wallet support |
| Content access | TON, TRON | Large user base in specific regions |
| Micro-payments | Base (gasless) | ERC-4337 for zero-gas UX |
| High-value transactions | Ethereum | Maximum security |
| Cross-chain | Any USDT0 chain | LayerZero bridging |
Implementation Complexity
| Scenario | Effort | Description |
|---|---|---|
| Add payments to existing API | Low | Add middleware, configure routes |
| Build new paid service | Low | Use SDK from scratch |
| Gasless payments | Medium | Set up ERC-4337 infrastructure |
| Cross-chain support | Medium | Configure multiple networks |
| Custom facilitator | High | Deploy and operate facilitator |
Get Started
- Choose your use case from the table above
- Pick an SDK (TypeScript, Python, Go, Java)
- Follow the quickstart to add payments in minutes
Industry Applications
| Industry | Examples |
|---|---|
| AI/ML Services | LLM inference, image generation, embeddings, fine-tuning APIs |
| Data Providers | Market data, weather APIs, geolocation, analytics |
| Gaming | In-game purchases, NFT minting, tournament entries |
| Publishing | Article access, research papers, premium newsletters |
| Developer Tools | CI/CD minutes, cloud functions, database queries |
| Media | Music streaming, video access, podcast premium episodes |
Real-World Examples
| Industry | Example | Pricing Model |
|---|---|---|
| AI/ML | GPT-4 API alternative | $0.002 per 1K tokens |
| Data | Real-time stock prices | $0.001 per quote |
| IoT | Sensor data marketplace | $0.0001 per reading |
| Content | Premium news articles | $0.25 per article |
| Gaming | Loot box purchases | $0.99 per box |
| Dev Tools | Serverless function calls | $0.00001 per invocation |
Benefits by Industry
AI/ML Services: No API key management needed, pay-per-token or pay-per-request pricing, built-in budget controls for AI agents, multi-model marketplace enabled, and cross-provider payments standardized.
Data Providers: Monetize APIs without requiring subscriptions, enable real-time micro-payments for live data, no minimum commitment from users, global reach without traditional payment processors, and instant settlement directly to your wallet.
Content Publishers: A practical alternative to subscription fatigue, readers pay only for what they read, no account creation required, works with any crypto wallet, and typically achieves higher conversion rates than traditional paywalls.
Choosing the Right Approach
- API Service with < $0.01 per call → Micro-Payments + Gasless
- API Service with $0.01 - $1 per call → API Monetization
- API Service with > $1 per call → Premium API
- Content → Content Access
- AI Integration → AI Payments + MCP
Resources
- Protocol Specification - Technical details of the t402 protocol
- Supported Chains - Full list of supported blockchains
- Advanced Configuration - MCP, extensions, and more
- Quick Start - Get started in 5 minutes