Skip to content
Try Hanzo
Language: English (United States)

GPT-5.4 Image 2

[GPT-5.4](https://openrouter.ai/openai/gpt-5.4) Image 2 combines OpenAI's GPT-5.4 model with state-of-the-art image generation capabilities from GPT Image 2.

Context Window
272K
In
$8.90per million tokens
Out
$16.70per million tokens

OpenAI

Model IDopenai/gpt-5.4-image-2

Specifications

Context Window
272K
Modalities
image, text
Price
$8.90 in · $16.70 out, per million tokens
Model ID
openai/gpt-5.4-image-2

Quick start

openai/gpt-5.4-image-2

$8.90 in · $16.70 out, per million tokens

TypeScript
import OpenAI from 'openai'
 
const client = new OpenAI({
  apiKey: process.env.HANZO_API_KEY,
  baseURL: 'https://api.hanzo.ai/v1'
})
 
const response = await client.chat.completions.create({
  model: 'openai/gpt-5.4-image-2',
  messages: [{ role: 'user', content: 'Hello!' }]
})
 
console.log(response.choices[0].message.content)
Get an API key →
10K100K1M$0.100$1.00$10.00$100.00

$122Bill a month

GPT-5.4 Image 2 costs 2.0× more for this mix.

GPT-5.4 Image 2$122272K
GPT-5.4$61.201M

Use GPT-5.4 Image 2 via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.