OpenAI: GPT-4 (OpenAI)
GPT-4 (OpenAI) 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 moreShow less
It costs $30 per million input tokens and $60 per million output tokens.
It supports tool calling and structured JSON output.
7 providers serve it, including DevPass (LLM Gateway), Eden AI and Kilo 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 (OpenAI) pricing
USD, as listed on Oct 15, 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 (OpenAI) providers
7 providers serve it, including DevPass (LLM Gateway), Eden AI and Kilo Gateway. Each host sets its own price and limits, so the cheapest one is not always the one with the longest context.
| Provider | Input /M | Output /M | Cache read /M | Context | Max output |
|---|---|---|---|---|---|
| DevPass (LLM Gateway) | $30 | $60 | – | 8K | 8K |
| Eden AI | $30 | $60 | – | 8K | 8K |
| Kilo Gateway | $30 | $60 | – | 8K | 4K |
| LLM Gateway | $30 | $60 | – | 8K | 8K |
| Merge Gateway | $30 | $60 | – | 8K | 8K |
| OrcaRouter | $30 | $60 | – | 8K | 8K |
| AI/ML API | $39 | $78 | $39 | 8K | 8K |
What GPT-4 (OpenAI) costs per month
Pick a workload close to yours or type your own volumes.
Supported request parameters
What you can set when you call GPT-4 (OpenAI) through an OpenAI compatible API.
- Tools
tools - Structured outputs
structured_outputs - Temperature
temperature
Alternatives to GPT-4 (OpenAI)
Models that take the same inputs and call tools, closest in price, cheaper ones first.
- 200K context
Reads text and images. Tool calling, structured output, reasoning. Served by 9 providers.
by openaiJan 1, 2024$20/M input tokens$80/M output tokens9 providers
- 200K context
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
- 200K context
Reads text, images and files. Tool calling, structured output. Served by 15 providers.
by anthropicAug 5, 2025$15/M input tokens$75/M output tokens15 providers
- 200K context
Reads text, images and files. Tool calling, structured output, reasoning.
by anthropicMay 22, 2025$15/M input tokens$75/M output tokens
- 193K context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 5 providers.
by anthropicMay 14, 2025$15/M input tokens$75/M output tokens5 providers
- Index 52.7
Reads text, images and files. Tool calling, structured output, reasoning. Served by 29 providers.
by openaiSep 3, 20261.05M context$10/M input tokens$50/M output tokens29 providers
More from OpenAI
- Index 51.8
Reads text, images and files. Tool calling, structured output, reasoning. Served by 27 providers.
by openaiSep 29, 20261.05M context$2/M input tokens$10/M output tokens27 providers
- 1.05M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 2 providers.
by openaiSep 29, 2026$2/M input tokens$10/M output tokens2 providers
- Index 38.1
Reads text, images and files. Tool calling, structured output, reasoning. Served by 27 providers.
by openaiSep 22, 20261.05M context$0.10/M input tokens$0.50/M output tokens27 providers
- 1.05M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 2 providers.
by openaiSep 22, 2026$0.10/M input tokens$0.50/M output tokens2 providers
- 1.05M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 27 providers.
by openaiSep 22, 2026$2/M input tokens$10/M output tokens27 providers
- 1.05M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 2 providers.
by openaiSep 22, 2026$2/M input tokens$10/M output tokens2 providers
GPT-4 (OpenAI) questions
How much does the GPT-4 (OpenAI) 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 (OpenAI)?
8,192 tokens of input, and it can write up to 8,192 tokens in one reply. As a rough guide, a million tokens is around 750,000 English words.
Which providers serve GPT-4 (OpenAI)?
7 providers serve it, including DevPass (LLM Gateway), Eden AI and Kilo Gateway. Prices differ by host, so the Providers table on this page lists each one with its input and output price.
Does GPT-4 (OpenAI) 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 (OpenAI) open source?
No. OpenAI serves it through an API only, so you cannot download the weights or host it yourself.
When was GPT-4 (OpenAI) released?
Nov 6, 2023, with training data up to Nov 2023.
Catalog data from models.dev (MIT licensed), refreshed daily, last on Oct 15, 2026. The summary is written from these facts.
Building on GPT-4 (OpenAI)?
I test your real tasks on it and the two closest alternatives, then ship the agent on whichever wins on cost and accuracy.
Book Meeting