Speed
Output tokens / second
Custom pricing for production workloads
A high-performance large language model engineered for advanced reasoning, multimodal understanding, long-context processing, and real-world coding tasks.
openai/gpt-5-4https://api.aimlapi.com/v1Unlike earlier GPT models that optimized primarily for fluency, GPT-5.4 pushes the frontier on structured reasoning and multi-step problem solving. It's not just generating plausible text, it's working through problems the way a thoughtful analyst would, weighing evidence, catching contradictions, and arriving at well-grounded conclusions.
The model is designed to operate at scale across enterprise workflows, developer toolchains, and research environments, handling everything from a quick summarization task to a multi-document analysis spanning thousands of tokens in a single pass.
GPT-5.4 isn’t just an upgrade, it’s a new generation of cognitive AI performance. Leveraging enhanced transformer architecture and a refined training pipeline, it delivers exceptional fluency, logical coherence, and contextual memory across text, image, and structured data inputs.
For developers and engineers evaluating GPT-5.4 for integration, here's a closer look at what the model brings to the table technically.
GPT-5.4 introduces persistent context tracking, preserving meaning across massive documents and multi-turn conversations. This capability empowers professional applications such as technical manuals, legal analyses, or serialization of creative writing without loss of coherence or tone.
Example: GPT-5.4 can analyze a 200-page research report, summarize its core insights, and generate concise recommendations tailored to different audiences, from scientists to investors.
Beyond text, GPT-5.4 handles visual elements, numeric data, and symbolic logic natively. It can describe images, interpret charts, or generate structured JSON outputs in a single prompt. This integrated reasoning pipeline supports advanced workflows in AI-driven design, synthetic biology, and data visualization.
GPT-5.4 is documented as suited to computer-use workflows, including operating computers and carrying out complex workflows across applications. It is also suited to coding tasks, especially writing code to operate computers with libraries like Playwright and issuing mouse and keyboard commands from screenshots.
It is documented as suited to deep web research, particularly for highly specific queries, while maintaining context over longer thinking. It is also suited to professional work involving spreadsheets, presentations, and documents, where it helps get complex work done accurately and efficiently.
See how GPT-5.4 compares in generation speed. Data retrieved Nov 3, 2026.
Output tokens / second
Compare 17 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.
Reasoning across long documents of about 100k tokens.
Following precise instructions about the shape of the answer.
Customer support agent tasks with tool calls.
| Usage | Price | Unit |
|---|---|---|
| Input | $2.5 | 1M tokens |
| Output | $15 | 1M tokens |
| Cached input | $0.25 | 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 |
|---|---|---|
| $2.5 | $15 | |
| $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",
"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",
"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",
"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 has a 1,050,000 tokens context window and can return up to 128,000 tokens.
GPT-5.4 takes image, text as input and returns text.
Use openai/gpt-5-4 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
GPT-5.4 costs $2.5 input and $15 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, GPT-5.4 can stream responses as they are generated.
Yes, GPT-5.4 accepts image input alongside text.
GPT-5.4 was built by OpenAI.