Skip to content
benchline
ToolsMCPAbout
benchline

82 tools for people who ship the web. 70 run entirely in your browser. No account, no upload.

All tools operational

Tools

All toolsllms.txt generatorAI SEO checkerOG image generatorJWT decoder

Categories

All categoriesDeveloperData & FormatsSEO & AI SearchImage & MediaPDF & Documents

For agents

MCP setupAI accessllms.txtllms-full.txtOpenAPI

Benchline

AboutFounderPrivacyGitHubSitemap

benchline

© 2026 Benchline. Built by Waseem Anjum. MIT licensed.Built for the browser, callable over MCP.
  1. Tools
  2. SEO & AI Search
  3. AI dev
  4. AI token counter

AI token counter

Count tokens and estimate the API cost of a prompt for GPT, Claude, and Gemini models.

Runs in your browser
Use via MCP

MCP

Use this tool from your agent

Add the server once, then ask for the job in plain words. No key.

Setup guideAll MCP tools

Tool name

count_tokens

Endpoint

https://benchline.fabwaseem.com/mcp
Auth
None
Rate
60 / min
  1. 1Add the server config for your client.
  2. 2Ask your agent to run count_tokens, or describe the job.
  3. 3Or send the tools/call request yourself.
~/.cursor/mcp.jsonjson
1{
2 "mcpServers": {
3 "benchline": {
4 "url": "https://benchline.fabwaseem.com/mcp"
5 }
6 }
7}
tools/call requestjson
1{
2 "jsonrpc": "2.0",
3 "id": 1,
4 "method": "tools/call",
5 "params": {
6 "name": "count_tokens",
7 "arguments": {
8 "text": "example",
9 "encoding": "o200k",
10 "modelIds": [
11 "gpt-6.1-sol",
12 "claude-sonnet-5-5",
13 "gemini-4-argon"
14 ],
15 "outputTokens": 0,
16 "cachedRatio": 0,
17 "requestsPerDay": 0
18 }
19 }
20}

Next

Related tools

  • JSON-LD schema generatorFill a form, get valid schema.org JSON-LD for Article, FAQ, Product, Organization, and more.SEOMCPNew
  • llms.txt generatorRead a public sitemap and write an llms.txt index, plus an optional llms-full.txt.AI searchMCP
  • JWT decoderPaste a JSON Web Token, read the claims, and verify the signature in the browser.Auth debuggingMCP
  • Cron expression builderBuild or paste a cron schedule, read it in plain English, and see the next run times.CronMCPNew

Guide

How it works

Free LLM token counter and API cost calculator. Paste text to count tokens with OpenAI's tokenizers and estimate input and output cost across GPT, Claude, Gemini, and other models.
  1. 1Paste your prompt or fileDrop a .txt, .md, or .json file, or paste the prompt. The count updates in the browser.
  2. 2Pick models and expected outputChoose the models to compare, set the output tokens you expect back, and the cached-input share.
  3. 3Compare cost per request and per monthThe table prices input and output separately. Copy it as markdown when you want to keep the estimate.

FAQ

Questions people ask

o200k_basecl100k_baseMore

Prompt

Nothing is uploaded. The tokenizer runs in a worker.

Drop a .txt, .md, or .json file
0Tokens
81Characters
16Words
0

Cost

Estimated model cost
ModelRequestMonth

GPT-6 Astra

$0.03$75.00

GPT-6.1 Sol

$0.0050$15.00

GPT-6 Luna

$0.0003$0.75

Claude Fable 5.1

estimate ≈ o200k ·

$0.03$75.00

Claude Opus 5.5

estimate ≈ o200k ·

$0.01$30.00

Claude, Gemini, and other non-OpenAI counts are o200k estimates. Prices checked 2026-10-16.

0 tokens · o200k_base⌘⇧C copy table · esc clear