OpenAI: GPT-4o

byOpenAI
Official docs

GPT-4o is a language model from OpenAI released on May 13, 2024. It reads text, images and files and writes text, with a 128K token context window and up to 16K tokens per reply.

Show more

It costs $2.50 per million input tokens and $10 per million output tokens. Cached input bills at $1.25, 50% less than fresh input.

It supports tool calling, structured JSON output and prompt caching.

23 providers serve it, including Vercel AI Gateway, Cloudflare AI Gateway and 302.AI. The lowest input price is $1.25 per million tokens at Cloudflare AI Gateway.

Modalities
In / out price
$2.50 / $10 per 1M
Context
128K
Max output
16K
Released
May 13, 2024
Knowledge cutoff
Sep 2023
  • Tool calling
  • Structured output
  • Reasoning
  • Prompt caching
  • Open weights
  • Free to use

GPT-4o pricing

USD, as listed on Nov 23, 2026. Most bills are input heavy, so the cached input rate matters as much as the headline price.

Input$2.50 / 1M tokens
Output$10 / 1M tokens
Cached input (read)$1.25 / 1M tokens

GPT-4o providers

23 providers serve it, including Vercel AI Gateway, Cloudflare AI Gateway and 302.AI. The lowest input price is $1.25 per million tokens at Cloudflare AI Gateway. Each host sets its own price and limits, so the cheapest one is not always the one with the longest context.

ProviderInput /MOutput /MCache read /MContextMax output
OpenAI First party$2.50$10$1.25128K16K
Vercel AI Gateway$2.50$10$1.25128K16K
Cloudflare AI Gateway$1.25$5$0.625128K16K
302.AI$2.50$10n/a128K16K
Abacus$2.50$10$1.25128K16K
AI/ML API$2.50$10$1.25128K16K
AIHubMix$2.50$10$1.25128K16K
DevPass (LLM Gateway)$2.50$10$1.25128K16K
DigitalOcean$2.50$10$1.25128K16K
Eden AI$2.50$10$1.25128K16K
FrogBot$2.50$10$1.25128K16K
Helicone$2.50$10$1.25128K16K

Showing 12 of 23 providers: the lab first, then the major clouds, then the cheapest resellers.

What GPT-4o costs per month

Pick a workload close to yours or type your own volumes.

GPT-4o per month
$236
Without caching
$293
Per request
$0.0079

Supported request parameters

What you can set when you call GPT-4o through an OpenAI compatible API.

  • Toolstools
  • Structured outputsstructured_outputs
  • Temperaturetemperature

Alternatives to GPT-4o

Models that take the same inputs and call tools, closest in price, cheaper ones first.

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 49 providers.

    by openaiSep 29, 20261.05M context$2/M input tokens$10/M output tokens49 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 55 providers.

    by anthropicSep 28, 20261M context$2/M input tokens$10/M output tokens55 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 42 providers.

    by openaiSep 22, 2026$2/M input tokens$10/M output tokens42 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 52 providers.

    by anthropicJun 29, 2026$2/M input tokens$10/M output tokens52 providers

  • Reads text, images, files, audio and video. Tool calling, structured output, reasoning. Served by 24 providers.

    by googleJun 17, 2025$1.25/M input tokens$10/M output tokens24 providers

  • Index 46.5

    Reads text, images and files. Tool calling, structured output, reasoning. Served by 34 providers.

    by x-aiSep 21, 2026500K context$2/M input tokens$6/M output tokens34 providers

More from OpenAI

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 24 providers.

    by openaiNov 17, 2026$8/M input tokens$40/M output tokens24 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 2 providers.

    by openaiNov 17, 2026$8/M input tokens$40/M output tokens2 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 24 providers.

    by openaiNov 17, 2026$2/M input tokens$10/M output tokens24 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 2 providers.

    by openaiNov 17, 2026$2/M input tokens$10/M output tokens2 providers

  • Generates images from text and images.

    by openaiOct 28, 2026

  • Generates images from text and images.

    by openaiOct 28, 2026

All OpenAI models

GPT-4o questions

How much does the GPT-4o API cost?

$2.50 per million input tokens and $10 per million output tokens, with cached input at $1.25. The estimator on this page turns that into a monthly bill for your own workload.

What is the context window of GPT-4o?

128,000 tokens of input, and it can write up to 16,384 tokens in one reply. As a rough guide, a million tokens is around 750,000 English words.

Which providers serve GPT-4o?

23 providers serve it, including Vercel AI Gateway, Cloudflare AI Gateway and 302.AI. The lowest input price is $1.25 per million tokens at Cloudflare AI Gateway. Prices differ by host, so the Providers table on this page lists each one with its input and output price.

Does GPT-4o support tool calling?

Yes. It accepts tool definitions and can return JSON that matches a schema, which is what an agent needs to call your APIs.

Is GPT-4o open source?

No. OpenAI serves it through an API only, so you cannot download the weights or host it yourself.

When was GPT-4o released?

May 13, 2024, with training data up to Sep 2023.

Catalog data from models.dev (MIT licensed), refreshed daily, last on Nov 23, 2026. The summary is written from these facts.