We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

OpenAI: GPT-5.4

openai/gpt-5.4
TextInput: text · image · fileToolsReasoning1.1MAdded Mar 5, 2026

Try OpenAI: GPT-5.4 now

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

OpenAI: GPT-5.4 at a glance

  • Input price is 456% higher than the median of 434 Text models.
  • Context window of 1,050,000 tokens, enough for long documents and multi-turn conversations.
  • Supports tool (function) calling for agents and integrations.
  • Supports structured JSON output with a schema.
  • Supports reasoning effort control.
  • Accepts images as input (vision).
  • A typical request (1,000 input / 500 output tokens) costs about $0.04.

About OpenAI: GPT-5.4

GPT-5.4 is OpenAI's frontier text model, released on 5 March 2026. It unifies the Codex and GPT lines into a single system, so instead of choosing between a coding-focused model and a general-purpose one, you get one model that covers both. It sits in the text category and is made by OpenAI.

The model accepts text, images and files as input, and returns text. Its context window is 1,050,000 tokens, with a maximum output of 128,000 tokens. That combination means you can send very large inputs, such as long documents, whole codebases or extended conversation histories, and still have room for a substantial response. Image and file inputs make it possible to mix formats in a single request rather than converting everything to plain text first.

The practical uses follow from those capabilities. Large context plus file input suits document analysis, where you hand over contracts, reports or specifications and ask questions across the whole set. Code review, refactoring and repository-level reasoning are natural fits given the Codex lineage and the ability to hold a large amount of source in context. Image input supports tasks like reading screenshots, diagrams or scanned pages alongside related text. Because the model supports tools and structured outputs, it also works well as the reasoning engine behind agents and pipelines that need to call functions or return data in a fixed schema.

You call it through api14's OpenAI-compatible API using the model id "openai/gpt-5.4". The supported request parameters are include_reasoning, max_completion_tokens, max_tokens, reasoning, reasoning_effort, response_format, seed, structured_outputs, tool_choice, tools and verbosity. Reasoning and verbosity controls let you trade depth against latency, seed gives you reproducibility where you need it, and tools with tool_choice covers function calling. If you already use an OpenAI client library, pointing it at api14 and changing the model id is enough.

One thing to keep in mind is that output is text only. If your application needs generated images, audio or other output modalities, this model will not cover that part of the pipeline. It is also a frontier model with a very large context window, so for small, simple tasks a lighter model may respond faster and be easier to manage. For long-context reasoning, coding and tool-driven workflows, though, GPT-5.4 is the stronger choice.

How to call the OpenAI: GPT-5.4 API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "openai/gpt-5.4".
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.chat.completions.create({
  "model": "openai/gpt-5.4",
  "messages": [
    {
      "role": "user",
      "content": "Explain vector databases in two sentences."
    }
  ]
});
console.log(result.choices[0].message.content);

Supported parameters

include_reasoningmax_completion_tokensmax_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstool_choicetoolsverbosity

Specifications

Context length
1,050,000
Max output
128,000
Input
text, image, file
Output
text

Requests on api14 · last 7 days

10-1610-1710-1810-1910-2010-2110-22

OpenAI: GPT-5.4: frequently asked questions

How much does the OpenAI: GPT-5.4 API cost?
OpenAI: GPT-5.4 costs Input $8.75 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of OpenAI: GPT-5.4?
OpenAI: GPT-5.4 reads up to 1,050,000 tokens per request: prompt, history and documents together. It writes up to 128,000 output tokens per response.
What can OpenAI: GPT-5.4 do?
OpenAI: GPT-5.4 accepts text, image, file and returns text. It supports tool calling, structured JSON output, reasoning effort control.
How do I call OpenAI: GPT-5.4 from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "openai/gpt-5.4". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to OpenAI: GPT-5.4?
Comparable Text models at a similar price: OpenAI: GPT-5.5 (batch), Fireworks: Ember-1, Anthropic: Claude Sonnet 4.6. Each runs through the same API key, so switching is one string.

OpenAI: GPT-5.4 community

New topic

This community has no topics yet. Open the first one about OpenAI: GPT-5.4.