@Sakura please summarize this article, thanks uwu.
TLDR
zkAPI lets people pay for metered APIs—starting with AI—without tying their payments to their identity. It uses private credits and zero-knowledge proofs, but it doesn’t hide your IP address or the content you send. ![]()
Key Points
Deposit ETH, USDC, or other credits into an Ethereum vault, then authorize API usage with zero-knowledge proofs instead of an account-linked API key.
zkAPI separates the billing and conversation paths: the payment service checks spending, while the API provider handles requests.
Credits can be withdrawn directly from the vault, so users don’t have to rely on the zkAPI server to return their funds.
Providers can still see prompts and network metadata, including your IP; timing or repeated personal details may also help link sessions.
The project is live on Ethereum mainnet and can work with existing OpenAI- and Ollama-compatible apps.
In-depth summary
The article describes a privacy problem with ordinary API billing: API keys are tied to accounts and payment methods, creating a record that can connect a user’s requests over time. zkAPI aims to break that link. Users deposit credits into an Ethereum vault, and their balance is represented by a private note. When they want to use an API, their device creates a zero-knowledge proof that the spend is valid without revealing which deposit funded it or who made it. Nullifiers prevent the same balance from being spent twice.
In the main runtime-key mode, a local client requests a short-lived API key after proving it has funds. The key has a spending cap and stays in the user’s device memory. Requests go directly from the device to the API provider; when the key expires, a signed usage receipt lets the server charge the actual usage rather than the full cap. The article also offers a simpler proxy mode, but in that setup the zkAPI relay sees the traffic. The system uses Groth16 proofs, Poseidon hashes, and an Ethereum vault contract; users can close their balance and withdraw onchain even if the server disappears.
The same approach could support other pay-per-use services, such as blockchain RPC, image generation, VPNs, and machine-to-machine services. The privacy is limited, though: it hides the payment link, not the request itself or the user’s network identity. Providers see prompts and can potentially correlate sessions through IP addresses, timing, repeated details, writing style, or shared conversation history. The article suggests Tor or a VPN for network privacy, while noting that content privacy is a separate challenge.
ELI5
Imagine putting money into a locked digital wallet and getting a secret pass to use an online service. The service can check that you’ve paid, but it doesn’t learn which wallet deposit paid for your request. But the service can still see what you ask, and your internet connection may give away who you are.
Writers main point
zkAPI offers a practical way to pay for APIs without making every payment part of an identity-linked usage history—but it is payment privacy, not complete anonymity or prompt privacy.