Skip to main content
Watch: I Built an AI App Without Leaving Databricks

OpenAI - Closed weights

GPT-5 pricing and specs

GPT-5 is a closed-weights model from OpenAI that costs $1.25 per 1M input tokens and $10 per 1M output tokens on the first-party API, with a 400K-token context window.

Last verified from developers.openai.com. All sources

Input / 1M
$1.25
Output / 1M
$10
Context
400K tokens
Weights
Closed

Pricing per 1M tokens

ItemPrice / 1M tokens
Input$1.25
Output$10
Cache read$0.125
Batch inputBatch requests$0.625
Batch outputBatch requests$5
Fast mode inputFast mode requests$2.50
Fast mode outputFast mode requests$20

Note: Maximum input tokens 272,000. Default snapshot gpt-5-2025-08-07.

Specs

Context window
400,000 tokens
Max output
128,000 tokens
Release date
Provider
OpenAI
API model id
gpt-5
Vercel AI Gateway id
openai/gpt-5
Weights
Closed weights

What GPT-5 costs in practice

Worked from the standard list rates above, with the math shown so you can swap in your own token counts.

One agent session

1M input tokens and 100K output tokens, no caching.

  • Input1M x $1.25 = $1.25
  • Output0.1M x $10 = $1.00

$2.25per session

A chat app

10,000 requests a day at 2K input and 500 output tokens each.

  • Input20M x $1.25 = $25.00
  • Output5M x $10 = $50.00

$75.00per day

$2,250.00 per 30-day month

The same session at a 90% cache hit

90% of the input is read from the prompt cache. The one-time cache write premium is not included.

  • Cached input0.9M x $0.125 = $0.1125
  • Uncached input0.1M x $1.25 = $0.125
  • Output0.1M x $10 = $1.00

$1.24per session

Compare with

ModelInput / 1MOutput / 1M
GPT-5 (this page)$1.25$10
Claude Sonnet 5Anthropic$2$10
Claude Sonnet 5.5Anthropic$2$10
Command ACohere$2.50$10
Command R+ 08-2024Cohere$2.50$10
GPT-4oOpenAI$2.50$10
GPT-5.1OpenAI$1.25$10
GPT-6 SolOpenAI$2$10
GPT-6.1 SolOpenAI$2$10
GPT-4.1OpenAI$2$8
GPT-5.6 TerraOpenAI$2$12

FAQ

How much does GPT-5 cost per million tokens?

GPT-5 costs $1.25 per 1M input tokens and $10 per 1M output tokens on OpenAI's first-party API, per developers.openai.com on October 17, 2026. Per 1M tokens, cache reads cost $0.125, and the batch rate is $0.625 input and $5 output.

What is GPT-5's context window?

GPT-5 has a 400,000-token context window and returns up to 128,000 output tokens per response.

Are GPT-5's weights open?

No. GPT-5 is a closed-weights model. You call it through OpenAI's API as gpt-5 or through Vercel AI Gateway as openai/gpt-5.

When was GPT-5 released?

OpenAI released GPT-5 on August 7, 2025.

Sources

Last verified from developers.openai.com.

Newsletter

Get model price changes as they ship

One email per week. New model releases, price cuts and what they mean for your bill.