GPT-5.6 is here 🎉 20% off all GPT 🎉 All July 🔥Learn more
OpenAI

GPT-4o

Chat-20%
openai/gpt-4o
CompareGet Started

GPT-4o is OpenAI's flagship multimodal model from the GPT-4 era, released on 2024-05-13, taking text and image inputs and returning text. It maintains GPT-4 Turbo intelligence at twice the speed and 50% lower cost, and is optimized for complex reasoning, coding, and visual understanding, with tool use, prompt caching, and audio input. Context: 128K tokens, output: 16K. It has since been succeeded by the GPT-4.1 and GPT-5 series, so newer models are the better starting point for new projects, but GPT-4o remains widely used in established integrations. Accessible via the OpenAI-compatible protocol.

Context Window
128K
Max Output Tokens
16K
Released
2024-05-13
Capabilities
VisionFunction CallingPrompt CachingAudio Input
Available Providers
AzureAzure
Supported Protocols
OpenAIopenai

Providers

AzureAzure
-20%
Input Tokens
$2/M
$2.5/M
Output Tokens
$8/M
$10/M
Cache Read
$1/M
$1.25/M
Web Search
$0.035/R
Protocols
OpenAIopenai/v1/chat/completions/v1/responses

Code Examples

from openai import OpenAI
client = OpenAI(
base_url="https://api.ofox.ai/v1",
api_key="YOUR_OFOX_API_KEY",
)
response = client.chat.completions.create(
model="openai/gpt-4o",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)

Benchmarks

LMArenaEvaluated as gpt-4o-2024-08-06

GPT-4o scores 1335 in the Overall category of the LMArena text leaderboard (style control), ranking #202 of 374 models based on 45,499 human preference votes (updated 2026-07-12).

Benchmark scores for gpt-4o-2024-08-06 on LMArena
CategoryArena Score95% CIRankVotes
Overall133513311339#202 of 37445,499
Hard Prompts132713201333#221 of 37412,655
Coding136013531368#217 of 3697,318
Math130913011317#203 of 3626,826
Creative Writing132713181335#170 of 3726,756
Instruction Following131813121324#198 of 37418,305
Chinese132913181340#207 of 3443,778

Source: LMArena · CC BY 4.0 · Updated 2026-07-12 · Methodology · Ranks compare models within each category of the LMArena text leaderboard (style control). Scores come from third-party human preference evaluations, not from OFOX.

Frequently Asked Questions

GPT-4o on Ofox.ai costs $2.5/M per million input tokens and $10/M per million output tokens. Pay-as-you-go, no monthly fees.