Back to Models

GPT-5.4 Nano

openaiopenai/gpt-5.4-nano

Smallest and fastest GPT-5.4 variant for lightweight agentic tasks. 400K context window and 128K max output with reasoning support.

Context Length
400K
Max Output
128K
Input Price
$0.360/ 1M tokens
Output Price
$2.10/ 1M tokens

Modalities

textimagetext

Pricing Breakdown

TypeRate
Input$0.360 / 1M tokens
Output$2.10 / 1M tokens

Supported Parameters

temperaturemax_tokenstop_ptoolstool_choiceresponse_formatreasoningstop

API Usage Examples

China users: replace api.therouter.ai with api.therouter.com.cn in the examples below for lower latency.

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "openai/gpt-5.4-nano",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'