GPT-5.4 Image 2

OpenAIReasoning
openai/gpt-5.4-image-2Closed API

Image model for prompt-driven generation, editing, and visual design workflows

Benchmark Pricing$11.00 / 1M in$20.63 / 1M out$2.75 cache read
Context: 272,000 tokens•Max Output: 128,000 tokens•Released: 2026-04-21

TECHNICAL SPECIFICATIONS

Context Window272,000272K tokens
Max Output128,000128K tokens
LicenseProprietaryCloud API only
Input Modalities
TextVisionPDF
Function / Tool CallingNot Supported
Structured OutputsPrompt Based

MODEL CONTEXT PROTOCOL (MCP) READINESS

⚠ GPT-5.4 Image 2 does not natively advertise tool-calling capabilities. When connecting to MCP servers, function calling must be handled via structured prompt injection.

MCP Context Window Recommendations

With a context capacity of 272,000 tokens, this model can handle moderately large MCP tool definitions and multi-turn conversation logs comfortably.

API CALL INVOCATION EXAMPLE

// Example: Calling GPT-5.4 Image 2 via OpenAI SDK
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.OPENAI_API_KEY,
});

const response = await client.chat.completions.create({
  model: "openai/gpt-5.4-image-2",
  messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});

console.log(response.choices[0].message.content);

PRICING BY PROVIDER

3 providers
AI/ML APIopenai/gpt-5.4-image-2
$11.00 / $20.63$2.75 cache
Kilo Gatewayopenai/gpt-5.4-image-2
$8.00 / $15.00$2.00 cache
OpenRouteropenai/gpt-5.4-image-2
$8.00 / $15.00$2.00 cache

Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.

Prompt Caching Active

This model supports prompt caching at $2.75 / 1M tokens, saving up to 75% on repetitive MCP tool definitions and system instructions.

MODEL RESOURCES