Moduck

OpenAI: GPT-5.4 Image 2

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

Model lab
OpenAI
Model family
gpt
Modalitiesimage, text, pdf → image, text
Context window272,000
Maximum output128,000
InputUSD 6.4 / 1M tokens
OutputUSD 12 / 1M tokens

Quickstart

Use your Moduck API Key, set the API base URL to https://api.moduck.ai/v1, and set the model parameter to openai/gpt-5.4-image-2.

import os
import requests

base_url = "https://api.moduck.ai/v1"
api_key = os.environ["MODUCK_API_KEY"]
model_id = "openai/gpt-5.4-image-2"

response = requests.post(
    f"{base_url}/chat/completions",
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    json={
        "model": model_id,
        "messages": [{"role": "user", "content": "Hello!"}],
        "stream": False,
    },
    timeout=60,
)
response.raise_for_status()
print(response.json())

Use the familiar OpenAI-style chat request format to make model integration easier.

GPT-5.4 Image 2 API Pricing

TypePrice information
InputUSD 6.4 / 1M tokens
OutputUSD 12 / 1M tokens
Cached inputUSD 1.6 / 1M tokens

Performance

Measured on the Moduck gateway across live traffic, hour by hour over the last 24 hours. Time to first token is how long before anything appears; throughput is how fast the answer is written after that; end-to-end latency is the whole round trip. Figures are medians unless the card says otherwise.

Performance trends

Image throughput5.9 images/minCurrent
Queue wait0.7 sCurrent
Completion time11.9 sCurrent
Image throughput
Current5.9 images/min
Window average5.8 images/min
Queue wait
Current0.7 s
Window average0.7 s
Completion time
Current11.9 s
Window average12.0 s
Tail completion time (P99)
Current23.5 s
Window average27.0 s
Retry rate
Current0.9%
Window average1.0%
Error rate
Current0.0%
Window average0.1%

Availability

Uptime is the share of time at least one provider serving this model responded. Availability is stricter: the share of requests actually served. A provider that answers but fails part of the traffic lowers availability without lowering uptime. Both cover the last three days.

Uptime100%At least one provider responded
Availability100%Requests actually served
Error rate0%Share of failed requests
Served requests, hour by hour
24 hours agoNow

GPT-5.4 Image 2 Compare models

ModelInput priceOutput priceContext windowCapabilities
GPT-5.4 Image 2This pageUSD 6.4 / 1M tokensUSD 12 / 1M tokens272,000Image output · Reasoning
GPT-5 Image MiniUSD 2 / 1M tokensUSD 1.6 / 1M tokens400,000Image output · Reasoning
GPT-5 ImageUSD 8 / 1M tokensUSD 8 / 1M tokens400,000Image output · Reasoning
Nano Banana 2 PreviewUSD 0.4 / 1M tokensUSD 2.4 / 1M tokens65,536Image output · Reasoning
GPT-Image-1.5USD 4 / 1M tokensUSD 25.6 / 1M tokens—Image output

Model specifications

Input
image, text, pdf
Output
image, text
Context window
272,000
Maximum output
128,000
Release date
2026-04-21
Attachments
Yes
Reasoning
Yes
Tool calling
No
Structured output
Yes
Temperature setting
No
Open weights
No

Frequently asked questions

What is GPT-5.4 Image 2 for?

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

What inputs and outputs does GPT-5.4 Image 2 support?

Recorded inputs: images, text, PDF; outputs: images, text.

How is GPT-5.4 Image 2 priced?

The pricing table shows the current recorded Moduck price. For example: Input USD 6.4 / 1M tokens; Output USD 12 / 1M tokens. See the pricing table for all units, variants, and conditions.

What specifications are recorded for GPT-5.4 Image 2?

Current model records list Context window 272,000 tokens; Maximum output 128,000 tokens.

What model parameter does the Quickstart use?

The example uses openai/gpt-5.4-image-2. This value comes from the page identifier and is not confirmed as a callable Moduck public ID.

Can I call this model through the Moduck API now?

This page has no verified Moduck API call for this model. A Quickstart example or reserved ID does not establish access; check the models available to your account.