GPT-4o Mini: Pricing, Context, and Benchmarks

GPT-4o Mini is OpenAI's GPT-4 model released on 2024-07-18. It runs on a 128K-token context window, priced at $0.15/M input and $0.60/M output. Affordable small model for high-volume tasks. Replaces GPT-3.5 in the API.

Input
$0.15/M
Output
$0.60/M
Cached input
$0.0750/M
Context
128K
Max output
16K

Specifications

ProviderOpenAI
FamilyGPT-4
Released2024-07-18
Statusactive
Context window128K tokens
Max output16K tokens
Modalitiestext image
Capabilities function calling json mode vision streaming
Tokenizero200k_base
API endpointhttps://api.openai.com/v1/chat/completions
DocumentationOfficial docs ↗
Last updated2026-05-29

What this model is good for

Based on benchmark scores and capability fit, GPT-4o Mini ranks well for:

Cost calculator

For 1,000 tokens of input and 1,000 tokens of output per call, this model costs $0.0008 per call. For typical usage:

WorkloadTokens / call (in/out)$/call$/1K calls$/1M calls
Short Q&A 200 / 100 $0.000090 $0.09 $90
Standard chat 1K / 500 $0.000450 $0.45 $450
RAG with retrieval 4K / 500 $0.000900 $0.90 $900
Long doc summary 20K / 1K $0.003600 $3.60 $3,600
Long context (100K input) 100K / 2K $0.015900 $15.90 $15,900

For more precise estimates including caching discounts, use the LLM API Cost Calculator.

Other OpenAI models

Common comparisons

API setup

curl https://api.openai.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-4o-mini", "messages": [{"role": "user", "content": "Hello"}]}'

See the official documentation for the full request/response schema. For pre-flight token counting before paying, use the appropriate token counter.