openaiVision

OpenAI: GPT-5.4

GPT-5.4 is OpenAI’s latest frontier model, unifying the Codex and GPT lines into a single system. It features a 1M+ token context window (922K input, 128K output) with support for...

Context
1M tokens
Input / 1M tokens
$2.50
Output / 1M tokens
$15
Benchmark

Pricing

Input tokens$2.50 per 1M tokens
Output tokens$15 per 1M tokens
Cache read$0.25 per 1M tokens

Technical details

Model IDopenai/gpt-5.4
Context window1M tokens
Input modalitiestext, image, file, pdf
Output modalitiestext
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',
  messages: [{ role: 'user', content: 'Hello!' }],
})

Ready to use OpenAI: GPT-5.4?

Get an API key and start making requests in minutes.

Get an API key