openaiVision
OpenAI: GPT-5.2 Pro ($$$$)
GPT-5.2 Pro is OpenAI’s most advanced model, offering major improvements in agentic coding and long context performance over GPT-5 Pro. It is optimized for complex tasks that require step-by-step reasoning,...
Context
400k tokens
Input / 1M tokens
$21
Output / 1M tokens
$168
Benchmark
—
Pricing
Input tokens$21 per 1M tokens
Output tokens$168 per 1M tokens
Technical details
Model IDopenai/gpt-5.2-pro
Context window400k tokens
Input modalitiesimage, text, 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.2-pro',
messages: [{ role: 'user', content: 'Hello!' }],
})Ready to use OpenAI: GPT-5.2 Pro ($$$$)?
Get an API key and start making requests in minutes.
Get an API key