openaiVision
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
$8
Output / 1M tokens
$15
Benchmark
—
Pricing
Input tokens$8 per 1M tokens
Output tokens$15 per 1M tokens
Cache read$2 per 1M tokens
Technical details
Model IDopenai/gpt-5.4-image-2
Context window272k tokens
Input modalitiesimage, text, file, pdf
Output modalitiesimage, text
TokenizerGPT
Max output tokens128,000
Use with MegaBrain
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!' }],
})Ready to use OpenAI: GPT-5.4 Image 2?
Get an API key and start making requests in minutes.
Get an API key