About Token Workbox

Token Workbox helps prompt engineers and developers count LLM tokens and sketch API cost before they send a request. Paste Markdown or prompts, pick a model, and read tokens plus an estimated USD round-trip cost.

OpenAI models use js-tiktoken for exact local counts. Qwen and GLM use browser Transformers.js tokenizers (Exact after first download). Claude, Gemini, and other open-weight models use a local approximation (labeled Estimate) — not billing-accurate.

Principles

  • Local-first: your text stays on your device
  • Honest accuracy labels (Exact vs Estimate)
  • Markdown-friendly workflows for prompt authors
  • No vendor token-count API round-trips