OpenAI logo

OpenAI: GPT-4.1

openai/gpt-4.1

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...

Modalities

ImageTextFiles / PDFText

In / out price

$2 / $8 per 1M

Context

1.05M

Released

Apr 14, 2025

Why use GPT-4.1

  • Understands images
  • Reads PDFs and other files
  • Tool and function calling (agent-ready)
  • Structured (JSON) outputs
  • Very long context: whole books or codebases in one prompt

Pricing

Input$2 / 1M tokens
Output$8 / 1M tokens
Cached input (read)$0.5 / 1M tokens

List prices via OpenRouter, checked daily. Real cost depends on the provider and on reasoning tokens.

Cost calculator

Pick a task, set how often you run it, and compare what it costs on each model.

ModelPer runPer monthPer 1,000 runs
OpenAI: GPT-4.1$0.018$17.60$17.60

Estimates from list prices via OpenRouter; real bills vary by provider and reasoning tokens.

Will it fit? Context window simulator

Each square is about one page (500 words). Colored squares are your content; grey squares are free space in the model's context window.

Your content

  • Novel (90,000 words)

Total: about 120,000 tokens (≈ 90,226 words). Token counts are estimates.

Models

OpenAI: GPT-4.1

1,047,576 tokens ≈ 1,576 pages

Fits: uses 11% of the window (room for 8× this much).

Write with the best model for the job

WordGPT picks and switches models for you: drafting, editing and files in one place. Free plan, no credit card.

Try it free

More from OpenAI