OpenAI
GPT-5.4 Nano
OpenAI's ultra-light GPT-5.4 variant for simple low-cost workloads, currently available via API only
Model TypeUltra-Lightweight Large Language Model
Key FeaturesLow-cost Q&A, classification, extraction, and other simple workloads
Caching SupportSupports cached-input pricing
Pricing & Specs
💰 Pricing
Input$0.2 / M tokens
Output$1.25 / M tokens
Cache Hit$0.02 / M tokens
⚙️ Specs
Model TypeUltra-Lightweight Large Language Model
Key FeaturesLow-cost Q&A, classification, extraction, and other simple workloads
Caching SupportSupports cached-input pricing
AvailabilityCurrently API only
API Examples
Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(
api_key="your-api-key",
base_url="https://api.xairouter.com/v1"
)
response = client.chat.completions.create(
model="gpt-5.4-nano",
messages=[
{"role": "user", "content": "Extract the errors from this log"}
]
)
print(response.choices[0].message.content)cURL (OpenAI API)
curl https://api.xairouter.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "gpt-5.4-nano",
"messages": [
{"role": "user", "content": "Extract the errors from this log"}
]
}'