GPT-5.4

by OpenAI

Zero data retention
openai/gpt-5.4
Input
$3.50/1M tokens
Output
$21.00/1M tokens
Context
1.1Mtokens
Max output
128Ktokens
Knows to
-
Released
5 Mar 2026

About

GPT-5.4 is OpenAI’s latest frontier model, unifying the Codex and GPT lines into a single system.

Pricing

Input$3.50per 1M prompt tokens
Output$21.00per 1M generated tokens, reasoning included
Cached input$0.35per 1M tokens read back from the prompt cache
Input over 272K$7.00the whole prompt is billed at this rate once it passes the threshold
Output over 272K$31.50applies to replies to those prompts
Web search$0.014per request that uses the provider’s built-in search

What a request costs

Typical requestEachPer 1,000
Short chat reply1,500 in · 400 out$0.014$13.65
Question over a long document40,000 in · 800 out$0.157$156.80
Agent tool step20,000 in · 1,200 out$0.095$95.20
Very long prompt (over 272K)340,000 in · 1,500 out$2.43$2,427

At the developer-API rate, before any provider promotion or prompt-cache saving. In the app, the model picker shows what a message costs on your plan before you send it.

Benchmarks

Intelligence39.0#54 of 285
Coding71.1#44 of 163

Head-to-head rankings

  1. #23ASCII artModel arenaElo 120255% wins
  2. #25Godot gamesAgent arenaElo 113547% wins
  3. #28SVGModel arenaElo 119358% wins
  4. #36Android appsAgent arenaElo 104647% wins
  5. #38Game devModel arenaElo 124258% wins
  6. #38Web appsAgent arenaElo 105240% wins
  7. #39Full stackAgent arenaElo 101741% wins
  8. #40Data vizModel arenaElo 123657% wins
  9. #42UI componentsModel arenaElo 123957% wins
  10. #42Mobile appsAgent arenaElo 108446% wins

Scores from Artificial Analysis; bars are scaled to the best model on our list. Rankings from Design Arena head-to-head votes. Published by OpenRouter alongside its catalogue.

Call it from code

OpenAI-compatible: point any OpenAI SDK at https://api.privateer.pro/v1 and set model. Keys are created in the app under Settings.

cURL
curl https://api.privateer.pro/v1/chat/completions \
  -H "Authorization: Bearer $PRIVATEER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5.4",
    "messages": [{ "role": "user", "content": "Hello" }],
    "reasoning": { "effort": "medium" }
  }'
Python
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.privateer.pro/v1",
    api_key=os.environ["PRIVATEER_API_KEY"],
)
reply = client.chat.completions.create(
    model="openai/gpt-5.4",
    messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)
JavaScript
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.privateer.pro/v1",
  apiKey: process.env.PRIVATEER_API_KEY,
});
const reply = await client.chat.completions.create({
  model: "openai/gpt-5.4",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(reply.choices[0].message.content);

Parameters this model accepts

include_reasoningmax_completion_tokensmax_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstool_choicetoolsverbosity

API reference → · How API billing works →

Prices are USD at the developer-API rate, as of 16 Oct 2026, rebuilt daily from the providers’ live catalogues. ← All models