openai/gpt-5.4-nano

OpenAI: GPT-5.4 Nano

Context length
400K
Input / 1M tokens
$0.20
Output / 1M tokens
$1.25
Released
2026-03-17
Modality
text+image+file->text

About OpenAI: GPT-5.4 Nano

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. It supports text and image inputs and is designed for low-latency...

Call OpenAI: GPT-5.4 Nano

Via OpenRouter: one base URL for every provider.

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": "Say hello"}]
  }'

Direct on OpenAI:

curl https://api.openai.com/v1/chat/completions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.4-nano",
    "messages": [{"role": "user", "content": "Say hello"}]
  }'

OpenAI keys

OpenRouter keys

OpenRouter keys work for openai/gpt-5.4-nano regardless of the upstream provider.