GPT-4.1

OpenAIFlagship

OpenAI flagship model with improved instruction following, coding, and long-context performance.

Pricing

Input (per 1M tokens)
$2.00
Output (per 1M tokens)
$8.00

Cost Examples

ScenarioCost
100 chat messages (500 in / 200 out each)$0.2600
1K API calls (2K in / 500 out each)$8.0000
10K short requests (200 in / 100 out each)$12.0000
1M tokens input + 100K output$2.8000

Capabilities

Context Window
1.0M
Max Output
33K
Speed
80 tok/s
Released
2025-04-14
YesVision
YesTool Use
YesStreaming
YesJSON Mode

API Details

Model IDgpt-4.1
API Endpointhttps://api.openai.com/v1/chat/completions
Last Updated2026-04-12

Other OpenAI Models

Open Cost Calculatorto compare GPT-4.1 costs with other models