OpenAI: GPT-5.1-Codex

Coming soonQuick Start

GPT-5.1-Codex is OpenAI's software-engineering variant of GPT-5.1, released 2025-11 and built for agentic coding workflows. It handles project scaffolding, feature development, debugging, large-scale refactoring, and structured code review, with dynamic reasoning effort that scales from quick fixes to multi-hour autonomous runs. Compared with GPT-5.1, it follows developer instructions more closely and produces cleaner code.

This model is not routed on MirAPI yet — prices shown are the official list prices. Create an account to get notified when it goes live.

Modalities
inTextinImageoutText
Price / 1M
$1.25 / $10.00
Context
400K
Knowledge cutoff

Capabilities

ReasoningVisionTool useLong contextPrompt cachingStructured output

Showcase

Three fixed prompts, identical for every chat model. Outputs are archived verbatim — copy the prompt to reproduce.

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; the output lands here verbatim, with tokens and per-run cost.

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="openai/gpt-5.1-codex",
    messages=[{"role": "user", "content": "Hello"}],
)
Wire GPT-5.1-Codex into your product

1M free tokens to start · no card · OpenAI-compatible, one base_url change

Start free