← All models

OpenAI

GPT-4o

openai/gpt-4o

Price per million tokens

Input
$2.500
Output
$10.000
Cache write
not offered
Cache read
$1.250

Passed through at the provider's list rate. Gateway adds no markup to tokens.

Limits

Context window
128,000 tokens
Max output
16,384 tokens
Images
supported

What it costs to run

WorkloadInputOutputCostPer 1,000 calls
Short chat turn1,000500$0.0075$7.50
Long document summary50,0002,000$0.1450$145.00
Agent step with tools20,0001,500$0.0650$65.00
1M in, 1M out1,000,0001,000,000$12.5000$12500.00

Calling it

const res = await client.chat.completions.create({
  model: "openai/gpt-4o",
  messages: [{ role: "user", content: "Hello" }],
});