GPT-4.1

gpt-4.1-2025-04-14
byOpenAI|Created May 25, 2025
Chat Completions

A flagship large language model from OpenAI, optimized for advanced instruction following, real-world software engineering, and long-context reasoning. Supports a 1 million token context window and outperforms GPT-4o and GPT-4.5 in coding (54.6% SWE-bench Verified), instruction compliance (87.4% IFEval), and multimodal understanding. Tuned for precise code diffs, agent reliability, and high recall in large document contexts, making it ideal for agents, IDE tooling, and enterprise knowledge retrieval.

Pricing

Pay-as-you-go rates for this model. More details can be found here.

Input Tokens (1M)

$1.00

Output Tokens (1M)

$4.00

Capabilities

Input Modalities

Text
Image
File

Output Modalities

Text

Supported Parameters

Available parameters for API requests

Frequency Penalty
Function Call
Functions
Logit Bias
Max Completion Tokens
Parallel Tool Calls
Prediction
Presence Penalty
Response Format
Stop
Temperature
Tool Choice
Tools
Top P
Web Search Options