← All models
O

GPT-4.1

OpenAI

Latest flagship with 1M context window and strong coding/instruction following

Input price$2.00 / 1M tokens
Output price$8.00 / 1M tokens
Context window1M tokens
Last updated2026-04-20

Quick calculator

tokens
tokens
req/day
Per request
$0.006000
Daily
$60.00
Monthly
$1,800.00
per month · 30-day estimate
Yearly
$21,900.00

Tips to reduce cost

  • Use prompt caching to reuse repeated system prompts
  • Trim whitespace and reduce verbose instructions
  • Use a smaller model for classification or routing tasks
  • Batch async requests to get 50% discount (OpenAI/Anthropic)
  • Cache identical requests at the application layer

Similar models from OpenAI

Compared at your current token settings