Overview
x402 enables:- Per-call payments - Pay only for what you use
- Session budgets - Pre-approve a spending limit
- Machine-to-machine - Agents can pay other agents
Payment Header
Include thex-payment header with a signed payment payload:
Session-Based Payments
For multiple calls, use session-based payments:Start Session
Use Session
Include session headers in subsequent requests:Pricing
Prices are in USDC with 6 decimal places (1 USDC = 1,000,000 units).Dynamic Pricing Table
| Operation | Price (USDC) |
|---|---|
| Agent Chat (per call) | $0.01 |
| Tool Execution (light) | $0.001 |
| Tool Execution (heavy) | $0.005 |
| Image Generation | $0.03 |
| Video Generation | $0.15 |
| Workflow Orchestration | $0.01 |
| Memory Operation | $0.001 |
Inference Pricing
Inference costs vary by model. See individual model cards for token pricing.Internal Bypass
For internal service-to-service communication within Compose infrastructure, thex-manowar-internal header with a valid secret bypasses payment verification.