LLM cost calculator
CalculatorQuestions and answers

Which AI model should you use, and what does it cost?

Questions and answers by Ali Ameen. Updated 14 October 2026.

Which is the best AI model for TypeScript coding?

No public benchmark measures TypeScript on its own, so there is no proven single winner. On the Artificial Analysis Intelligence Index, the five top models among the 17 compared here are Claude Opus 5.5 (54), Claude Fable 5.1 (51), GPT-6 Astra (51), GPT-6.1 Sol (50) and Claude Sonnet 5.5 (47). For most TypeScript work, Sonnet 5.5 or GPT-6.1 Sol is the value pick at $2 input and $10 output per million tokens.

Sources: Artificial Analysis leaderboard, Anthropic pricing, OpenAI pricing, Z.ai pricing, Alibaba pricing, Google pricing. Verified 14 October 2026.

Which is the best AI model for frontend coding?

Frontend work has a direct test: Arena's WebDev leaderboard, where people vote on web apps that models build. Reports from September and October 2026 put GPT-6 Astra and Anthropic's Claude Fable 5.1 and Opus 5.5 at the top, trading places between snapshots, so treat the order as unsettled.

Sources: Arena WebDev leaderboard, Anthropic pricing, OpenAI pricing, Z.ai pricing, Alibaba pricing, Google pricing. Verified 14 October 2026.

What is the cheapest AI model that is still good enough?

Three models score between 33 and 42 on the Intelligence Index while charging $0.50 per million output tokens: GLM-5.3-Flash (42), Claude Haiku 5.5 (38) and GPT-6 Luna (33). Sonnet 5.5 scores 47 at $10 output, which is 20 times the price for 5 to 14 more points.

Sources: Artificial Analysis leaderboard, Anthropic pricing, OpenAI pricing, Z.ai pricing, Alibaba pricing, Google pricing. Verified 14 October 2026.

How much does prompt caching save?

A cache read costs 2.5% to 19% of the normal input price, depending on the model, so cached input is 81% to 97.5% cheaper. At a 90% hit rate on Claude Sonnet 5.5, the cached part of each request is 83% cheaper, not 90%, because the 10% of misses pay a 25% write premium.

Sources: Anthropic pricing, OpenAI pricing, Z.ai pricing, Alibaba pricing, Google pricing. Verified 14 October 2026.

Why does AI usage run out so fast when the cache expires?

Anthropic's default cache lasts 5 minutes. After a longer break, the whole conversation is written to the cache again at 125% of the input price instead of read at 5% to 10%. On Sonnet 5.5, that one turn costs 25 times more than a cached turn ($2.50 against $0.10 per million input tokens).

Sources: Anthropic pricing, OpenAI pricing, Z.ai pricing, Alibaba pricing, Google pricing. Verified 14 October 2026.

Which AI model hallucinates the least?

On the Vectara leaderboard, updated 22 September 2026, GPT-6 Sol has the lowest rate in the GPT-6 family at 6.5%, ahead of GPT-6 Astra at 8.7%. Claude's newest models are not on the board yet; the latest Claude entries run from 9.8% (Haiku 4.5) to 12.0% (Opus 4.7). Smaller models score lowest overall, such as GPT-5.4 nano at 3.1% and Gemini 2.5 Flash-Lite at 3.3%.

Sources: Vectara hallucination leaderboard. Verified 14 October 2026.

Is it worth sending simple tasks to a cheaper model?

Yes, when part of the work is simple. Claude Haiku 5.5 charges $0.10 per million input tokens against $2 for Sonnet 5.5, which is 20 times less, and scores 38 against 47 on the Intelligence Index. Classification, extraction and short summaries rarely need the stronger model.

Sources: Artificial Analysis leaderboard, Anthropic pricing, OpenAI pricing, Z.ai pricing, Alibaba pricing, Google pricing. Verified 14 October 2026.

How much does the Batch API save?

Half. Anthropic and OpenAI both list a 50% discount on input and output tokens for the Batch API, in exchange for results that can take up to 24 hours. It suits evaluations, backfills, nightly reports and bulk edits.

Sources: Anthropic pricing, OpenAI pricing, Z.ai pricing, Alibaba pricing, Google pricing. Verified 14 October 2026.

What should an engineering team do first to cut LLM costs?

Make three changes: keep the start of every conversation identical so it caches, compact the conversation after each finished feature, and put a dollar cap on every automated run. In the calculator's example team, caching alone cuts a $5,148 monthly bill to $1,243.

Sources: Anthropic pricing, OpenAI pricing, Z.ai pricing, Alibaba pricing, Google pricing. Verified 14 October 2026.

How much does AI cost per developer per month?

In the calculator's example (12 developers, 150 model calls a day each, 60,000 tokens of history, Sonnet 5.5), the bill is $5,148 a month, or $429 per developer, with no savings measures. With caching, compaction, routing and batching it is $616, or $51 per developer.

Sources: Anthropic pricing, OpenAI pricing, Z.ai pricing, Alibaba pricing, Google pricing. Verified 14 October 2026.

Try the calculator with your own numbers

Last verified 14 October 2026. Prices and rankings change, so check each vendor's page before you rely on a figure. By Ali Ameen.