openai/gpt-5.4

OpenAI: GPT-5.4

Context length
1050K
Input / 1M tokens
$2.50
Output / 1M tokens
$15.00
Released
2026-03-05
Modality
text+image+file->text

About OpenAI: GPT-5.4

GPT-5.4 is OpenAI’s latest frontier model, unifying the Codex and GPT lines into a single system. It features a 1M+ token context window (922K input, 128K output) with support for...

Call OpenAI: GPT-5.4

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",
    "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",
    "messages": [{"role": "user", "content": "Say hello"}]
  }'

OpenAI keys

OpenRouter keys

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