OpenAI: gpt-4.1 API
gpt-4.1 is the flagship variant of OpenAI's GPT-4.1 family, officially designated as the "Smartest non-reasoning model." It marks a significant advancement over GPT-4o, with substantial improvements in coding reliability and instruction-following precision. Its standout technical breakthrough is the 1-million-token context window, enabling the processing of entire monorepos, extensive legal documents, or massive event logs in a single pass. The model is trained for high "literal adherence," following complex formatting and logic far more accurately than its predecessors. It also introduces optimized code-diffing capabilities, allowing for precise edits that reduce both cost and latency for developers.
- Context window: 1,047,576 tokens
- Max output: 32,768 tokens
- Input: text, image
- Output: text
- Tool calling: Supported
- File input: Supported
- Released: 2025-04-14
- Knowledge cutoff: 2024-05-31
Frequently Asked Questions
What is the context window of gpt-4.1?
gpt-4.1 supports a context window of up to 1,047,576 tokens.
Does gpt-4.1 support function calling?
Yes. gpt-4.1 supports tool / function calling.
What is the knowledge cutoff of gpt-4.1?
The knowledge cutoff of gpt-4.1 is 2024-05-31.