Back to models

GPT-5.1 Codex

A version of GPT-5.1 optimized for agentic coding in Codex.

Context window200,000 tokens
Max output tokens4,096 tokens

Pricing

TypeInputOutput
Standard$2.50 / 1M tokens$20.00 / 1M tokens
Cached input$0.25 / 1M tokens

Parameters

ParameterDefaultRange
Max stop sequences0

Supported features

Capabilities

  • Streaming
  • Reasoning
  • System Prompt

Endpoints

  • Chat Completions
  • Batch

Tools

  • Code Interpreter

Use cases

  • text-chat

Model specifications

Model IDgpt-5.1-codex
FamilyOther
Access typeClosed
Input modalitiestext
Output modalitiestext
Last updatedJanuary 3, 2026