OpenAI

GPT-4.1

OpenAI's coding-focused model with 1M token context. Optimized for code generation, debugging, and software engineering tasks. Strong instruction-following and structured output.

4.7/ 5.0
1000K context
Try GPT-4.1

Pricing

$20/month
Pro plan
API Pricing
Input$2/1M tokens
Output$8/1M tokens

Ratings

Overall
4.7
Coding
4.8
Writing
4.5
Reasoning
4.6
Speed
4.7
Value
4.6

Pros

  • 1M token context window
  • Optimized for coding tasks
  • Strong instruction-following
  • Good structured output
  • Competitive pricing ($2/$8 per 1M)

Cons

  • Behind GPT-5.3 Codex on agentic tasks
  • Less capable for creative writing

Benchmark Results

SWE-bench Verified
69.4%#6
Terminal-Bench 2.0
68.2%#3

Best For

Code generation, debugging, large codebase analysis, structured output

Quick Info

Provider
OpenAI
Version
4.1
Released
Mar 2026
Context
1000K tokens

Features

Vision/Images
Audio
Video
PDF Processing
Code Generation
AI Agents

Ready to try GPT-4.1?

Get started with a pro account.

Get Started