PAYMENT-SIGNATURE), see:
Further reading:
Payment Model Types
Credits-Based
Charge per request or API call. Users purchase credits and consume them with each query.
Time-Based
Subscription access for specific durations. Unlimited usage within the time period.
Dynamic
Variable pricing based on request complexity, token count, or custom metrics.
Hybrid
Combine time-based access with credit limits for balanced monetization.
Credits-Based Plans
Charge users based on actual usage. Each request consumes a configurable number of credits.- TypeScript
- Python
Time-Based Plans
Provide unlimited access for a specific duration. Great for subscription models.- TypeScript
- Python
Dynamic Pricing
Charge variable amounts based on request complexity. The x402max_amount field controls the maximum charge per request.
- TypeScript
- Python
Trial Plans
Offer free trials to attract new users.- TypeScript
- Python
Multi-Tier Pricing
Create multiple plans for different user segments:Payment Currencies
Cryptocurrency (ERC-20)
Accept any ERC-20 token on supported networks:Fiat (Stripe)
Accept credit card payments via Stripe integration:Choosing the Right Model
| Model | Best For | Example |
|---|---|---|
| Credits-based | API calls, queries, transactions | AI chatbot, image generation |
| Time-based | Continuous access, subscriptions | SaaS tools, monitoring |
| Dynamic | Variable workloads, token-based | LLM inference, batch processing |
| Hybrid | Balanced usage with limits | Enterprise subscriptions |