Documentation
Learn how to integrate Pay For API into your applications.
Authentication
We don't use traditional API keys. Instead, every request is authenticated by proving you made a payment on the Celo blockchain.
Include these headers in your HTTP request:
- X-Wallet-Address: Your Celo wallet address
- X-Payment-Token: Token symbol (e.g., cUSD)
And include the txHash in your JSON body.
Endpoints
AI Chat Completion
POST /api/chatPrice: 0.001 cUSD
Request Body
{
"message": "Explain quantum computing in simple terms",
"walletAddress": "0x...",
"tokenSymbol": "cUSD",
"txHash": "0x..."
}