Guides: choosing, testing and paying for AI models
Free tools
- Token counter (OpenAI tokenizer), with what your prompt costs on 25 models
Free token counter: paste a prompt to count its tokens with OpenAI's o200k_base tokenizer, right in your browser, and see what it costs per request and per month on 25 models.
Choose, switch and retire models
- GPT-4o API retirement (January 14, 2027): what to switch to and how to test it
OpenAI shuts down GPT-4o, GPT-4o mini, GPT-4.1 and GPT-4.1 mini in the API on January 14, 2027. Which model OpenAI recommends, what happens after, and how to test a replacement on your prompts first.
- AI model deprecations: OpenAI, Anthropic and Google rules and upcoming dates
How much notice OpenAI, Anthropic and Google give before retiring an API model, what deprecated, legacy, retired and shutdown mean, what happens to your calls after, and the upcoming dates (December 2026).
- How to compare AI models on your own prompts
Leaderboards can't tell you which AI model is best for your product. A step-by-step method to compare models on your real prompts: pass rate, cost per 1,000 runs and latency, with a table you can copy.
- LLM as a judge: how to write rules that hold up
What LLM-as-a-judge evaluation is, when to use it instead of exact checks, how to write judge rules that give consistent pass/fail answers, and the known biases to guard against.
- How to evaluate an LLM for your product (a practical checklist)
LLM evaluation for teams shipping AI features: what to measure, which metrics are worth it, how to test prompts across models, and the tools available, from a spreadsheet to eval frameworks.
- Build a test set (golden dataset) from your real prompts
How to build a golden dataset for testing LLM prompts and models: where to get real prompts, how many you need, what to include, how to write the expected result, and how to keep it private.
- LLM leaderboards and benchmarks: what they tell you and what they don't
How LLM leaderboards and benchmarks work (human votes, standard tests, price and speed trackers), what they are good for when choosing an API model, and why they can't replace a test on your own prompts.
Cost and speed
- LLM API pricing compared: price per million tokens (December 2026)
API prices of 25 current models from OpenAI, Anthropic, Google, xAI, Mistral, DeepSeek, Qwen and others, per million input and output tokens and per 1,000 typical requests. Plus why the cheapest list price isn't always the cheapest model for you.
- LLM API cost calculator: cost per request, per 1,000 runs and per month
Calculate what an LLM API costs for your prompts: the formula, a calculator for any model's price per million tokens, how to get real token counts, and what makes the bill differ from the estimate.
- Same open model, different providers: price, speed and quality differences
Why the same open-weight model costs and performs differently across inference providers and on OpenRouter, what quantization and context limits change, and how to pick a provider for your prompts.
- LLM latency: how to measure median, p95 and time to first token
Which LLM latency numbers matter (time to first token, tokens per second, total time, p95), how to measure them on your own prompts, and what makes an LLM API faster.
- Choosing the AI model in n8n: OpenAI, Anthropic, Gemini or OpenRouter
How model choice works in n8n AI workflows (chat model sub-nodes, OpenRouter for many labs with one key), how to switch models safely, and how to test a cheaper model on your workflow's real inputs.
API pricing by lab
- OpenAI API pricing explained (December 2026): GPT-6 models, discounts and real cost
OpenAI API prices per million tokens for GPT-6.2, GPT-6.1, GPT-6 Luna, GPT-5.x and older models, with cached input, batch, flex, fast tiers and long-context rates, cost per 1,000 requests, and which models are being shut down.
- Claude API pricing explained (December 2026): Fable, Opus, Sonnet and Haiku
Anthropic Claude API prices per million tokens for Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5 and older models, with prompt caching, batch, fast mode and long-context rules, and cost per 1,000 requests.
- Gemini API pricing explained (December 2026): Gemini 4, Flash and the free tier
Google Gemini API prices per million tokens for Gemini 4 Carbon, Argon, Neon, Hydrogen and the Flash models, the January 2027 Flash price change, batch, priority, caching and free tier, and cost per 1,000 requests.
- DeepSeek API pricing explained (December 2026): Flash, V4 Pro and off-peak rates
DeepSeek API prices per million tokens for deepseek-flash (V4.1 Flash) and deepseek-v4-pro, cache hit vs miss, the off-peak half-price hours, cost per 1,000 requests, and DeepSeek through other providers.
- Grok API pricing explained (December 2026): Grok 4.7, 4.6, 4.3 and long prompts
xAI Grok API prices per million tokens for grok-4.7, grok-4.6, grok-4.5, grok-4.3 and grok-4.20, cached input, the 200K-token long-prompt rule, and cost per 1,000 requests.