The landscape of artificial intelligence and metered digital services has long operated under an unyielding assumption: every request must carry a verifiable identity. Whether querying a large language model about deeply personal health concerns, querying a blockchain network, or utilizing cloud infrastructure, users are routinely required to tether their activities to a specific account, a billing method, and a permanent transaction history. This established model creates a continuous, searchable trail that ties years of individual prompts and data consumption directly to a real-world identity.
To address this profound privacy challenge, the Open Anonymity Project, in collaboration with the Ethereum Foundation, has officially launched zkAPI on the Ethereum Mainnet. Based on an initial research design published on Ethereum Research by Davide Crapis and Vitalik Buterin, zkAPI introduces a cryptographic breakthrough that completely decouples payment from identity. By leveraging zero-knowledge proofs, the newly deployed protocol allows users to fund metered APIs anonymously, ensuring that service providers can verify payment and deliver responses without ever learning who is asking, what funding source was utilized, or how individual sessions connect to one another.
For years, the trade-offs associated with digital privacy in AI and metered services have been stark and unsatisfactory. Users seeking privacy had virtually no viable options. Paying for queries directly on-chain has traditionally been slow, expensive, and entirely traceable by anyone monitoring the public ledger. Alternatively, users were forced to place blind trust in centralized intermediaries, hoping that payment processors and API providers would securely handle sensitive personal inputs without profiling their habits or retaining logs of their queries. Because AI prompts frequently touch upon intimate aspects of daily life—ranging from medical symptoms and financial anxieties to legal doubts and personal dilemmas—this lack of structural privacy exposes users to significant surveillance risks. Under the legacy paradigm, interacting with modern machine learning tools inherently means surrendering a running transcript of one’s thoughts to whichever corporate entity controls the billing relationship.
The core innovation behind zkAPI is its ability to separate the financial transaction from the conversational or operational interaction. The process begins with a simple, ordinary transaction on the Ethereum network, where a user deposits credits—such as Ethereum or USD Coin—into a designated vault contract. Once this deposit is made, the user’s balance transforms into a private note: a form of digital cash that only the rightful owner can spend, with cryptographic guarantees ensuring that nobody can trace the note back to its original deposit event.
When it comes time to authorize spending for an API request, software running locally on the user’s machine generates a compact zero-knowledge proof. This mathematical proof asserts two vital facts to the service provider: that a valid, funded note covers the cost of the impending operation, and that the specific note has not been spent previously. Remarkably, a single zero-knowledge proof can be configured to cover either a single isolated request or an entire ongoing session of queries. The receiving server can rigorously check the validity of the statement without ever discovering which particular note, deposit, or human being initiated the call. At the payment layer, individual requests do not link back to the user, nor do they link to each other.
Underpinning this mechanism are sophisticated cryptographic primitives that ensure absolute safety alongside strict confidentiality. Deposits are established as commitments within a deep Merkle tree, allowing a zero-knowledge proof to confirm that a given note belongs to the set of valid balances without pointing to any specific entry. Furthermore, every time a spend occurs, the system publishes a unique nullifier—a one-way serial number derived directly from the note’s secret. A user who operates strictly within their funded balance remains entirely unlinkable. However, if a malicious actor attempts to double-spend the same balance, the system instantly produces a duplicate nullifier, exposing the fraudulent attempt without revealing any other details about the user’s identity or history.

The operational architecture of zkAPI is carefully partitioned so that financial verification and content delivery remain mutually isolated. The server handling the monetary mechanics never sees the contents of the user’s queries or responses, while the AI provider delivering the intelligence never learns the billing identity behind the temporary authorization key. The spending cap operates essentially as a secure reservation. Once an authorization key expires, the provider records the total usage for that session in a cryptographically signed receipt, and the server deducts that precise amount from the user’s private note. Because this architecture relies on immutable rules, neither the service provider nor the payment infrastructure can rewrite the billing terms after the fact.
While zkAPI also supports a simpler proxy mode where a relay server forwards requests to the provider, this setup requires the intermediary to observe traffic metadata. To achieve maximum privacy, the runtime-key mode ensures that no payment intermediary ever gains visibility into the data flow. Under the hood, zkAPI proves spending events using Groth16 on the BN254 curve, executes the hashing of commitments and nullifiers via Poseidon, and preserves notes within a Merkle tree that spans 32 levels deep. The server verifies these spend proofs off-chain for efficiency, while the underlying smart contract vault independently verifies the exact same class of proofs during deposits, session closures, and emergency withdrawals, ensuring that users never have to rely blindly on the ongoing honesty of the server.
In practice, the division of knowledge established by zkAPI creates a robust framework for operational privacy. The zkAPI server learns only that a valid payment exists and that a specific dollar amount was consumed during a given session, remaining entirely ignorant of the user’s identity, the content of their prompts, and the source deposit. Conversely, the AI provider processes the user’s prompts and generates responses as required by the model, but remains entirely blind to the identity of the paying party. Meanwhile, the public Ethereum ledger records only high-level cryptographic actions such as deposits, closes, and withdrawals, revealing nothing about what any specific balance was used to purchase.
Although artificial intelligence inference represents the most urgent initial application due to the deeply personal nature of conversational prompts, the underlying client software and smart contract architecture can be readily adapted to front any digital service that operates on a metered billing model. Blockchain applications can utilize the system to fund remote procedure call queries without exposing funding sources. Image and video generation platforms can process compute-intensive jobs while keeping the identities of the creators shielded. Virtual private networks and bandwidth providers can meter time and data connections without tracking individual subscribers. Additionally, autonomous machine-to-machine agents can leverage the protocol to pay for per-task computational services instantly and securely without needing to establish traditional corporate accounts.
Despite these advanced privacy guarantees, the developers emphasize that zkAPI is not a silver bullet and operates within certain inherent boundaries, particularly regarding network metadata and prompt content. On the network layer, a gateway could potentially correlate request patterns if a user continuously sends queries to zkAPI from a stable, unchanging Internet Protocol address. To achieve a higher degree of anonymity, privacy-conscious users are encouraged to route their requests through anonymizing networks like Tor, utilizing a fresh circuit for each distinct session to prevent traffic analysis.
On the content side, individual sessions can still be vulnerable to stylistic re-linking if a user repeatedly inputs the same personal details, distinctive writing styles, recycled conversation histories, or proprietary project documents. When prompt contents remain consistent across multiple sessions, they can inadvertently function as behavioral fingerprints for any entity capable of reading the text. This represents a fundamental privacy-utility tradeoff within conversational computing, as standalone queries are inherently more private but less efficient because they lack historical context. Potential mitigations include leveraging local machine learning models or trusted execution environments to generate requests locally based on shared memory rather than typing prompts manually.
With the official deployment now live on the Ethereum Mainnet, developers and privacy advocates can begin integrating the technology into existing workflows. Open Anonymity has released comprehensive documentation alongside a local gateway build, allowing engineers to point any OpenAI-compatible application directly to the zkAPI infrastructure and begin conducting confidential, unlinked interactions across the decentralized web.
