OpenAI: GPT-4.1 API pricing
$2.00 per 1M input tokens and $8.00 per 1M output tokens on OpenRouter. Context window: 1,047,576 tokens.
$2.00input / 1M tokens
$8.00output / 1M tokens
$0.50cached input / 1M
1023Kcontext
text+image+file->textmodality
What it costs in practice
| Workload | Cost |
|---|---|
| Chatbot: 10,000 messages (1,500 in / 400 out tokens each) | $62.00 |
| RAG: 1,000 queries (8,000 in / 600 out each) | $20.80 |
| Summarize 100 long documents (50,000 in / 1,000 out each) | $10.80 |
Cross-check against the provider's list price
LiteLLM's price map lists gpt-4.1 (openai) at $2.00 in / $8.00 out per 1M tokens. Matches OpenRouter
Price history
No price change recorded since we started tracking on Nov 17, 2026. We check every 6 hours and log every change.
Cheaper alternatives with similar context
Text models with at least 125K context and a lower blended price (75% input, 25% output). Price only, not a quality ranking.
| Model | Input / 1M | Output / 1M | Context |
|---|---|---|---|
| OpenAI: GPT-5.1-Codex-Max | $1.25 | $10.00 | 391K |
| OpenAI: GPT-5.1 | $1.25 | $10.00 | 391K |
| OpenAI: GPT-5.1-Codex | $1.25 | $10.00 | 391K |
| OpenAI: GPT-5 | $1.25 | $10.00 | 391K |
| Google: Gemini 2.5 Pro | $1.25 | $10.00 | 1M |
| Google: Gemini 2.5 Pro Preview 06-05 | $1.25 | $10.00 | 1M |
| Google: Gemini 3.5 Flash | $1.50 | $9.00 | 1M |
| Google: Gemini 4 Hydrogen | $1.50 | $7.50 | 1M |
Source: OpenRouter listing via the public models API · LiteLLM price map (MIT). Prices checked Nov 17, 2026. Model ID openai/gpt-4.1, listed Apr 14, 2025. Report an error.