OpenAI: GPT-4o (2024-05-13)

GPT-4o (2024-05-13) is OpenAI's multimodal flagship, released 2024-05, matching GPT-4 Turbo's intelligence while running twice as fast and at half the cost. It improves non-English language handling and visual understanding, and suits real-time applications that combine text and image inputs.

Modalities
inTextinImageinFileoutText
Price / 1M−70%
$1.50 / $4.50$5.00 / $15.00
Context
128K
Knowledge cutoff
2023-10-31

Capabilities

VisionTool useStructured output

Channels

Same weights on every channel. Requests route to the cheapest healthy one; the channel used is printed on each billing line.

Provider
Discount
Input /M
Output /M
Cache Read /M
Cache Create 5m /M
Cache Create 1h /M
Codexcheap
−70%
$1.50
$4.50
Defaultstable
−30%
$3.50
$10.50

Cost Calculator

Pick a channel and a usage scenario, then drag to your workload — each scenario assumes a different prompt-cache hit rate.

Channel
Scenario
Unit $1.50 / $4.50 /1MDaily chat: 40% cache hit assumed · cache read $0.15 /1M
List price $1027.20On MirAPI$308.16/ moYou save $719.04Create an API key

Benchmarks

bar = score (0–100) · ▏ median

Scores from vendor reports and public leaderboards. No private evals.

Coding Index
Code
24.2
#67
GPQA Diamond
Science QA
50.7
#91
τ-bench (airline)
Agentic tool use
40.0
#89

Showcase

Three fixed prompts, identical for every chat model. Outputs are archived verbatim — copy the prompt to reproduce.

Task prompt · identical for all models
Build a single-file HTML page using three.js from a CDN: a low-poly planet with a tilted ring of ~200 orbiting particles, a soft key light plus rim light, slow auto-rotation, and drag-to-orbit controls. No build tools — one file only.
Archived output
Archive not published yet

Every model will run this exact prompt; the output lands here verbatim, with tokens and per-run cost.

Quick Start

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.mirapi.ai/v1",   # changed
    api_key=os.environ["MIRAPI_API_KEY"],   # changed
)

resp = client.chat.completions.create(
    model="openai/gpt-4o-2024-05-13",
    messages=[{"role": "user", "content": "Hello"}],
)
Wire GPT-4o (2024-05-13) into your product

1M free tokens to start · no card · OpenAI-compatible, one base_url change

Start free