AiCostCompare

GPT-4.1

by OpenAI · openai/gpt-4.1 · #256 cheapest of 325 paid models

Prices updated Jul 22, 2026, 1:31 AM UTC · refreshed hourly

GPT-4.1 is a flagship large language model optimized for advanced instruction following, real-world software engineering, and long-context reasoning. It supports a 1 million token context window and outperforms GPT-4o and...

Compare vs:Claude Sonnet 5Claude Opus 4.6Claude Haiku 4.5Gemini 3.6 Flash

Pricing

Input

$2.00

per 1M tokens

Output

$8.00

per 1M tokens

Blended (3:1)

$3.50

3 input : 1 output

Cache read

$0.50

per 1M cached tokens

Cache write

per 1M tokens

Cache & batch economics

Effective prices for GPT-4.1 with prompt caching.

Cache hit rateEffective blended $/1MExample request*vs no cache
0%$3.50$0.212
50%$2.94$0.137−35%
90%$2.49$0.077−64%

*Example: 100K sticky context + 2K new input + 1K output. Batch discount is an approximate 50% off list rates for this provider’s batch API. Confirm on the vendor’s pricing page.

What a request costs

WorkloadInput tokensOutput tokensCost / requestCost / 1K requests
Short chat message500300$0.0034$3.40
Document summary8,0001,000$0.024$24.00
Codebase question (RAG)30,0002,000$0.076$76.00
Long-context analysis150,0005,000$0.34$340.00

Performance

Intelligence Index

19.4

AA composite quality

Coding Index

Math Index

34.7

Agentic Index

Output speed

149 tok/s

median

Time to first token

0.56s

median

Time to first answer

0.56s

after reasoning tokens

Artificial Analysis benchmarks

BenchmarkScore
MMLU-Pro80.6%
GPQA Diamond66.6%
Humanity's Last Exam4.6%
LiveCodeBench45.7%
SciCode38.1%
MATH-50091.3%
AIME43.7%
AIME 202534.7%
IFBench43.0%
AA-LCR (Long Context Reasoning)61.0%
Terminal-Bench Hard13.6%
τ²-Bench (Telecom)47.1%

Design Arena Elo

CategoryElo
Website1,066
UI components1,043
Data viz1,140
3D908
Game dev1,138
Code categories1,059

Specs

Context window

1.05M

tokens

Max output

33K

tokens

Input modalities

image, text, file

Tokenizer

GPT