OpenAI: GPT-5.2-Codex

Not supportedQuick start

GPT-5.2-Codex is OpenAI's coding-specialist model, released 2026-01, built for both interactive development and long-running autonomous engineering tasks. It improves on GPT-5.1-Codex with stronger instruction adherence, cleaner code output, and more steerable behavior. The model handles project scaffolding, debugging, large-scale refactoring, and structured code review, and it can use tools for search, dependency installation, and environment setup.

MirAPI doesn’t offer this model. The prices shown are the official list prices.

Modalities
inTextinImageoutText
Price / 1M
$1.75 / $14.00
Context
400K
Released
Jan 14, 2026

Capabilities

ReasoningVisionTool useLong contextPrompt cachingStructured output

Parameters

Request parameters this model accepts through the API.

include_reasoningmax_completion_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstool_choicetoolsverbosity

Benchmarks

bar = score (0–100) · ▏ median

Scores come from vendor reports and public leaderboards, not private evals.

Intelligence Index
General ability
28.5
#48

Showcase

Every chat model gets the same three fixed prompts. Outputs are archived verbatim, so you can copy a prompt and reproduce the result.

Task prompt · identical for all models
Build a single-file HTML page using three.js from a CDN: a low-poly planet with a tilted ring of ~200 orbiting particles, a soft key light plus rim light, slow auto-rotation, and drag-to-orbit controls. No build tools — one file only.
Archived output
Archive not published yet

Every model will run this exact prompt, and its output will appear here verbatim with token counts and the cost per run.

Quick start

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.mirapi.ai/v1",   # changed
    api_key=os.environ["MIRAPI_API_KEY"],   # changed
)

resp = client.chat.completions.create(
    model="",
    messages=[{"role": "user", "content": "Hello"}],
)
Wire GPT-5.2-Codex into your product

1M free tokens to start, no card required. It’s OpenAI-compatible, so you only change the base URL.

Start free