
FluxPay x402
Real‑time AI & API micropayments using HTTP 402.
AIBuild Onchain FBI
Project links
About this project
The problem it solves
The Problem
- AI APIs need real-time micropayments
- HTTP 402 Payment Required exists since 1997 but never implemented
- Cross-chain payments are complex and expensive
- Trust minimization required for scale
Our Solution
- HTTP 402 Payment Required flow for any API
- Trust-minimized using Avail Nexus unified balances
- OpenRouter integration for AI metering
- Automatic refunds when service fails
Impact
- Enable autonomous agents to pay for AI services
- Democratize API monetization for developers
- Cross-chain settlement without complexity
- Verifiable receipts anchored to blockchain


Challenges we ran into
To be honest i didn't know about the x402 this hackathon is the first place i heard of it
I learned about the x402 and how it works and did my own research on how could i implement this to solve the over paying and build more trust in user abt the blockchain txn and added the new feature refund that detect the over pay done by user to an more that wt they used so it will check the amount of money needed to be paid they it will send the requried amount only the remainings will be sent back to user
About the founder
Building on Base from India
Technologies and tags
JavaScriptHTMLTailwind CSSSolidityReactNode.js