gpt-5 API pricing

OpenAI charges $1.25 per million input tokens and $10 per million output tokens for gpt-5, and $0.125 per million cached input tokens. A typical request of 1,000 input and 500 output tokens costs $0.00625, or $0.00313 through the batch API.

Prices updated October 28, 2026
Input / 1M tokens
$1.25
Output / 1M tokens
$10
Cached input / 1M tokens
$0.125
Typical request
$0.00625
Calculate the cost of your prompt →

gpt-5 price per million tokens

Token typeStandardBatch API
Input$1.25$0.625
Cached input$0.125$0.0625
Output$10$5

gpt-5 supports a 272K-token context window, up to 128K output tokens, image input, tool calling and reasoning.

What gpt-5 costs per request

Request1 request1,000 requests1M requests
Short chat message (300 in, 200 out)$0.00237$2.38$2,375.00
Typical request (1K in, 500 out)$0.00625$6.25$6,250.00
Long document summary (20K in, 1K out)$0.035$35.00$35,000.00
Coding agent step (50K in, 2K out)$0.0825$82.50$82,500.00

At standard rates. A token is about 4 characters of English text, so 1,000 tokens is roughly 750 words.

Models with a similar price

ModelProviderInput / 1MCached input / 1MOutput / 1MTypical request
gpt-4.1OpenAI$2$0.5$8$0.006
o3OpenAI$2$0.5$8$0.006
gemini-3.5-flashGoogle Gemini$1.5$0.15$9$0.006
gemini-omni-1.1-flashGoogle Gemini$1.5–$9$0.006
gpt-5.1OpenAI$1.25$0.125$10$0.00625
gemini-2.5-proGoogle Gemini$1.25$0.125$10$0.00625
gpt-6-solOpenAI$2$0.2$10$0.007
gpt-6.1-solOpenAI$2$0.1$10$0.007

Other OpenAI models

Source: OpenAI pricing.