OA

GPT-4.1

by OpenAIWebsite
codinglong context

Input

$2.00/MTok

Output

$8.00/MTok

Cached Input

$0.50/MTok

with caching

Batch Input

$1.00/MTok

batch API

Specifications

Context Window

1M context

Max Output

32K tokens

Caching

Supported

Batch API

Supported

Vision

Supported

Tool Use

Supported

Cost Examples

Single chat message

500 input + 300 output tokens

$0.0034/request

Code review

5,000 input + 2,000 output tokens

$0.03/request

Document summary

50,000 input + 1,000 output tokens

$0.11/request

100 requests/day

1,000 input + 500 output × 30 days

$18.00/month

Compare GPT-4.1

See how GPT-4.1 stacks up against o3 and Gemini 3.1 Pro Preview.