# SplitFill > A payment layer for shared KV caches. Agents that read the same public document share one prefill. The n-th reader pays C/n, and earlier readers get rebates, so everyone ends near C/N. Payments use x402 v2 (EIP-3009 USDC) on Base. Testnet only: Base Sepolia for payments, Ethereum Sepolia for ENS. Status: the contracts, the gateway and the ENS identity are built and tested. The public gateway behind https://split-fill.vercel.app is not deployed yet, so live purchases are unavailable until it is. Run the whole stack locally with `just market-local`. ## How an agent pays 1. Find the gateway by its ENS name, splitfill.eth. Read its address, endpoint and payment preference from ENS. Refuse any 402 whose payTo differs from the address the name resolves to. 2. GET /v1/pools to find a pool. POST /v1/chat/completions with the header X-SplitFill-Pool. The gateway answers 402 with a quote in the PAYMENT-REQUIRED header. 3. Sign an EIP-3009 USDC authorization for at most the quoted amount. Send it as PAYMENT-SIGNATURE. The gateway settles, answers, and returns a PAYMENT-RESPONSE receipt. 4. If the outcome is unknown (HTTP 503), keep the original signed read and retry it. Do not pay again. 5. Optional: send X-SplitFill-Name with an ENS name. It is shown as verified only if the name lists your account and your signed ENSIP-28 consent is valid. ## Rules the gateway enforces - It overwrites cache_salt and priority and strips kv_transfer_params. Do not send them. - One non-streaming question per request. - Public reader counts are bucketed (0, 1, 2-4, 5-16, 17+) and delayed. - Only public documents are pooled. ## Links - [Agent docs](https://split-fill.vercel.app/docs/): quickstart with curl and Python - [OpenAPI description](https://split-fill.vercel.app/openapi.json): every gateway endpoint - [Live agent directory](https://split-fill.vercel.app/agents/): ENS names, consents and owners, read from Sepolia - [Source](https://github.com/PoulavBhowmick03/SplitFill): the repository - [Agent guide](https://github.com/PoulavBhowmick03/SplitFill/blob/main/AGENTS.md): invariants, interfaces and commands - [Python SDK](https://github.com/PoulavBhowmick03/SplitFill/tree/main/sdk/python): pool IDs, the x402 client and the ENS resolver - [ENS identity](https://github.com/PoulavBhowmick03/SplitFill/blob/main/docs/ens-identity.md): how names, consents and the registry link work ## Optional - [ENS name on Sepolia](https://sepolia.app.ens.domains/splitfill.eth)