OpenAI

GPT-5.1 Codex

400K ctxTextImage Tools Reasoning

Released Nov 13, 2025 · 187B tokens this week · 2 providers

Overview

A GPT-5.1 variant specialised for software engineering: repository-scale edits, test-driven iteration and long agent loops in a terminal. It is trained to keep working through multi-file refactors instead of answering in one shot. Less chatty than the general model and noticeably better at patch formats.

programmingagentsreasoning

Providers

Reference data — not yet measured from live traffic

PROVIDERMAX OUTOUTPUT /MQUANT
OpenAICheapest
400K128K$1.25$10.00208ms8899.89%Full
Azure AI Foundry
400K128K$1.31$10.50860ms7099.64%Full

Latency p50 reflects a provider’s API endpoint responsiveness — the round-trip to its API, not per-token inference time. These figures, with throughput and uptime, are reference data until the gateway aggregates its own traffic.

Price comparison

Blended $ per 1M tokens

GPT-5.1 Codex$7.81

Blended rate per 1M tokens, weighted one part prompt to three parts completion — roughly the shape of a chat workload. Your mix will move the number.

Call it

OpenAI-compatible — swap the base URL and go

curl https://model.cards/api/v1/chat/completions \
  -H "Authorization: Bearer $MODELCARDS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5.1-codex",
    "messages": [
      { "role": "user", "content": "Summarize the tradeoffs of speculative decoding." }
    ]
  }'