openaiVision
OpenAI: GPT-5.2
GPT-5.2 is the latest frontier-grade model in the GPT-5 series, offering stronger agentic and long context perfomance compared to GPT-5.1. It uses adaptive reasoning to allocate computation dynamically, responding quickly...
Context
400k tokens
Input / 1M tokens
$1.75
Output / 1M tokens
$14
Benchmark
—
Pricing
Input tokens$1.75 per 1M tokens
Output tokens$14 per 1M tokens
Cache read$0.17 per 1M tokens
Technical details
Model IDopenai/gpt-5.2
Context window400k tokens
Input modalitiesfile, image, text, 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.2',
messages: [{ role: 'user', content: 'Hello!' }],
})