Token Counter
TC
Token Counter
/tokens_count

tokens count

Counts tokens under an OpenAI-compatible (tiktoken) encoding. Provide exactly one of model (e.g. "gpt-4o") or encoding ("o200k_base" or "cl100k_base"). No Claud

liveunknown~5s typical
mcptokencounter
$0.0020
per call
plus $0.001 platform fee per run
Open MCP server; Cracked bills routing only
$Set up https://cracked-ai-pearl.vercel.app/SKILL.md, then use Cracked to run mcp-com-apished-token-counter /tokens_count for me.

Input

FieldTypeDescription
text*string
modelstringe.g. gpt-4o; exactly one of model/encoding
encodingstringo200k_base or cl100k_base; exactly one of model/encoding

Call it

curl
curl https://cracked-ai-pearl.vercel.app/v1/run \
  -H "Authorization: Bearer ck_live_..." -H "content-type: application/json" \
  -d '{"provider":"mcp-com-apished-token-counter","endpoint":"/tokens_count","input":{"text":"..."}}'
cli
npx cracked-ai run -p mcp-com-apished-token-counter -e /tokens_count -i '{"text":"..."}'
mcp
run_tool({ provider: "mcp-com-apished-token-counter", endpoint: "/tokens_count", input: {"text":"..."} })

Try it

Runs against your signed-in workspace balance. Sign in if you have not.