Skip to main content

TAP — Token Access Protocol

TAP is a payment protocol for LLM inference. The consumer pays the producer one token at a time through a Solana state channel, and either side can halt at any output-token boundary. Settlement only ever moves USDC for output the consumer actually accepted.

What's in these docs

  • Concepts — why per-response payment is broken, what TAP does about it, and how the protocol fits with x402.
  • Protocol — on-chain instructions, wire format, trust guarantees and adversarial scenarios.
  • SDK — installing the Python SDK and writing your own producer / consumer.
  • Demo — running the reference Gemini-backed producer with the React dashboard against Solana devnet.
  • Whitepaper — the full protocol specification (PDF).

At a glance

Pay-after-delivery APITAP
Consumer trusts producer forFull request value, every requestOne commitment batch (sub-cent)
Producer trusts consumer forNothing (pre-funded accounts)One commitment batch (sub-cent)
Halt mid-responseNoYes, any output-token boundary
Refund unused tokensNoYes, on-chain
Input costPaid as part of the responseLocked at channel open as prepaid_input
SettlementOff-chain billingOne Solana transaction

Status

Reference implementation deployed to Solana devnet. Not audited. Hackathon project (Solana Frontier 2026).