KernelFox
Home / Models / OpenAI / GPT-5.4 Nano

GPT-5.4 Nano

By OpenAI.
6.6 / 10
About the level of GPT-5 miniEpoch index 146.36, updated 24 Nov 2026
Released
17 Mar 2026
Type
Proprietary
API only, closed weights
Context
400,000 tokens
Up to 128,000 output tokens
Price per million
$0.2 in
$1.25 out

GPT-5.4 nano is the most lightweight and cost-efficient variant of the GPT-5.4 family, optimized for speed-critical and high-volume tasks.

Will it run on my PC?

No. GPT-5.4 Nano has closed weights, so it only runs on OpenAI’s servers or through a provider. The closest model you can run yourself today is Qwen3.8-27B: 0.9 points higher out of 10, and about 17.6 GB of GPU memory.

How it compares

Models closest in score, open and proprietary together.

DeepSeek-V4-FlashOpen weights
6.7
server hardware (about 176 GB)
Qwen3.6-27BOpen weights
6.7
17.8 GB VRAM (Q4)
GLM-5Open weights
6.6
server hardware (about 457 GB)
GPT-5.4 Nano (this page)Proprietary, API only
6.6
API
DeepSeek-V3.2Open weights
6.6
server hardware (about 406 GB)
GPT-5 miniProprietary, API only
6.6
$0.69/M tokens (blended)

What it costs

Through an API, per million tokens.

$0.2 in / $1.25 out

Cached input: $0.02 per million.

about $106for a heavy coding-agent month (13,000 calls, 4 billion tokens, mostly cached context). Measured on one heavy Claude Code user (September 2026), priced at list.

Flat-rate subscriptions can cost far less than API list prices for heavy use. Treat this as a reference, not a bill.

Where to run it through an API

OpenAI and its cloud partners sell this model through an API. Cheapest first.

Provider
Input $/M
Output $/M
Precision
Context
Uptime
OpenAI
0.1
0.625
not stated
400,000

Prices from OpenRouter’s public provider list. Uptime over the last 30 minutes.

Call GPT-5.4 Nano through the API

OpenRouter exposes this model through an OpenAI-compatible API. Create a key on OpenRouter, then use the model identifier openai/gpt-5.4-nano.

Python
OpenRouter API
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key=os.environ["OPENROUTER_API_KEY"],
)

response = client.chat.completions.create(
    model="openai/gpt-5.4-nano",
    messages=[{"role": "user", "content": "Explain 4-bit quantization in two sentences."}],
)
print(response.choices[0].message.content)
JavaScript
OpenRouter API
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://openrouter.ai/api/v1",
  apiKey: process.env.OPENROUTER_API_KEY,
});

const response = await client.chat.completions.create({
  model: "openai/gpt-5.4-nano",
  messages: [{ role: "user", content: "Explain 4-bit quantization in two sentences." }],
});
console.log(response.choices[0].message.content);
cURL
OpenRouter API
curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5.4-nano",
    "messages": [{"role": "user", "content": "Explain 4-bit quantization in two sentences."}]
  }'

Prices and providers are in the sections above. Check the exact identifier on the OpenRouter model page.

Specifications

Developer
Released
17 Mar 2026
Type
Proprietary, closed weights
Context window
400,000 tokens, up to 128,000 output tokens
Reads
text, file and image
Writes
text
Knowledge cutoff
31 Aug 2025

Frozen facts (name, specifications, links) are fixed when the page is created. Scores, prices and download numbers: refreshed daily; last update 24 Nov 2026. Scores: Epoch AI (Capabilities & benchmarking, CC BY 4.0), adapted by KernelFox.