GPT-5.4 API pricing

As of 5 August 2026, GPT-5.4 costs $2.50 per 1M input tokens and $15.00 per 1M output tokens, and scores 76.9% on coding benchmarks (best of Aider polyglot and SWE-bench Verified).

Prices updated 5 August 2026

GPT-5.4 price

USD per 1M tokens.

ProviderInput / 1MOutput / 1MContext
OpenAI$2.50$15.001.1M
Coding: 76.9%Reasoning: 93.3%Math: 97.8%

Coding via Aider polyglot & SWE-bench Verified; reasoning & math via Epoch AI.

How much does the GPT-5.4 API cost?
As of 5 August 2026, GPT-5.4 costs $2.50 per 1M input tokens and $15.00 per 1M output tokens, and scores 76.9% on coding benchmarks (best of Aider polyglot and SWE-bench Verified).
Is there a cheaper model as good as GPT-5.4 for coding?
Yes — google/gemini-2.5-pro (DeepInfra) scores 83.1% on coding at $10.00 per 1M output tokens, below GPT-5.4's $15.00.

Know what you're really spending on GPT-5.4.

StackSpend connects read-only to your AI providers, normalises every model into one daily signal, and flags cheaper equal-quality swaps from this same dataset.