GPT-4.1 mini (legacy)

1M context at low price. Replaceable by GPT-5.6 Luna or Gemini 2.5 Flash-Lite.

ChatOpenAI1M tokens$0.436 / $1.7441 · 1M

openai/gpt-4.1-mini

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

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-mini",
    "messages": [{"role": "user", "content": "Hola"}]
  }'
Get an API key

Frequently asked questions

What is GPT-4.1 mini (legacy)?
1M context at low price. Replaceable by GPT-5.6 Luna or Gemini 2.5 Flash-Lite. GPT-4.1 mini (legacy) runs on the Geek Hub API (OpenAI-compatible). Model id: openai/gpt-4.1-mini.
Is GPT-4.1 mini (legacy) free?
No. Input is $0.436 per 1M tokens and output is $1.7441 per 1M tokens on Geek Hub (markup included).
What is the context length of GPT-4.1 mini (legacy)?
GPT-4.1 mini (legacy) has a 1M tokens context window. It supports up to 32,768 completion tokens.
Does GPT-4.1 mini (legacy) support tool calling and structured outputs?
GPT-4.1 mini (legacy) 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 mini (legacy) released?
GPT-4.1 mini (legacy) was released on 2025-04-14.

More models from OpenAI