GPT-5.4 API pricing

OpenAI charges $2.5 per million input tokens and $15 per million output tokens for GPT-5.4 (gpt-5.4), and $0.25 per million cached input tokens. A typical request of 1,000 input and 500 output tokens costs $0.01, or $0.005 through the batch API.

Prices updated November 3, 2026
Input / 1M tokens
$2.5
Output / 1M tokens
$15
Cached input / 1M tokens
$0.25
Typical request
$0.01
Calculate the cost of your prompt →

GPT-5.4 price per million tokens

Token typeStandardBatch API
Input$2.5$1.25
Cached input$0.25$0.13
Output$15$7.5

API model id: gpt-5.4. GPT-5.4 supports a 1.05M-token context window, up to 128K output tokens, image input, tool calling and reasoning.

What GPT-5.4 costs per request

Request1 request1,000 requests1M requests
Short chat message (300 in, 200 out)$0.00375$3.75$3,750.00
Typical request (1K in, 500 out)$0.01$10.00$10,000.00
Long document summary (20K in, 1K out)$0.065$65.00$65,000.00
Coding agent step (50K in, 2K out)$0.16$155.00$155,000.00

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

How GPT-5.4 compares

Models with a similar price

ModelProviderInput / 1MCached input / 1MOutput / 1MTypical request
GPT-4oOpenAI$2.5$1.25$10$0.0075
GPT-5.6 TerraOpenAI$2$0.2$12$0.008
Gemini 3.1 Pro PreviewGoogle Gemini$2$0.2$12$0.008
GPT-5.2OpenAI$1.75$0.175$14$0.00875
Claude Sonnet 4.5Anthropic$3$0.3$15$0.0105
Claude Sonnet 4.6Anthropic$3$0.3$15$0.0105
GPT-5.6OpenAI$4$0.4$20$0.014
Claude Opus 5.5Anthropic$4$0.2$20$0.014

Other OpenAI models

Every OpenAI model side by side, with batch, caching and long-context prices: OpenAI API pricing. Ways to pay less: batch API, prompt caching, the cheapest models.

Questions and answers

How much does the GPT-5.4 API cost?

OpenAI charges $2.5 per million input tokens and $15 per million output tokens for GPT-5.4 (gpt-5.4), and $0.25 per million cached input tokens. A typical request of 1,000 input and 500 output tokens costs $0.01, or $0.005 through the batch API.

Is there a cheaper way to use GPT-5.4?

Yes. The OpenAI batch API runs requests within 24 hours for $1.25 per million input tokens and $7.5 per million output tokens. Prompt caching lowers the price of repeated input to $0.25 per million tokens.

What is the context window of GPT-5.4?

GPT-5.4 accepts up to 1,050,000 input tokens, roughly 788,000 words of English, and writes up to 128,000 output tokens per response. Filling the whole context window once costs $2.63 in input tokens.

Is GPT-5.4 cheaper than Claude Sonnet 4.5?

They cost about the same. Claude Sonnet 4.5 from Anthropic costs $3 input and $15 output per million tokens, so a typical request is $0.0105: about the same price as GPT-5.4.

Source: OpenAI pricing, via the LiteLLM price list.