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
Azure
Supported Protocols
openai

Providers

Azureprovider.type: "azure_foundry"
Input Tokens
$2.5/M
Output Tokens
$10/M
Cache Read
$1.25/M
Web Search
$0.014/R
Protocols
openai/v1/chat/completions

Documentation

How to call GPT-4o on OfoxAI: model IDs, request parameters and the errors you are most likely to hit.

Code Examples

from openai import OpenAI
client = OpenAI(
base_url="https://api.ofox.io/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

LMArena ↗Evaluated 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
Overall13351331–1339#202 of 37445,499
Hard Prompts13271320–1333#221 of 37412,655
Coding13601353–1368#217 of 3697,318
Math13091301–1317#203 of 3626,826
Creative Writing13271318–1335#170 of 3726,756
Instruction Following13181312–1324#198 of 37418,305
Chinese13291318–1340#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 per million input tokens and $10 per million output tokens. Pay-as-you-go, no monthly fees.