Speed
Output tokens / second
Custom pricing for production workloads
GPT-5.4 Nano on AIMLAPI.
openai/gpt-5.4-nanohttps://api.aimlapi.com/v1Coding 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.
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.
See how GPT-5.4 Nano compares in generation speed. Data retrieved Nov 3, 2026.
Output tokens / second
Compare 9 models available on AI/ML API across 5 independent benchmarks.
Expert-written questions across academic subjects.
Graduate-level science questions written to resist web search.
Agentic tasks completed in a command-line environment.
Reasoning across long documents of about 100k tokens.
Python coding tasks drawn from scientific research.
| Usage | Price | Unit |
|---|---|---|
| Input | $0.2116 | 1M tokens |
| Output | $1.32 | 1M tokens |
| Cached input | $0.0212 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $0.2116 | $1.32 | |
| $0.1 | $0.5 | |
| $1 | $5 | |
| $2 | $10 | |
| $2.12 | $10.58 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"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."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "openai/gpt-5.4-nano",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "openai/gpt-5.4-nano",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());GPT-5.4 Nano has a 400,000 tokens context window and can return up to 128,000 tokens.
GPT-5.4 Nano takes image, text as input and returns text.
Use openai/gpt-5.4-nano as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
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.
Yes, GPT-5.4 Nano can stream responses as they are generated.
Yes, GPT-5.4 Nano accepts image input alongside text.
GPT-5.4 Nano was built by OpenAI.