GPT-4o-mini

GPT-4o mini is OpenAI's newest model after [GPT-4 Omni](/models/openai/gpt-4o), supporting both text and image inputs with text outputs. As their most advanced small model, it is many multiples more affordable than other recent frontier models, and more than 60% cheaper than [GPT-3.5 Turbo](/models/openai/gpt-3.5-turbo). It maintains SOTA intelligence, while being significantly more cost-effective. GPT-4o mini achieves an 82% score on MMLU and presently ranks higher than GPT-4 on chat preferences [common leaderboards](https://arena.lmsys.org/). Check out the [launch announcement](https://openai.com/index/gpt-4o-mini-advancing-cost-efficient-intelligence/) to learn more. #multimodal

ChatOpenAI128k tokens$0.1635 / $0.654 · 1M

openai/gpt-4o-mini

Context
128k tokens
Completion cap
16,384
Tools
Yes
JSON
Yes
Released
2024-07-18

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

Frequently asked questions

What is GPT-4o-mini?
GPT-4o mini is OpenAI's newest model after [GPT-4 Omni](/models/openai/gpt-4o), supporting both text and image inputs with text outputs. As their most advanced small model, it is many multiples more affordable than other recent frontier models, and more than 60% cheaper than [GPT-3.5 Turbo](/models/openai/gpt-3.5-turbo). It maintains SOTA intelligence, while being significantly more cost-effective. GPT-4o mini achieves an 82% score on MMLU and presently ranks higher than GPT-4 on chat preferences [common leaderboards](https://arena.lmsys.org/). Check out the [launch announcement](https://openai.com/index/gpt-4o-mini-advancing-cost-efficient-intelligence/) to learn more. #multimodal GPT-4o-mini runs on the Geek Hub API (OpenAI-compatible). Model id: openai/gpt-4o-mini.
Is GPT-4o-mini free?
No. Input is $0.1635 per 1M tokens and output is $0.654 per 1M tokens on Geek Hub (markup included).
What is the context length of GPT-4o-mini?
GPT-4o-mini has a 128k tokens context window. It supports up to 16,384 completion tokens.
Does GPT-4o-mini support tool calling and structured outputs?
GPT-4o-mini accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
When was GPT-4o-mini released?
GPT-4o-mini was released on 2024-07-18.

More models from OpenAI