Use CasesOverview

Use Cases

T402 enables a wide variety of payment scenarios across web services, AI agents, and digital content.

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 PaymentsT402
Credit card fees (2.9% + $0.30)Near-zero fees on L2s (~$0.001)
KYC/identity verificationWallet-based, pseudonymous
Chargebacks possibleIrreversible settlements
Complex integrationSingle HTTP header
Subscription-only modelsPay-per-use enabled
Days to receive fundsInstant settlement

Network Recommendations

Use CaseRecommended NetworkWhy
AI API callsBase, ArbitrumLow fees, fast finality
Premium APIsBase, EthereumWide wallet support
Content accessTON, TRONLarge user base in specific regions
Micro-paymentsBase (gasless)ERC-4337 for zero-gas UX
High-value transactionsEthereumMaximum security
Cross-chainAny USDT0 chainLayerZero bridging

Implementation Complexity

ScenarioEffortDescription
Add payments to existing APILowAdd middleware, configure routes
Build new paid serviceLowUse SDK from scratch
Gasless paymentsMediumSet up ERC-4337 infrastructure
Cross-chain supportMediumConfigure multiple networks
Custom facilitatorHighDeploy and operate facilitator

Get Started

  1. Choose your use case from the table above
  2. Pick an SDK (TypeScript, Python, Go, Java)
  3. Follow the quickstart to add payments in minutes

Quick Start Guide →

Industry Applications

IndustryExamples
AI/ML ServicesLLM inference, image generation, embeddings, fine-tuning APIs
Data ProvidersMarket data, weather APIs, geolocation, analytics
GamingIn-game purchases, NFT minting, tournament entries
PublishingArticle access, research papers, premium newsletters
Developer ToolsCI/CD minutes, cloud functions, database queries
MediaMusic streaming, video access, podcast premium episodes

Real-World Examples

IndustryExamplePricing Model
AI/MLGPT-4 API alternative$0.002 per 1K tokens
DataReal-time stock prices$0.001 per quote
IoTSensor data marketplace$0.0001 per reading
ContentPremium news articles$0.25 per article
GamingLoot box purchases$0.99 per box
Dev ToolsServerless 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

Resources