LLM Tools

LLM Tools

Estimate token counts for any text with per-model cost breakdowns across OpenAI, Anthropic, Google, and more. Build multi-turn chat conversations and export as ready-to-run API request JSON for OpenAI, Anthropic, or Gemini. Visually build function/tool-calling JSON schemas for OpenAI or Anthropic tool use.

ModelContextInput costOutput costContext use
openaiGPT-4o
128k
openaiGPT-4o mini
128k
openaiGPT-4 Turbo
128k
openaiGPT-3.5 Turbo
16k
openaio1
200k
openaio1-mini
128k
anthropicClaude Opus 4
200k
anthropicClaude Sonnet 4
200k
anthropicClaude Haiku 4
200k
anthropicClaude 3.5 Sonnet
200k
anthropicClaude 3 Haiku
200k
googleGemini 2.0 Flash
1M
googleGemini 1.5 Pro
2M
googleGemini 1.5 Flash
1M
metaLlama 3.1 70B
128k
metaLlama 3.1 8B
128k
mistralMistral Large
131k
mistralMistral Small
131k

cl100k_base and o200k_base give the exact token count OpenAI's own API would report for that encoding. Non-OpenAI models (Anthropic, Google, Meta, Mistral) use their own tokenizers, so treat counts for those rows as a reasonable approximation rather than an exact match.

LLM Tools

Estimate token counts for any text with per-model cost breakdowns across OpenAI, Anthropic, Google, and more. Build multi-turn chat conversations and export as ready-to-run API request JSON for OpenAI, Anthropic, or Gemini. Visually build function/tool-calling JSON schemas for OpenAI or Anthropic tool use.

Common uses

  • Estimate token count for a system prompt
  • Compare GPT-4o vs Claude cost for a document
  • Build a multi-turn conversation and export as OpenAI JSON
  • Convert a chat to Anthropic Messages API format
  • Build a function-calling JSON schema for an OpenAI tool
  • Generate an Anthropic tool_use input schema

Frequently asked questions

Can I use LLM Tools to estimate token count for a system prompt?

Yes. LLM Tools can estimate token count for a system prompt, directly in your browser.

Can I use LLM Tools to compare GPT-4o vs Claude cost for a document?

Yes. LLM Tools can compare GPT-4o vs Claude cost for a document, directly in your browser.

Can I use LLM Tools to build a multi-turn conversation and export as OpenAI JSON?

Yes. LLM Tools can build a multi-turn conversation and export as OpenAI JSON, directly in your browser.

Is my data uploaded to a server?

No. This tool runs entirely in your browser — your input is processed locally on your device and is never uploaded or stored on a server.