Back to all models
Get all the details on GPT-4o 2024-05-13, 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
$2.50/1M
Output Cost
$10.00/1M
Sample API Code
from openai import OpenAI
client = OpenAI()
chat_completion = client.chat.completions.create(
messages=[
{
"role": "user",
"content": "Say this is a test",
}
],
model="gpt-4o-2024-05-13",
)
print(chat_completion.choices[0].message.content)
Required Libraries
openai
@openai/openai
Benchmarks
Benchmark | Score | Source | Notes |
---|---|---|---|
1285 | OpenLLM Leaderboard | Rank 33 Overall | |
1206 | OpenLLM Leaderboard | Rank 12 Overall | |
N/A | Vellum LLM Leaderboard | Overall score not provided, see specific task scores | |
N/A | Vellum LLM Leaderboard | Score not available for this model version | |
13.4 | Vellum LLM Leaderboard | Score in percentage | |
56.1 | Vellum LLM Leaderboard | Score in percentage | |
31 | Vellum LLM Leaderboard | Score in percentage | |
60.3 | Vellum LLM Leaderboard | Score in percentage | |
72.08 | Vellum LLM Leaderboard | Score in percentage | |
27.1 | Vellum LLM Leaderboard | Score in percentage | |
53.95 | LiveBench Leaderboard | Score in percentage | |
39.75 | LiveBench Leaderboard | Score in percentage | |
69.29 | LiveBench Leaderboard | Score in percentage | |
41.48 | LiveBench Leaderboard | Score in percentage | |
63.53 | LiveBench Leaderboard | Score in percentage | |
44.68 | LiveBench Leaderboard | Score in percentage | |
64.94 | LiveBench Leaderboard | Score in percentage |
Notes
A snapshot of the GPT-4o model released on May 13, 2024. Accepts text and image inputs, produces text outputs. Supports various features like function calling, streaming, and fine-tuning.
Capabilities
fine tuning
function calling
json mode
long context
multimodal input
streaming
vision
web browsing via tool
Supported Data Types
Input Types
text
image
Output Types
text
Strengths & Weaknesses
Exceptional at
general reasoning
instruction following
vision tasks
tool use
Good at
coding
mathematics
data analysis
language tasks
Additional Information
Latest Update
May 13, 2024
Knowledge Cutoff
Oct 1, 2023