Model cost comparison
One prompt, one expected output length — costed across every model at once. Paste your prompt to auto-count input tokens with a real tokenizer, set the output length, and sort the table to find the cheapest option for your input/output mix.
| Model | Input /1M | Output /1M | Input $ | Output $ | Total / call |
|---|
Cheapest highlighted. Rates as of June 2026 (checked 2026-06-06), standard list prices excluding caching/batch discounts — verify before budgeting. Input counts are exact for OpenAI, estimates elsewhere (same token count is applied to every model for an apples-to-apples comparison).
More free token tools
TokensToken counterPaste text, pick a model, and see exact tokens, characters, and chars/token — every token as a colored chip with its ID.CostLLM API cost calculatorReal token counts → dollar cost, split into input vs output, for the model you pick. Paste text to auto-count input.TokensTokenizer visualizerSee exactly how text splits into tokens, color-coded, with hover to inspect each token's ID and boundaries.TokensContext window checkerPaste a prompt, pick a model, and find out whether it fits the context window — and how many tokens are left.TokensWord ↔ token estimatorQuick two-way converter between word count and token count, with real-tokenizer calibration.ExplainerFrom prompt to outputA clickable pipeline explaining how an LLM turns your prompt into output — tokenization, embeddings, transformer, sampling, and back.