Payment
The private note
A note is the balance that can pay for calls. On the live path it is a private record of ETH deposited to the zkAPI vault. On this site it is a preview of that record.
One deposit, then proofs
zkAPI separates the payer from the request. You deposit once. After that, the balance is a note that only the holder can spend. The API server can check that a proof is valid and that the note can cover a cap. It is not given the link back to the deposit.
The current vault accounts in native ETH, in whole gwei, with a maximum amount of 2^53 minus 1. The Ethereum Foundation introduction also describes USDC credits. AICrypt follows the pinned deployment. This guide does not guess an address. The address belongs to the deployment manifest, and it must match the circuit, the proving keys, and the server keys before anyone funds it.
What the preview stores
Add credit in Ask and the number increases in local storage. Pick a cap and authorize. The desk writes a local nullifier and remembers the cap. Each reply subtracts its quote from the balance and from the cap remaining.
Clearing the site data clears the note. There is no recovery phrase in the preview, because there is no on chain note to recover. Do not treat the preview balance as funds.
Leaving
On the live vault, the holder can close the note and withdraw. Exit does not depend on the server staying online: the same kind of proof is checked at deposit, at close, and on an escape path. The preview has a settle button that closes the local session. It does not withdraw anything.