openaiVision
OpenAI: GPT-5.1-Codex-Mini
GPT-5.1-Codex-Mini is a smaller and faster version of GPT-5.1-Codex
Context
400k tokens
Input / 1M tokens
$0.25
Output / 1M tokens
$2
Benchmark
—
Pricing
Input tokens$0.25 per 1M tokens
Output tokens$2 per 1M tokens
Cache read$0.02 per 1M tokens
Technical details
Model IDopenai/gpt-5.1-codex-mini
Context window400k tokens
Input modalitiesimage, text, 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/gpt-5.1-codex-mini',
messages: [{ role: 'user', content: 'Hello!' }],
})Ready to use OpenAI: GPT-5.1-Codex-Mini?
Get an API key and start making requests in minutes.
Get an API key