Skip to content
CyberLoop-devPublic

About

๐Ÿช™ Paste a prompt, see tokens and cost before you hit send. ๐Ÿ’ธ Editable price tiers, context-window check, 100% in your browser. Zero dependencies. โšก

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

tokenwise

Live demo License Dependencies

Paste a prompt, see what it will cost before you send it.


โœจ Features

๐Ÿช™ Token estimate Instant estimate plus characters, words and lines
๐Ÿ’ธ Cost per tier Input and output price per 1M tokens, times the number of calls
๐Ÿ“ Context check Tells you when prompt + expected output will not fit a model's window
โœ๏ธ Editable prices Rename tiers and set your own prices, saved in your browser
๐Ÿ”’ Private Your text never leaves the page. No server, no tracking

๐Ÿš€ Quick start

Open the live demo, or run it locally:

git clone https://github.com/CyberLoop-dev/tokenwise.git
cd tokenwise
open index.html   # or just double-click it

No build step. No dependencies.

๐Ÿงฎ How the estimate works

Real tokenizers differ from model to model, so tokenwise uses a transparent rule of thumb:

  • about 4 characters per token for ASCII text
  • about 1.5 characters per token for everything else (Persian, CJK, emoji, ...)

Treat the number as a good ballpark, not an invoice. For exact counts use your provider's own tokenizer or token-counting endpoint.

๐Ÿ’ฐ About the prices

The three tiers that ship with the page are examples, not real price lists. Prices change often, so edit them to match your provider's pricing page. Your changes are stored in localStorage on your device.

๐Ÿ“„ License

MIT

About

๐Ÿช™ Paste a prompt, see tokens and cost before you hit send. ๐Ÿ’ธ Editable price tiers, context-window check, 100% in your browser. Zero dependencies. โšก

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages