LLM·Dex
ProprietaryOpenAIsmalltextvision

GPT-4o mini

GPT-4o's small sibling, defined the cheap-mid-tier slot for most of 2024-2025.

Updated


Quick facts

Released
Jul 2024
Context
128K tokens
Output / 1M
$0.60 / 1M tokens
License
Proprietary

About GPT-4o mini

GPT-4o mini was OpenAI's mid-2024 cheap workhorse, ubiquitous in production routing layers, RAG pipelines, and customer-support stacks. Still common but mostly displaced by GPT-5 mini for new builds.

Benchmarks

Published scores from OpenAI's model card or independent leaderboards. We do not publish numbers we cannot source, see methodology.

HumanEval
,
Python coding pass@1
MMLU
82.0
Broad academic knowledge
GPQA
,
Graduate-level reasoning
SWE-bench
,
Real software-engineering tasks
  • MMLU82.0

Capabilities

Strengths

  • Cheap
  • Fast
  • Mature

Tracked weaknesses

  • Superseded by GPT-5 mini

Pricing

Per-million-token rates as published by OpenAI.

TierPriceNotes
Input$0.15 / 1M tokensTokens you send to the model
Output$0.60 / 1M tokensTokens the model generates
Context128K tokensMax combined input + output

Call GPT-4o mini from your code

Drop-in snippet for the OpenAI SDK. Set your API key in the environment and run.

typescript
import OpenAI from "openai";

const client = new OpenAI({
  // Use OPENAI_API_KEY for OpenAI, or your provider's key + baseURL.
  apiKey: process.env.OPENAI_API_KEY,
});

const completion = await client.chat.completions.create({
  model: "gpt-4o-mini",
  messages: [
    { role: "user", content: "What's the time complexity of quicksort?" },
  ],
});

console.log(completion.choices[0].message.content);

Compare GPT-4o mini with…

Frequently asked

  • How much does GPT-4o mini cost per million tokens?
    GPT-4o mini is priced at $0.15 / 1M tokens for input tokens and $0.60 / 1M tokens for output tokens via the official OpenAI API at the time of writing.
  • What is GPT-4o mini's context window?
    GPT-4o mini supports a context window of 128K tokens.
  • Is GPT-4o mini open source?
    No. GPT-4o mini is a closed-weight model, you can use it via OpenAI's API but the model weights are not publicly downloadable.
  • When was GPT-4o mini released?
    GPT-4o mini was released on Jul 18, 2024 by OpenAI.
Friday digest

Intelligence, distilled weekly.

One short email every Friday, new model launches, leaderboard moves, and pricing drops. Curated by hand. Free, no spam.