Payper

AI usage billing with x402 payments and verified Hedera settlement.

ETHGlobal MumbaiShipped November 5, 2026 Shipping#ai#payments#privacy
Visit Repo
Payper banner

About

PerPay is a usage-based payment gateway for AI services. Instead of charging a fixed amount before every request, we calculate what a user actually owes from the input and output tokens consumed during AI generation. When a user submits a prompt, PerPay generates and temporarily stores the response, measures the actual usage through Groq, and creates an invoice for the exact amount. The response remains private until the user approves payment through x402 on Hedera. Once the facilitator settles the transaction and the payment is verified, the same stored response is unlocked. We are also building safeguards against duplicate payments, repeated unpaid requests and failed response delivery. Our goal is to make AI payments more transparent, usage-based and verifiable, while keeping the experience simple for users.

How it's made

We are building PerPay using three connected components. The frontend is developed with React and TypeScript, with a focus on making the payment and AI experience simple to use. Our FastAPI gateway connects to Groq, generates responses, records the actual input and output token counts, calculates the usage-based charge and stores responses privately until payment. My part is the TypeScript-based x402 v2 payment integration with Hedera Testnet. We use the exact payment scheme with native HBAR, where the customer authorizes the payment and a compatible facilitator handles verification and settlement. The backend then checks the actual Hedera transaction before allowing the response to be released. We are also implementing invoice tracking, idempotency, replay protection, account restrictions and recovery for failed delivery. SQLite is used for persistent application records where appropriate, and transaction references can be checked through HashScan. Our three-member team is dividing the work across AI gateway, blockchain payments and frontend/dashboard development. We use Hedera Testnet HBAR for payment demonstrations; it does not pay Groq's API costs.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

ShippingLast push 26 days ago

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Alt Agent

Pay-per-inference AI on Hedera. x402 micropayments auto-routed to the cheapest capable model.

AgentPay

AI agents discover, evaluate, and autonomously pay the best AI service using ENS, Graph & Hedera.

AutoVoyage

AI agent plans and books full travel itineraries, paying per-query in HBAR via x402 on Hedera.

ETHOnline 2026Prize winner Quiet#ai-agents#ai