openaiVision
OpenAI: GPT-4.1 Mini
GPT-4.1 Mini is a mid-sized model delivering performance competitive with GPT-4o at substantially lower latency and cost. It retains a 1 million token context window and scores 45.1% on hard...
Context
1M tokens
Input / 1M tokens
$0.40
Output / 1M tokens
$1.60
Benchmark
—
Pricing
Input tokens$0.40 per 1M tokens
Output tokens$1.60 per 1M tokens
Cache read$0.10 per 1M tokens
Technical details
Model IDopenai/gpt-4.1-mini
Context window1M tokens
Input modalitiesimage, text, file, pdf
Output modalitiestext
TokenizerGPT
Max output tokens32,768
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-4.1-mini',
messages: [{ role: 'user', content: 'Hello!' }],
})Ready to use OpenAI: GPT-4.1 Mini?
Get an API key and start making requests in minutes.
Get an API key