LLM prices / Compare
API price comparison · checked Oct 23, 2026
GPT-5 mini vs Claude Haiku 4.5: API price
Short answerGPT-5 mini is the cheaper one: 1,000 chatbot replies cost $1.18 against $3.50 on Claude Haiku 4.5, so Claude Haiku 4.5 costs 2.98x as much. Across our 6 workloads GPT-5 mini is cheaper on 6 and Claude Haiku 4.5 on 0. Standard prices: GPT-5 mini $0.25 / $2, Claude Haiku 4.5 $1 / $5 per 1M input / output tokens, checked Oct 23, 2026.
Cost of the same work
| Workload (1,000 requests) | GPT-5 mini | Claude Haiku 4.5 | Ratio |
|---|---|---|---|
| Chatbot replya 1,500-token prompt (1,000 of it a fixed system prompt) and a 400-token answer | $1.18 | $3.50 | 0.34x |
| Answer from your docs (RAG)6,000 tokens of retrieved context plus the question, a 500-token answer | $2.50 | $8.50 | 0.29x |
| Summarize a long documenta 20,000-token document in, an 800-token summary out | $6.60 | $24.00 | 0.27x |
| Coding agent step40,000 tokens of repo context and history (30,000 of it repeated from the last step), 2,000 out | $14.00 | $50.00 | 0.28x |
| Batch extraction2,000 tokens per record in, 300 tokens of JSON out, sent through the batch API where there is one | $0.55 | $1.75 | 0.31x |
| Long-document Q&Aa 150,000-token contract or codebase in one prompt, a 1,000-token answer | $39.50 | $155 | 0.25x |
Side by side
| Price | GPT-5 mini | Claude Haiku 4.5 |
|---|---|---|
| Input / 1M | $0.25 | $1 |
| Output / 1M | $2 | $5 |
| Cache read / 1M | $0.025 | $0.1 |
| Batch input / output | $0.125 / $1 | $0.5 / $2.5 |
| Long-prompt tier | none listed | none listed |
| Provider | OpenAI | Anthropic |
| Status | listed | listed |
When each one is cheaper
- GPT-5 mini is cheaper or equal on both input and output, so it costs less on every workload at standard prices.
- With caching on a coding-agent step (30,000 of 40,000 input tokens cached): GPT-5 mini $7.25 vs Claude Haiku 4.5 $23.00 per 1,000 steps (0.32x).
- This page compares price only. Which model answers better for your task is a separate question: test both on your own prompts.
Each model in full
Sources
- OpenAI API pricing: https://developers.openai.com/api/docs/pricing, checked Oct 23, 2026.
- Anthropic API pricing: https://platform.claude.com/docs/en/about-claude/pricing, checked Oct 23, 2026.