Context compression for LLM agents

One /v1/compress endpoint, a three-mode ladder: deterministic, extractive, verified with an NLI receipt. Billed per call in prepaid USDC on Base. No subscriptions, no token metering, no lock-in.

Get an API key See the ladder
1
endpoint
3
squeeze modes
$0.01
min deposit
100%
deterministic rung 1

The compression ladder

One /v1/compress endpoint, one dial: squeeze_mode. Every mode includes the ones below it. All rungs are model-deterministic: fixed weights, pinned batch and precision, no sampling anywhere.

deterministic
Provable, model-free: JSON-to-delim, comment strip, AST prune. The output is a subset of the input, byte-verifiable by construction. Receipt carries SHA-256 of raw and output text.
extractive
Token-level splice. A calibrated retain/drop classifier keeps the highest-value tokens at your target_ratio. Output is a byte-preserving subset of the input, returned with a fidelity score.
verified
Extractive compression plus an NLI entailment receipt: the response carries a measured posterior that the squeezed text preserves the original meaning, with automatic fallback toward rung 1 when the posterior is low.

The companion utilities (prune, convert, diff, patch, read and friends) remain available as MCP tools on the same billing. The compress ladder is the product.

How it works

No web app, no login, no dashboard. Everything is API-first.

1

Register

Call the register endpoint. Get an API key instantly. No email required.

2

Add credit

Send USDC to your funding address on Base L2. Credits never expire.

3

Configure

Drop your key into any MCP client. Tools appear as standard MCP tools.

4

Pay per call

Each compress call deducts from your balance based on payload size and squeeze mode. HTTP 402 with the estimated cost when you run out.

# Register (or use the form at https://nanotoll.dev/register.html) curl -X POST https://toll.nanotoll.dev/api/v1/register # Compress: deterministic rung (also: extractive, verified) curl -X POST https://macs.nanotoll.dev/api/v1/compress \ -H "Authorization: Bearer ***" \ -d '{"text": "print(\"hello\") # dead comment", "squeeze_mode": "deterministic"}'

Pricing

Prepaid credits, deducted per call. No subscriptions, no minimums.

Start now

How to add credit

We accept USDC on the Base L2 network (Layer 2 on Ethereum). No Stripe, no credit cards.

1

Get a Base-compatible wallet

Any EVM wallet works: Rabby, MetaMask, Rainbow, Frame, or any wallet that supports the Base network. You can also use a hardware wallet (Ledger, Trezor) connected to any of the above.

2

Acquire USDC on Base

USDC is a dollar-pegged stablecoin ($1 = 1 USDC). Get it on Base via:
• Bridge from Ethereum mainnet using the Superbridge or Hop
• Buy directly on a CEX (Coinbase, Binance, Kraken) and withdraw to your wallet on the Base network
• Transfer from another wallet that already holds USDC on Base

3

Send USDC to your funding address

When you register, we generate a unique funding address for your account. Send any amount of USDC to that address on the Base network (chain ID 8453). Do not send on Ethereum mainnet or any other chain — we only credit deposits on Base.

4

Start calling tools

Credits appear after ~12 block confirmations (~25 seconds on Base). Each tool call deducts from your balance. Check your balance anytime:

curl https://toll.nanotoll.dev/api/v1/balance -H "Authorization: Bearer YOUR_KEY"

Important: Only send USDC on the Base network (chain ID 8453). Sending USDC on Ethereum mainnet, Arbitrum, Optimism, or any other chain to your funding address will result in a loss of funds — we cannot credit deposits on other networks.

Roadmap

The tree rung (abstractive squeeze with dependency-parser pruning) and further ladder extensions are in development. Details as they ship.