Logo
Back to all models

GPT-4o - In-Depth Overview

OpenAI · GPT-4o

Current
Flagship
Latest in family

Model ID: gpt-4o

Get all the details on GPT-4o, an AI model from OpenAI. This page covers its token limits, pricing structure, key capabilities such as streaming, structured_outputs, multimodal_input, 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();response = client.chat.completions.create(model="gpt-4o",messages=[{"role": "system", "content": "You are a helpful assistant."},{"role": "user", "content": "Hello!"}]);print(response.choices[0].message.content)

Required Libraries

openai
openai

Benchmarks

BenchmarkScoreSourceNotes
1405
OpenLLM LeaderboardScore for chatgpt-4o-latest-20250326
964
OpenLLM LeaderboardScore for GPT-4o-2024-11-20
1310
OpenLLM LeaderboardScore for chatgpt-4o-latest-20250326
1000
OpenLLM LeaderboardScore for api-gpt-4o-search
72.08%
Vellum Leaderboard-
13.4%
Vellum Leaderboard-
56.1%
Vellum Leaderboard-
31%
Vellum Leaderboard-
60.3%
Vellum Leaderboard-
27.1%
Vellum Leaderboard-
61.65
LiveBench Leaderboard-
48.81
LiveBench Leaderboard-
77.48
LiveBench Leaderboard-
55.72
LiveBench Leaderboard-
66.52
LiveBench Leaderboard-
49.43
LiveBench Leaderboard-
71.92
LiveBench Leaderboard-

Notes

GPT-4o (“o” for “omni”) is OpenAI's versatile, high-intelligence flagship model. It accepts both text and image inputs, and produces text outputs (including Structured Outputs). It is the best model for most tasks, and is OpenAI's most capable model outside of its o-series models.

Supported Data Types

Input Types

text
image

Output Types

text

Strengths & Weaknesses

Exceptional at

multimodal understanding
complex reasoning
general reasoning
instruction following

Good at

code generation
web development
vision tasks
creative writing nuance

Additional Information

Latest Update

Aug 6, 2024

Knowledge Cutoff

Oct 1, 2023