openaiVision
OpenAI: o4 Mini
OpenAI o4-mini is a compact reasoning model in the o-series, optimized for fast, cost-efficient performance while retaining strong multimodal and agentic capabilities. It supports tool use and demonstrates competitive reasoning...
Context
200k tokens
Input / 1M tokens
$1.10
Output / 1M tokens
$4.40
Benchmark
—
Pricing
Input tokens$1.10 per 1M tokens
Output tokens$4.40 per 1M tokens
Cache read$0.28 per 1M tokens
Technical details
Model IDopenai/o4-mini
Context window200k tokens
Input modalitiesimage, text, file, pdf
Output modalitiestext
TokenizerGPT
Max output tokens100,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/o4-mini',
messages: [{ role: 'user', content: 'Hello!' }],
})