GPT-4.1 (batch)

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 GPT-4.5 across coding (54.6% SWE-bench Verified), instruction compliance (87.4% IFEval), and multimodal understanding benchmarks. It is 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.

ChatOpenAI1M tokens$1.0901 / $4.3602 · 1M

openai/gpt-4.1:batch

Context
1M tokens
Completion cap
32,768
Tools
Yes
JSON
Yes
Released
2025-04-14

Call it from Geek Hub

Same OpenAI SDK. Change the base URL and the model id.

curl https://api.geekhub.mx/v1/chat/completions \
  -H "Authorization: Bearer $GEEKHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4.1:batch",
    "messages": [{"role": "user", "content": "Hola"}]
  }'
Get an API key

Frequently asked questions

What is GPT-4.1 (batch)?
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 GPT-4.5 across coding (54.6% SWE-bench Verified), instruction compliance (87.4% IFEval), and multimodal understanding benchmarks. It is 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. GPT-4.1 (batch) runs on the Geek Hub API (OpenAI-compatible). Model id: openai/gpt-4.1:batch.
Is GPT-4.1 (batch) free?
No. Input is $1.0901 per 1M tokens and output is $4.3602 per 1M tokens on Geek Hub (markup included).
What is the context length of GPT-4.1 (batch)?
GPT-4.1 (batch) has a 1M tokens context window. It supports up to 32,768 completion tokens.
Does GPT-4.1 (batch) support tool calling and structured outputs?
GPT-4.1 (batch) accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
When was GPT-4.1 (batch) released?
GPT-4.1 (batch) was released on 2025-04-14.

More models from OpenAI