OpenAI

GPT 4 API Pricing 2026

Compare pricing, benchmarks, and providers for GPT 4. Find the best value for your use case.

8 Ways to Use Fewer Tokens
Last updated: November 21, 2026 at 08:43 AM

Overview

GPT 4 was released on May 28, 2023. Pricing starts at $30.00 per million input tokens and $60.00 per million output tokens. The model supports a context window of up to 8K tokens. API access is available through OpenAI.

Context Window
8K
tokens
Pricing
Input$30.00
Output$60.00
per 1M tokens
Speed
Output-
TTFT-
median latency
Capabilities
Tools

GPT 4 is priced at $30.00 per million input tokens and $60.00 per million output tokens. It has a context window of 8,191 tokens. It is available from 3 providers, with OpenAI the cheapest at $30.00 per million input tokens. On benchmarks, GPT 4 scores Aider 67.7 (68th percentile).

Pricing Comparison

Compare GPT 4 with 10 similar models by price.

Current Pricing (per 1M tokens)

11 models

Sponsored The Grid | Spot Priced LLM API
The Grid | Spot Priced LLM API — Why pay list price when providers will bid for your API usage? Up to 80% off.
View spot prices
Provider
Model
Input $/M
Output $/M
Coding
MMLU
GPQA
Context
Actions
$30.000
$60.000
—
—
—
8,191
Try
$15.000
$75.000
—
—
—
200,000
Try
$15.000
$60.000
—
—
—
200,000
Try
$15.000
$75.000
—
—
—
200,000
Try
$18.800
$18.800
—
—
—
-
Try
$20.000
$80.000
—
—
—
200,000
Try
$20.000
$20.000
—
—
—
4,097
Try
$20.000
$20.000
—
—
—
4,097
Try
$27.500
$137.500
—
—
—
-
Try
$30.000
$180.000
—
—
—
1,050,000
Try
$30.000
$180.000
—
—
—
1,050,000
Try

* Some models use tiered pricing based on prompt length. Displayed prices are for prompts ≤ 200k tokens.

Compare Providers

GPT 4 is available from multiple providers with different pricing and availability.

3
Providers
$30.000
Cheapest Input/M
$60.000
Cheapest Output/M
OpenAI
Best Price

Provider Pricing

3 models

Sponsored The Grid | Spot Priced LLM API
The Grid | Spot Priced LLM API — Why pay list price when providers will bid for your API usage? Up to 80% off.
View spot prices
Provider
Input $/M
Output $/M
Cache Read $/M
Cache Write $/M
Uptime
OpenAI
OpenAI
Best Price
$30.000
$60.000
-
-
-
Azure
Azure
Best Price
$30.000
$60.000
-
-
100.0%
OpenRouter
OpenRouter
Best Price
$30.000
$60.000
-
-
-
Provider pricing data sourced from OpenRouter and Helicone

Community Rankings

How does GPT 4 perform? Vote based on your experience.

Cost vs. Quality

Compare GPT 4's benchmark performance against all models.

X-axis:
Y-axis:
Loading chart...
Other models

Try GPT 4

Use our Calculator

Estimate your costs based on expected token usage.

Open Cost Calculator

Try in Playground

Test GPT 4 directly in your browser.

Open Playground

Frequently Asked Questions

GPT 4 costs $0.030000 per 1,000 input tokens and $0.060000 per 1,000 output tokens.
GPT 4 is available from 3 providers. OpenAI offers the best price.
OpenAI offers GPT 4 at $30.00 per million input tokens.
GPT 4 scores Aider 67.7 (68th percentile). Only benchmarks with published data for this model are shown.
We compare GPT 4 with 10 similarly-priced models. See the benchmark scatter plot above to compare quality vs cost.

All OpenAI Models

See pricing for all OpenAI models.

View all OpenAI models →