OpenAISees images
GPT-5.4 Image 2
openai/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. It enables rich multimodal workflows, allowing users to seamlessly move between reasoning, coding, and...
Context
272K tokens
Input, 1M tokens
$9.2
Output, 1M tokens
$17
Benchmark
—
Uptime and speed
Loading…
Pricing
Charged from your prepaid balance for the tokens actually used.
Input tokens$9.2 per 1M tokens
Output tokens$17 per 1M tokens
Cache read$2.3 per 1M tokens
Apps and activity
Loading…
Technical details
Model IDopenai/gpt-5.4-image-2
Context window272K tokens
AcceptsImages, Text, Files, pdf
ProducesImages, Text
TokenizerGPT
Max output tokens128,000
How to connect
The API is OpenAI-compatible: the official SDKs, LangChain and any client with a "base URL" field work.
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://getmegabrain.com/api/gateway/v1',
apiKey: process.env.MEGABRAIN_API_KEY,
})
const response = await client.chat.completions.create({
model: 'openai/gpt-5.4-image-2',
messages: [{ role: 'user', content: 'Hello!' }],
})Start using GPT-5.4 Image 2
Create a free account, get a key in your dashboard and send your first request. Top up your balance when you need it.