The three roles
- Givers buy credits — on a top-up page or as a portable gift code. No account needed.
- Developers own apps. Each app has a wallet and an OpenAI-compatible API key.
- Apps spend credits automatically as they make AI requests.
Credits are held in a double-entry ledger
Every credit in TokenGift lives in an append-only, double-entry ledger. Purchases create funding lots with their own expiry dates; every AI request reserves an estimated amount, then settles for exactly what the request cost. That means:- Balances are always derivable and auditable — no “mystery” deductions.
- The difference between the estimate and the actual cost is returned instantly.
- If a request fails, the full reservation is released. You only pay for what ran.

