Skip to content
SkilledDragonEngineering Intelligence
MinilabKeylessOctober 21, 2026

OtpsLedger logs cost and tokens per second for each Claude call to price Fast Mode

OtpsLedger records cost, speed tier and output tokens per second for every Anthropic Messages call, then works out when Fast Mode pays. Prices are verified; every speed in the keyless demo is synthetic.

By David Discua

Measured in the lab

15/15
price rows verified
41
calls in the keyless demo
2
failed calls recorded
0
live Anthropic calls measured
Opus 5.5 standard$ per MTok output20
Opus 5.5 fast$ per MTok output40
Opus 5 standard$ per MTok output25
Opus 5 fast$ per MTok output50
  • 15 of 15 quoted price rows and fast-mode sentences found on the live pages
  • SDK fetch wrapper and local proxy both write the same ledger rows
  • 400 errors for fast on an unsupported model are recorded, not dropped
  • a test asserts prompt text never reaches a ledger row
  • BigQuery and Stripe sinks stay dry-run unless you opt in

From reports/otpsledger.json · run on October 21, 2026. keyless demo against a local mock with synthetic timing profiles; prices from prices/anthropic.json, verified against the official pages on October 21, 2026; no live Anthropic call measured

How it is wired

requestforwardrow per callYour appSDK or any clientOtpsLedgerfetch wrap or proxyMessages APIspeed: fastLedgerJSONL + SQLite

01/03Your app calls the Messages API through the SDK or any client.

Anthropic's Fast Mode (speed: "fast") runs the same model at up to 2.5x the output tokens per second, at twice the standard rate on every model that has it. OtpsLedger wraps the official SDK's fetch, or runs as a local proxy for any client, and writes one ledger row per call with the speed tier, usage block, time to first token, output tokens per second and computed cost. Its report divides the fast premium by the waiting time saved and gives you a break-even dollars per hour for each model. The keyless demo proves the pipeline from SDK and proxy to ledger to report. The catch is that no live Anthropic call was measured, so every speed in it is synthetic and only the prices are real.

The catch

The demo runs against a local mock with made-up timing profiles labelled "mock profile A" through "E", so no real model id sits next to a made-up speed. Its numbers show what the report looks like, and they say nothing about how fast any Claude model is. The live test did not run in this lab. That means usage.speed on real streaming responses is taken from the docs and SDK types, not observed. Server-tool charges and Managed Agents runtime are not priced, only tokens. The Stripe meter adapter was only ever sent to a local mock, and the BigQuery sink uses your bq CLI login.

What we ran (keyless)

bun install --frozen-lockfile
bun run otpsledger demo
bun run prices:verify
bun run report

The real part is the price table, from prices/anthropic.json, checked against Anthropic's pricing and fast-mode pages on October 21, 2026. All 15 quoted rows and sentences were found (reports/prices-verify.json).

ModelStandard in / out ($/MTok)Fast in / out ($/MTok)Fast needs beta header
claude-opus-5-5$4 / $20$8 / $40no
claude-opus-5$5 / $25$10 / $50fast-mode-2026-02-01
claude-opus-4-8$5 / $25$10 / $50fast-mode-2026-02-01
claude-sonnet-5-5$2 / $10not offeredn/a
claude-haiku-5-5$0.1 / $0.5not offeredn/a

The example report comes from reports/otpsledger.json, run on October 21, 2026. It covers 41 calls to the mock, 39 priced and 2 deliberate failures, with waiting time valued at $100 an hour. Speeds are synthetic and prices are real:

Mock profileOTPS standardOTPS fastGainPremium / callBreak-even $/h
mock profile A56.9136.82.40x$0.00325$8.37
mock profile B51.093.71.84x$0.00431$12.11
mock profile C56.889.91.58x$0.00461$16.58

The two failures are 400 invalid_request_error responses to fast-mode requests on profiles B and D, and the ledger keeps them as rows. The whole run cost $0.2271 at real prices for the synthetic token counts, of which $0.0730 was fast-mode premium.

How it is wired

src/observe.ts tees the response stream, times the first token and the generation, and merges the usage blocks. createLedgerFetch drops into new Anthropic({ fetch }), and otpsledger proxy does the same for any client through ANTHROPIC_BASE_URL. Rows hold model, speed, token counts, timings, status and cost, never prompts, completions, headers or keys. Break-even compares each fast call with the same output at your median standard speed, plus the time-to-first-token difference. Requests at different speeds do not share cached prefixes, per the fast-mode docs.

Minilab (open source)

OtpsLedger wraps anthropics/anthropic-sdk-typescript (2,150 stars, Apache-2.0, TypeScript, as of October 24, 2026). Point the wrapper or proxy at your own traffic, then run bun run otpsledger report --ledger .otpsledger/ledger.jsonl --value-per-hour 120 --out reports/ with the hourly value that fits your team to get your own speeds and break-even. Run bun run prices:verify before trusting the price table on a later date.

Run it yourself

SkilledDragonCorp/otpsledger

Clone, install and run the report with no API keys. The numbers above are what that run writes.

bun install --frozen-lockfile && bun run otpsledger demo

SkilledDragon is not affiliated with Anthropic, Stripe or Google. Mock profiles A to E are made-up timing settings, not Anthropic models, and their speeds are not measurements. Prices come from Anthropic's public docs; re-check them before relying on them. Marks belong to their owners.

All labs