Back to all models
Get all the details on GPT-4o mini, an AI model from OpenAI. This page covers its token limits, pricing structure, key capabilities such as fine_tuning, function_calling, json_mode, available API code samples, and performance strengths.
Key Metrics
Input Limit
128K tokens
Output Limit
16.4K tokens
Input Cost
$0.15/1M
Output Cost
$0.60/1M
Sample API Code
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)
Required Libraries
openai
openai
Benchmarks
Benchmark | Score | Source | Notes |
---|---|---|---|
1272 | OpenLLM Leaderboard | - | |
1092 | OpenLLM Leaderboard | - | |
1124 | OpenLLM Leaderboard | - | |
961 | OpenLLM Leaderboard | - | |
40.2% | Vellum Leaderboard | - | |
87.3% | Vellum Leaderboard | - | |
61% | Vellum Leaderboard | - | |
97.9% | Vellum Leaderboard | - | |
65.12% | Vellum Leaderboard | - | |
60.4% | Vellum Leaderboard | - | |
43.41 | LiveBench Leaderboard | - | |
25.64 | LiveBench Leaderboard | - | |
55.02 | LiveBench Leaderboard | - | |
38.05 | LiveBench Leaderboard | - | |
55.10 | LiveBench Leaderboard | - | |
29.88 | LiveBench Leaderboard | - | |
56.80 | LiveBench Leaderboard | - |
Notes
A fast, affordable small model for focused tasks. It accepts both text and image inputs, and produces text outputs (including Structured Outputs). It is ideal for fine-tuning, and model outputs from a larger model like GPT-4o can be distilled to GPT-4o-mini to produce similar results at lower cost and latency.
Capabilities
fine tuning
function calling
json mode
long context
multimodal input
streaming
vision
Supported Data Types
Input Types
text
image
Output Types
text
Strengths & Weaknesses
Exceptional at
High School Math (AIME 2024)
MATH 500
Good at
Focused tasks
Fine-tuning
Intent Classification
Extract search keywords
Translate text
Generate tags
Vision tasks
Coding
Data Analysis
Instruction Following
Poor at
Reasoning
Language tasks (general)
General text tasks (compared to larger models)
Additional Information
Latest Update
Jul 18, 2024
Knowledge Cutoff
Oct 1, 2023