GPT-4o: API Pricing, Context Window & Benchmarks
GPT-4o is a language model from OpenAI, released in May 2024, with multimodal input, a 128K-token context window, and pricing from $2.50/M input and $10.00/M output.
GPT-4o ('o' for 'omni') is a multimodal AI model that accepts text, audio, image, and video inputs, and generates text, audio, and image outputs. It matches GPT-4 Turbo performance on text and code, with improvements in non-English
GPT-4o benchmarks
Rankings
Quality Tracker
GPT-4o Performance Across Datasets
Scores sourced from the model's scorecard, paper, or official blog posts
GPT-4o pricing
Providers
GPT-4o starts at $2.50 per million input tokens and $10.00 per million output tokens via Azure. See all 2 providers below with their per-token pricing, latency, throughput, and modality support.
| Provider | Input $/M | Output $/M | Workload 1M + 100K | Context in / out | TTFT p50 / p95 s | Output avg / p5 c/s | Success 7d | Modalities in / out |
|---|---|---|---|---|---|---|---|---|
| $2.50 | $10.00 | $3.50 | 128.0K/4.1K | —/0.54 | 92/— | — | / | |
| $2.50 | $10.00 | $3.50 | 128.0K/4.1K | 0.42/0.60 | 460/266 | 100.00%(18) | / |
Workload cost uses 1M input tokens plus 100K output tokens at published list prices without assuming a cache hit. Cached input is the discounted price for prompt tokens served from a provider cache. TTFT is time to first token. Output is characters per second; p5 is the sustained floor exceeded by 95% of observed requests. Success is calculated from completed versus failed requests over the trailing seven days.
GPT-4o context window
Input and output token limits for GPT-4o, plus how it ranks on long-context understanding.
GPT-4o API
Run a request to see the response
Use it in your code
Billed at $2.50 input / $10.00 output per 1M tokens through the LLM Stats gateway.
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://gateway.llm-stats.com/v1"
)
response = client.chat.completions.create(
model="gpt-4o-2024-05-13",
messages=[
{"role": "user", "content": "What is machine learning?"}
]
)
print(response.choices[0].message.content)Need an API key? Create one above in the playground, or read the API documentation.
GPT-4o latency
GPT-4o time to first token, sustained output throughput, and failed-request rate from live API traffic over the trailing 7 days.
Provider operational metrics
Time to first token, output throughput, and failed-request rate from live API traffic
GPT-4o examples
Recent arena outputs from GPT-4o, picked from the highest-ranked matchups.
GPT-4o license
GPT-4o is a proprietary model available under its provider's product and API terms.
- License
- Proprietary
- Hosted access
Proprietary license - usage restrictions apply
GPT-4o resources
Official sources for GPT-4o: api documentation, official playground, official launch post.
GPT-4o vs other models
The most-compared alternatives to GPT-4o are Llama 3.3 70B Instruct, Llama 3.1 405B Instruct, Grok-2. Open any pair side-by-side for benchmarks, pricing, context, and latency.
Models like GPT-4o
Models ranked just above and below GPT-4o by LLM Stats score.
FAQ
Common questions about GPT-4o.