GPT‑5.4 Pro API

A reasoning-optimized large language model built for high-stakes analytical work, long-form document processing, and multi-step problem solving, where accuracy actually matters.

Modalities
TextText
In / Out price
$31.74/$190.44per 1M
Context window
1.05M tokens
Released
Mar 16, 2026

GPT‑5.4 Pro overview

GPT‑5.4 Pro by OpenAI

Meet GPT‑5.4‑Pro, OpenAI’s most advanced large language model, built for professionals who demand precision, depth, and context‑aware intelligence.

GPT‑5.4 Pro specs

Model ID
openai/gpt-5.4-pro
Developer
OpenAI
Context window
1,050,000 tokens
Max output
128,000 tokens
Input
Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

What is GPT-5.4-Pro API?

A specialized iteration in OpenAI's GPT-5 family, engineered specifically around reasoning depth and task accuracy. It sits within the GPT-5 lineage as a performance-tuned variant, the "Pro" designation reflects optimizations made specifically for professional and technical use cases that demand more precision than baseline GPT-5 offers.

Deep Multi‑Step Reasoning

GPT‑5.4‑Pro is optimized for analytical and logical reasoning, allowing it to break down problems, handle nested conditions, and produce coherent multi‑stage solutions, ideal for tasks like algorithmic design, legal drafting, and complex research synthesis.

Precision Coding and Debugging

With support for dozens of programming languages, the model delivers more accurate code completions, bug detection, and refactoring suggestions. GPT‑5.4‑Pro can analyze entire codebases within long contexts, improving project scalability and maintainability.

Extended Context Retention

Leveraging OpenAI’s new long‑context transformer architecture, the model maintains focus across documents, conversations, or sessions spanning hundreds of thousands of tokens, ensuring continuity and nuanced understanding in ongoing projects.

Adaptive Communication Style

Whether drafting academic reports, business proposals, or creative narratives, GPT‑5.4‑Pro automatically adjusts tone, structure, and vocabulary to match the user’s desired output, offering natural, human‑like fluency in over 50 languages.

Enterprise‑Grade Reliability

Built for professional environments, GPT‑5.4‑Pro integrates robust security protocols, scalable API access, and customizable model behavior. Organizations can tune it for domain‑specific reasoning, compliance, or internal data privacy needs.

Use cases

GPT-5.4 Pro is documented as suitable for professional knowledge work, including document and spreadsheet creation, coding, data analysis, agentic workflows, and software automation.

It is also described as useful when output needs to be decision-ready, hard to revise after the fact, or “exec-safe,” with an emphasis on quality and depth over speed.

For deeper analytical work, it is said to fit scenarios requiring analytical depth and completeness, including scientific research and complex problems.

It is additionally presented as a strong choice for long-horizon deliverables such as slide decks, financial models, and legal analysis.

Capabilities

  • Function calling
  • Streaming
  • Structured outputs
  • Reasoning
  • Web search

GPT‑5.4 Pro API pricing

GPT‑5.4 Pro pricing in US dollars
UsagePriceUnit
Input$31.741M tokens
Output$190.441M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

GPT‑5.4 Pro vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
GPT‑5.4 Pro$31.74$190.44
GPT-6 Luna$0.1$0.5
GPT-6.1 Terra$1$5
GPT-6.1 Sol$2$10
GPT-6.1 Terra Pro$2.12$10.58

How to use the GPT‑5.4 Pro API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "openai/gpt-5.4-pro",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

Related articles

All posts

GPT‑5.4 Pro FAQ

What is the context window of GPT‑5.4 Pro?

GPT‑5.4 Pro has a 1,050,000 tokens context window and can return up to 128,000 tokens.

What inputs and outputs does GPT‑5.4 Pro support?

GPT‑5.4 Pro takes image, text as input and returns text.

What is the model ID for GPT‑5.4 Pro?

Use openai/gpt-5.4-pro as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

How much does GPT‑5.4 Pro cost?

GPT‑5.4 Pro costs $31.74 input and $190.44 output per 1M tokens on AI/ML API, billed as you go with no subscription.

Does GPT‑5.4 Pro support streaming?

Yes, GPT‑5.4 Pro can stream responses as they are generated.

Can GPT‑5.4 Pro read images?

Yes, GPT‑5.4 Pro accepts image input alongside text.

Who created GPT‑5.4 Pro?

GPT‑5.4 Pro was built by OpenAI.

Can I access GPT‑5.4 Pro through an API?

Yes. It is available via the endpoint https://api.aimlapi.com/v1/chat/completions.

Start building with GPT‑5.4 Pro

GPT‑5.4 Pro API

openai/gpt-5.4-pro

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "openai/gpt-5.4-pro",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'