← All models

OpenAI: GPT-4.1

openai/gpt-4.1

VisionTool useJSONStreaming

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

Pricing

Input

$2.00 / 1M

Output

$8.00 / 1M

Specs

Context

1,047,576 tokens

Input

image, text, file

Output

text

Knowledge cutoff: 2024-06-30

Released: 2025-04

Supported parameters

max_completion_tokensmax_tokensresponse_formatseedstructured_outputstemperaturetool_choicetoolstop_p