GPT-4o API
OpenAI · serves gpt-4o
Pricing
| Input / 1M | $2.50 |
|---|---|
| Output / 1M | $10.00 |
| Blended / 1M | $12.5 |
| Cached input / 1M | $1.25 |
| Context window | 128,000 tokens |
| Max output | 16,384 tokens |
| License | API only · Proprietary proprietary |
| Knowledge cutoff | October 2023 · source |
| Intelligence index | 11.1 Artificial Analysis Intelligence Index · source |
textvisionfunction-callingjson-mode
Price verified 2026-09-05 (0 days ago) · sourcecorroborated
Sources
| Source | Input / 1M | Output / 1M | Verified |
|---|---|---|---|
| OpenRouter | $2.50 | $10.00 | 2026-09-05 |
| LiteLLM | $2.50 | $10.00 | 2026-09-03 |
| models.dev | $5.00 | $15.00 | 2026-09-04 |
Two independent sources agree within 20%.
Latency measured
| Region | TTFT p50 | TTFT p95 | Total p50 | Total p95 | Throughput | Samples |
|---|---|---|---|---|---|---|
| eu-paris | — | — | — | — | — | 0 |
Time-to-first-token, measured server-side. Measured 2026-09-04 (0 days ago).
Call it
OpenAI-compatible endpoint — set OPENAI_API_KEY.
curl https://api.openai.com/v1/chat/completions \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [{"role": "user", "content": "Hello"}]
}'from openai import OpenAI # pip install openai
client = OpenAI(
base_url="https://api.openai.com/v1",
api_key="...", # OPENAI_API_KEY
)
resp = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)Price unchanged since 2026-09-03 — 1 point on record.
Use this data
Raw JSON for this page: gpt-4o.json. Free to reuse under CC BY 4.0 with attribution to apipriceindex.com.