OpenAI: gpt-4.1-nano API
gpt-4.1-nano is the most lightweight and cost-efficient variant in OpenAI's GPT-4.1 family. As the first model from OpenAI to carry the "Nano" designation, it is engineered for near-instant latency and high-volume throughput. Its standout feature is the 1-million-token context window, allowing users to process massive datasets or entire code repositories in a single prompt. Despite its small scale, it outperforms GPT-4o mini on core benchmarks and shows significant improvements in literal instruction following. It is ideal for high-speed tasks such as classification, autocomplete, and acting as a pre-processor for long-context retrieval where deep reasoning steps are not required.
- 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-nano?
gpt-4.1-nano supports a context window of up to 1,047,576 tokens.
Does gpt-4.1-nano support function calling?
Yes. gpt-4.1-nano supports tool / function calling.
What is the knowledge cutoff of gpt-4.1-nano?
The knowledge cutoff of gpt-4.1-nano is 2024-05-31.