Payment Methods Overview
| Method | Description | Best For |
|---|---|---|
| Payment Callback | SDK invokes callback when payment needed | Most applications |
| Auto-Pay (Agent Key) | Automatic payments via X-Agent-Key | Autonomous agents |
| Pre-paid | Payment made before request | Batch operations |
Payment Callback
The recommended approach for most applications. The SDK handles the entire flow automatically:Quote Structure
The quote object contains all payment details:Auto-Pay (Agent Key)
When using an Agent Key (an App Key withPay permission), payments are handled automatically by the broker — no callback needed:
Pre-paid Transaction
For scenarios where you’ve already made the payment, pass the payment proof via the callback:Wallet Integration Example
The payment callback is wallet-agnostic. You provide a function that processes the quote and returns a payment result:Next Steps
PriceIndex
Value-based payment model
Paid Reads
HTTP 402 for read operations