GPT-5.4 Nano API

GPT-5.4 Nano on AIMLAPI.

Modalities
Image, TextText
In / Out price
$0.2116/$1.32per 1M
Context window
400K tokens
Released
Mar 17, 2026

GPT-5.4 Nano overview

The pelican test: one prompt, every text model, unedited SVG output from Nov 3, 2026.

SVG of a pelican riding a bicycle, written by GPT-5.4 Nano through AI/ML API

GPT-5.4 Nano specs

Model ID
openai/gpt-5.4-nano
Developer
OpenAI
Context window
400,000 tokens
Max output
128,000 tokens
Input
Image, Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.

Agentic and multi-step workflows
Reliable tool-calling and instruction-following suit agent loops that plan, call tools, and iterate.

Complex reasoning
Extended reasoning improves reliability on multi-step math, logic, and technical analysis.

Long-document analysis
Summarize and extract from contracts, papers, and reports without aggressive chunking.

Use cases

GPT-5.4 Nano is suited to classification, data extraction, ranking, and simple coding subagents that handle supporting tasks.

It is also documented as a fit for fast coding workflows, including targeted edits, codebase navigation, front-end generation, and debugging loops where low latency matters.

Another documented use case is computer-using or agentic systems that need to capture and interpret screenshots and take well-scoped actions quickly.

It is also described as suitable for real-time or high-volume automation, including lightweight automation, high-volume request routing, and background tasks where cost and latency are critical.

Capabilities

  • Function calling
  • Reasoning
  • Streaming
  • Structured outputs
  • Web search

GPT-5.4 Nano benchmarks by Artificial Analysis

See how GPT-5.4 Nano compares in generation speed. Data retrieved Nov 3, 2026.

Speed

Output tokens / second

Benchmark results

Compare 9 models available on AI/ML API across 5 independent benchmarks.

Humanity's Last Exam

Expert-written questions across academic subjects.

GPT-5.4 Nano API pricing

GPT-5.4 Nano pricing in US dollars
UsagePriceUnit
Input$0.21161M tokens
Output$1.321M tokens
Cached input$0.02121M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

GPT-5.4 Nano vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
GPT-5.4 Nano$0.2116$1.32
GPT-6 Luna$0.1$0.5
GPT-6.1 Terra$1$5
GPT-6.1 Sol$2$10
GPT-6.1 Terra Pro$2.12$10.58

How to use the GPT-5.4 Nano API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "openai/gpt-5.4-nano",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

Related articles

All posts

GPT-5.4 Nano FAQ

What is the context window of GPT-5.4 Nano?

GPT-5.4 Nano has a 400,000 tokens context window and can return up to 128,000 tokens.

What inputs and outputs does GPT-5.4 Nano support?

GPT-5.4 Nano takes image, text as input and returns text.

What is the model ID for GPT-5.4 Nano?

Use openai/gpt-5.4-nano as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

How much does GPT-5.4 Nano cost?

GPT-5.4 Nano costs $0.2116 input and $1.32 output per 1M tokens on AI/ML API, billed as you go with no subscription.

Does GPT-5.4 Nano support streaming?

Yes, GPT-5.4 Nano can stream responses as they are generated.

Can GPT-5.4 Nano read images?

Yes, GPT-5.4 Nano accepts image input alongside text.

Who created GPT-5.4 Nano?

GPT-5.4 Nano was built by OpenAI.

Start building with GPT-5.4 Nano

GPT-5.4 Nano API

openai/gpt-5.4-nano

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "openai/gpt-5.4-nano",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'