GPT-4.1 API pricing

OpenAI's 2025 long-context workhorse, still in wide production use.

VisionTool callingPrompt cachingWeb searchPDF input

Input

$2.00

per 1M tokens

Cached input

$0.50

per 1M tokens

Output

$8.00

per 1M tokens

Context window

1M

max output 32K

Prices last synced Aug 20, 2026 from the LiteLLM community price catalog — the same catalog Marginal prices real usage events against, refreshed daily. Hand-checked against the provider's official pricing page on Aug 20, 2026. Spot an error? Tell us.

What would GPT-4.1 cost you?

Enter your workload — add other models to compare the same traffic across providers.

Your monthly workload

Cache hit rate = share of input tokens served from the provider's prompt cache, billed at the model's cached-input price. Estimates use standard per-token rates — batch discounts, service tiers, and long-context surcharges are not applied.

GPT-4.1
ModelInputCached inputOutputPer requestMonthly
GPT-4.1$1,200$200$2,000$0.00680$3,400
Rates used: GPT-4.1 $2.00 in / $8.00 out

More from OpenAI

Tracking GPT-4.1 in production?

Marginal prices every call your app actually makes — cached tokens, dated snapshots, model switches included — and slices spend by customer or feature. One track() call to integrate.