OpenAISees images

GPT-5.2-Codex

openai/gpt-5.2-codex

GPT-5.2-Codex is an upgraded version of GPT-5.1-Codex optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineering tasks....

Context
400K tokens
Input, 1M tokens
$2.01
Output, 1M tokens
$16
Benchmark
—

Uptime and speed

Loading…

Pricing

Charged from your prepaid balance for the tokens actually used.

Input tokens$2.01 per 1M tokens
Output tokens$16 per 1M tokens
Cache read$0.2 per 1M tokens

Apps and activity

Loading…

Technical details

Model IDopenai/gpt-5.2-codex
Context window400K tokens
AcceptsText, Images, pdf
ProducesText
TokenizerGPT
Max output tokens128,000

How to connect

The API is OpenAI-compatible: the official SDKs, LangChain and any client with a "base URL" field work.

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-codex',
  messages: [{ role: 'user', content: 'Hello!' }],
})

Start using GPT-5.2-Codex

Create a free account, get a key in your dashboard and send your first request. Top up your balance when you need it.