Choosing an LLM by workload

There is no single best model: it depends on your task, your quality bar and your budget. Codeswap does not rank models by quality. This guide shows what each common workload costs on current models, computed from the list prices on the LLM API pricing page (checked 2026-11-12). The token counts are assumptions for a typical call; change them in the cost comparator to match your own traffic, and test quality on your own data before you switch.

Chat assistant turn

Assumed per call: 2,000 input tokens, 500 output tokens. Output tokens usually cost several times more than input, so short, direct answers matter as much as the per-token price. A stable system prompt is a good candidate for prompt caching.

ModelProvider$ per call$ per 1,000 calls
GPT-5 NanoOpenAI $0.00030$0.30
Claude Haiku 5.5Anthropic $0.00045$0.45
GPT-4o MiniOpenAI $0.00060$0.60
GPT-5 MiniOpenAI $0.00150$1.50
Claude Haiku 4.5Anthropic $0.00450$4.50
GPT-5OpenAI $0.00750$7.50
GPT-4.1OpenAI $0.00800$8.00
o3OpenAI $0.00800$8.00
Claude Sonnet 5.5Anthropic $0.00900$9.00
GPT-4oOpenAI $0.01000$10.00
Claude Sonnet 4.6Anthropic $0.01350$13.50
Claude Opus 5.5Anthropic $0.01800$18.00
Claude Opus 4.7Anthropic $0.02250$22.50
Claude Fable 5.2Anthropic $0.03600$36.00

RAG / document Q&A call

Assumed per call: 8,000 input tokens, 400 output tokens. Retrieved chunks make these calls input-heavy, so the input price and cache-hit price dominate. Check that the context window comfortably fits your top-k chunks.

ModelProvider$ per call$ per 1,000 calls
GPT-5 NanoOpenAI $0.00056$0.56
Claude Haiku 5.5Anthropic $0.00100$1.00
GPT-4o MiniOpenAI $0.00144$1.44
GPT-5 MiniOpenAI $0.00280$2.80
Claude Haiku 4.5Anthropic $0.01000$10.00
GPT-5OpenAI $0.01400$14.00
GPT-4.1OpenAI $0.01920$19.20
o3OpenAI $0.01920$19.20
Claude Sonnet 5.5Anthropic $0.02000$20.00
GPT-4oOpenAI $0.02400$24.00
Claude Sonnet 4.6Anthropic $0.03000$30.00
Claude Opus 5.5Anthropic $0.04000$40.00
Claude Opus 4.7Anthropic $0.05000$50.00
Claude Fable 5.2Anthropic $0.08000$80.00

Extraction or classification

Assumed per call: 1,500 input tokens, 150 output tokens. High volume and short outputs: the cheapest model that passes your own accuracy checks usually wins, and batch APIs (where offered) halve the price for non-urgent jobs.

ModelProvider$ per call$ per 1,000 calls
GPT-5 NanoOpenAI $0.00014$0.14
Claude Haiku 5.5Anthropic $0.00023$0.23
GPT-4o MiniOpenAI $0.00032$0.32
GPT-5 MiniOpenAI $0.00068$0.68
Claude Haiku 4.5Anthropic $0.00225$2.25
GPT-5OpenAI $0.00338$3.38
GPT-4.1OpenAI $0.00420$4.20
o3OpenAI $0.00420$4.20
Claude Sonnet 5.5Anthropic $0.00450$4.50
GPT-4oOpenAI $0.00525$5.25
Claude Sonnet 4.6Anthropic $0.00675$6.75
Claude Opus 5.5Anthropic $0.00900$9.00
Claude Opus 4.7Anthropic $0.01125$11.25
Claude Fable 5.2Anthropic $0.01800$18.00

Agent / coding loop step

Assumed per call: 30,000 input tokens, 2,000 output tokens. Each step resends the conversation and tool definitions, so cached input is the main cost lever. Multiply by the number of steps per task, not per request.

ModelProvider$ per call$ per 1,000 calls
GPT-5 NanoOpenAI $0.00230$2.30
Claude Haiku 5.5Anthropic $0.00400$4.00
GPT-4o MiniOpenAI $0.00570$5.70
GPT-5 MiniOpenAI $0.01150$11.50
Claude Haiku 4.5Anthropic $0.04000$40.00
GPT-5OpenAI $0.05750$57.50
GPT-4.1OpenAI $0.07600$76.00
o3OpenAI $0.07600$76.00
Claude Sonnet 5.5Anthropic $0.08000$80.00
GPT-4oOpenAI $0.09500$95.00
Claude Sonnet 4.6Anthropic $0.12000$120.00
Claude Opus 5.5Anthropic $0.16000$160.00
Claude Opus 4.7Anthropic $0.20000$200.00
Claude Fable 5.2Anthropic $0.32000$320.00

Long-document summarization

Assumed per call: 150,000 input tokens, 1,500 output tokens. Only models whose documented context window fits the whole prompt are listed. Watch for long-prompt price tiers (Claude Haiku 5.5 costs more above 100,000 prompt tokens).

ModelProvider$ per call$ per 1,000 calls
Claude Haiku 5.5Anthropic $0.07875$78.75
Claude Haiku 4.5Anthropic $0.15750$157.50
GPT-5OpenAI $0.20250$202.50
Claude Sonnet 5.5Anthropic $0.31500$315.00
Claude Sonnet 4.6Anthropic $0.47250$472.50
Claude Opus 5.5Anthropic $0.63000$630.00
Claude Opus 4.7Anthropic $0.78750$787.50
Claude Fable 5.2Anthropic $1.26000$1,260.00

Models without a documented context window of at least 150,000 tokens on the cited page are left out.

Translation

Assumed per call: 1,000 input tokens, 1,200 output tokens. Output is about as long as the input, so the output price matters most. Quality varies by language pair: test with your own text.

ModelProvider$ per call$ per 1,000 calls
GPT-5 NanoOpenAI $0.00053$0.53
Claude Haiku 5.5Anthropic $0.00070$0.70
GPT-4o MiniOpenAI $0.00087$0.87
GPT-5 MiniOpenAI $0.00265$2.65
Claude Haiku 4.5Anthropic $0.00700$7.00
GPT-4.1OpenAI $0.01160$11.60
o3OpenAI $0.01160$11.60
GPT-5OpenAI $0.01325$13.25
Claude Sonnet 5.5Anthropic $0.01400$14.00
GPT-4oOpenAI $0.01450$14.50
Claude Sonnet 4.6Anthropic $0.02100$21.00
Claude Opus 5.5Anthropic $0.02800$28.00
Claude Opus 4.7Anthropic $0.03500$35.00
Claude Fable 5.2Anthropic $0.05600$56.00

What these tables leave out

  • Quality. A cheaper model that fails your task costs more in retries and review. Run a small evaluation on your own examples.
  • Prompt caching and batch discounts. Both can cut the input bill sharply; see the prompt caching calculator and the batch API savings calculator.
  • Tokenizers. The same text produces different token counts on different models (Claude models from Opus 4.7 on use a newer tokenizer). Count with the multi-model token comparison.