gpt-5.4-nano API pricing

OpenAI charges $0.2 per million input tokens and $1.25 per million output tokens for gpt-5.4-nano, and $0.02 per million cached input tokens. A typical request of 1,000 input and 500 output tokens costs $0.000825, or $0.000412 through the batch API.

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

gpt-5.4-nano price per million tokens

Token typeStandardBatch API
Input$0.2$0.1
Cached input$0.02$0.01
Output$1.25$0.625

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

What gpt-5.4-nano costs per request

Request1 request1,000 requests1M requests
Short chat message (300 in, 200 out)$0.00031$0.31$310.00
Typical request (1K in, 500 out)$0.000825$0.83$825.00
Long document summary (20K in, 1K out)$0.00525$5.25$5,250.00
Coding agent step (50K in, 2K out)$0.0125$12.50$12,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
codestral-2508Mistral$0.3$0.03$0.9$0.00075
gpt-5.6-lunaOpenAI$0.2$0.02$1.2$0.0008
deepseek-v3DeepSeek$0.27$0.07$1.1$0.00082
deepseek-v4-1-flash-1017Mistral$0.3$0.007$1.2$0.0009
deepseek-flashDeepSeek$0.3$0.006$1.2$0.0009
deepseek-v4-flashDeepSeek$0.3$0.006$1.2$0.0009
gemini-3.1-flash-liteGoogle Gemini$0.25$0.025$1.5$0.001
gpt-4.1-miniOpenAI$0.4$0.1$1.6$0.0012

Other OpenAI models

Source: OpenAI pricing.