Ethereum Foundation Unveils zkAPI for Private AI Model Payments
The Ethereum Foundation has launched zkAPI, a system that enables users to pay for AI models and metered APIs without revealing their identity. Built in collaboration with the Open Anonymity Project, zkAPI is live on the Ethereum mainnet.
To use zkAPI, users must first deposit tokens such as ETH or USDC into a vault contract on Ethereum, which records the user's balance as a private note. A zero-knowledge proof is then generated to show that the request is backed by a funded note, without revealing which note or deposit funds it.
The zkAPI server checks the zero-knowledge proof and issues a temporary API key with a spending cap. The user can then send their prompts directly to the AI model provider along with the key, and when it expires, the server deducts the usage from the user's private balance.