GPT-4o: Pricing, Context, and Benchmarks

GPT-4o is OpenAI's GPT-4 model released on 2024-05-13. It runs on a 128K-token context window, priced at $2.50/M input and $10.00/M output. GPT-4o ("omni") supports text, image, and audio inputs in a single model. Half the cost of GPT-4 Turbo.

Input
$2.50/M
Output
$10.00/M
Cached input
$1.2500/M
Context
128K
Max output
16K

Specifications

ProviderOpenAI
FamilyGPT-4
Released2024-05-13
Statusactive
Context window128K tokens
Max output16K tokens
Modalitiestext image audio
Capabilities function calling json mode vision streaming audio
Tokenizero200k_base
API endpointhttps://api.openai.com/v1/chat/completions
DocumentationOfficial docs ↗
Last updated2026-05-29

Benchmark scores

BenchmarkCategoryScoreMeasuredSource
HumanEval coding 90.2 2024-05-13
MMLU general 88.7 2024-05-13
MMMU multimodal 69.1 2024-05-13

Scores reflect single measurements on the date shown. Reproducibility varies; consult the linked source for methodology. Use the comparison tool for side-by-side analysis.

Cost calculator

For 1,000 tokens of input and 1,000 tokens of output per call, this model costs $0.0125 per call. For typical usage:

WorkloadTokens / call (in/out)$/call$/1K calls$/1M calls
Short Q&A 200 / 100 $0.001500 $1.50 $1,500
Standard chat 1K / 500 $0.007500 $7.50 $7,500
RAG with retrieval 4K / 500 $0.015000 $15.00 $15,000
Long doc summary 20K / 1K $0.060000 $60.00 $60,000
Long context (100K input) 100K / 2K $0.265000 $265.00 $265,000

For more precise estimates including caching discounts, use the LLM API Cost Calculator.

Other OpenAI models

Common comparisons

API setup

curl https://api.openai.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-4o", "messages": [{"role": "user", "content": "Hello"}]}'

See the official documentation for the full request/response schema. For pre-flight token counting before paying, use the appropriate token counter.