OpenAI: GPT-4

byOpenAI
Official docs

GPT-4 is a language model from OpenAI released on Nov 6, 2023. It reads text and writes text, with a 8K token context window and up to 8K tokens per reply.

Show more

It costs $30 per million input tokens and $60 per million output tokens.

It supports tool calling and structured JSON output.

4 providers serve it, including Eden AI, Kilo Gateway and Merge Gateway.

Modalities
In / out price
$30 / $60 per 1M
Context
8K
Max output
8K
Released
Nov 6, 2023
Knowledge cutoff
Nov 2023
  • Tool calling
  • Structured output
  • Reasoning
  • Prompt caching
  • Open weights
  • Free to use

GPT-4 pricing

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

Input$30 / 1M tokens
Output$60 / 1M tokens

GPT-4 providers

4 providers serve it, including Eden AI, Kilo Gateway and Merge 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
Eden AI$30$60n/a8K8K
Kilo Gateway$30$60n/a8K4K
Merge Gateway$30$60n/a8K8K
OrcaRouter$30$60n/a8K8K

What GPT-4 costs per month

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

GPT-4 per month
$2,880
Without caching
$2,880
Per request
$0.096

Supported request parameters

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

  • Toolstools
  • Structured outputsstructured_outputs
  • Temperaturetemperature

Alternatives to GPT-4

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 7 providers.

    by openaiJun 10, 2025$20/M input tokens$80/M output tokens7 providers

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

    by anthropicAug 5, 2025$15/M input tokens$75/M output tokens3 providers

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

    by anthropicAug 5, 2025$15/M input tokens$75/M output tokens7 providers

  • Reads text and images. Tool calling, reasoning.

    by anthropicMay 22, 2025$15/M input tokens$75/M output tokens

  • Reads text, images and files. Tool calling, structured output, reasoning.

    by anthropicMay 22, 2025$15/M input tokens$75/M output tokens

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

    by openaiSep 4, 20261.05M context$10/M input tokens$50/M output tokens55 providers

More from OpenAI

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

    by openaiNov 24, 2026$10/M input tokens$50/M output tokens2 providers

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

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

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

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

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

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

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

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

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

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

All OpenAI models

GPT-4 questions

How much does the GPT-4 API cost?

$30 per million input tokens and $60 per million output tokens. The estimator on this page turns that into a monthly bill for your own workload.

What is the context window of GPT-4?

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

Which providers serve GPT-4?

4 providers serve it, including Eden AI, Kilo Gateway and Merge Gateway. Prices differ by host, so the Providers table on this page lists each one with its input and output price.

Does GPT-4 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-4 open source?

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

When was GPT-4 released?

Nov 6, 2023, with training data up to Nov 2023.

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