OpenAI: GPT-5.4
Chatopenai/gpt-5.4GPT-5.4 is OpenAI’s latest frontier model, unifying the Codex and GPT lines into a single system. It features a 1M+ token context window (922K input, 128K output) with support for text and image inputs, enabling high-context reasoning, coding, and multimodal analysis within the same workflow.The model delivers improved performance in coding, document understanding, tool use, and instruction following. It is designed as a strong default for both general-purpose tasks and software engineering, capable of generating production-quality code, synthesizing information across multiple sources, and executing complex multi-step workflows with fewer iterations and greater token efficiency.
1M context window
128K max output tokens
Released: 2026-03-05
Supported Protocols:openai
Available Providers:Azure
Capabilities:VisionFunction CallingReasoningPrompt CachingWeb Search
Pricing
| Type | Price |
|---|---|
| Input Tokens | $2.5/M |
| Output Tokens | $15/M |
| Cache Read | $0.25/M |
| Web Search | $0.01/R |
Code Examples
from openai import OpenAIclient = OpenAI(base_url="https://api.ofox.ai/v1",api_key="YOUR_OFOX_API_KEY",)response = client.chat.completions.create(model="openai/gpt-5.4",messages=[{"role": "user", "content": "Hello!"}],)print(response.choices[0].message.content)
Related Models
Frequently Asked Questions
OpenAI: GPT-5.4 on Ofox.ai costs $2.5/M per million input tokens and $15/M per million output tokens. Pay-as-you-go, no monthly fees.
OpenAI: GPT-5.4 supports a context window of 1M tokens with max output of 128K tokens, allowing you to process large documents and maintain long conversations.
Simply set your base URL to https://api.ofox.ai/v1 and use your Ofox API key. The API is OpenAI-compatible — just change the base URL and API key in your existing code.
OpenAI: GPT-5.4 supports the following capabilities: Vision, Function Calling, Reasoning, Prompt Caching, Web Search. Access all features through the Ofox.ai unified API.