PriceIndex
OpenAI logo

GPT-5.1-Codex Pricing & API Specs

gpt-5.1-codex

GPT-5.1-Codex is a specialized version of GPT-5.1 optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineering tasks.... Built by OpenAI.

Prices updated

Input price

$1.25

per 1M tokens · Standard

Output price

$10

per 1M tokens · Standard

Input limit

400K

tokens

Output limit

128K

tokens

Input formats

TextImageVideoAudioPDF

Output formats

TextImageVideoAudioPDF
Compare

GPT-5.1-Codex price history

2 price records since 9/25/2026

GPT-5.1-Codex cost calculator

Input20M tokens
Output5M tokens

$75/month

Standard pricing

    Overview

    What is GPT-5.1-Codex?

    GPT-5.1-Codex is a text & reasoning and vision and code & slms model from OpenAI priced at $1.25 input and $10 output per 1M tokens, with a 400K context window. It sits in the higher price range, so it fits quality-focused work and it scores 23.7 on AA Intelligence.

    Price: Gemini 2.5 Pro Preview 06-05 (+$0.000)Price: GPT-5.1-Codex-Max (+$0.000)Price: GPT-5.1 (+$0.000)Score: Claude Opus 4.5 (AA +0)Score: GLM 5V Turbo (AA −0)Score: Kimi K2.5 (AA −0)

    Benchmarks

    GPT-5.1-Codex benchmarks & speed

    How GPT-5.1-Codex scores on standardized evaluations, and where it lands among every model we track.

    23.7

    Intelligence Index

    Better than 60% of 153 models

    1151

    DesignArena Elo

    Better than 30% of 95 models

    Reasoning

    GPQA Diamond

    86.0%

    Graduate-level scientific reasoning · top 38%

    HLE

    25.7%

    Humanity's Last Exam · top 44%

    Latency & design

    DesignArena win rate
    54.6%
    Design battles judged
    2,005

    Independent scores from Artificial Analysis and DesignArena · updated 10/30/2026. Higher is better; ranks compare against every model we track with that score.

    Rates

    GPT-5.1-Codex pricing

    Pricing is based on token usage. Provider-specific caching, batch, regional, and tool charges may affect the final cost.

    Input · Standard

    $1.25

    Per 1M tokens

    Cached input · Standard

    $0.13

    Per 1M tokens

    Capabilities

    GPT-5.1-Codex Tools

    Tools available when using GPT-5.1-Codex through supported provider APIs.

    Strengths and limitations

    Strengths

    • Price rank 260 of 330 tracked models (1 = cheapest, by blended price).
    • Blended price at 3 input : 1 output is $3.44 per 1M tokens.
    • 1M input + 250K output tokens costs about $3.75.
    • Context window 400K vs a median of 262K (1.5× larger).

    Limitations

    • Generated tokens cost 8× more than input tokens, which matters for verbose responses.
    • Large context capacity does not guarantee consistent retrieval across the entire prompt.
    • Benchmarks are directional; test accuracy, latency and reliability on your own workload before committing.

    Public listed prices, checked Dec 4, 2026. Benchmarks as published by their sources. Confirm with the provider.

    Same provider

    More models from OpenAI

    View provider →
    16K

    $0.50 in · $1.50 out

    View model

    $1.00 in · $2.00 out

    View model

    $3.00 in · $4.00 out

    View model

    $1.50 in · $2.00 out

    View model

    Frequently asked questions about GPT-5.1-Codex

    GPT-5.1-Codex is a text & reasoning and vision and code & slms model from OpenAI. GPT-5.1-Codex is a specialized version of GPT-5.1 optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineering tasks....

    GPT-5.1-Codex costs $1.25 per million input tokens and $10 per million output tokens on standard pricing. A workload of 20M input and 5M output tokens a month is about $75.

    GPT-5.1-Codex accepts up to 400,000 tokens (400K) of input and can return up to 128,000 tokens in one response.

    Yes, GPT-5.1-Codex supports function/tool calling and structured (JSON) outputs. Supported tools: Function calling, Structured outputs, JSON mode, Reasoning, Deterministic seed, Prompt caching.

    GPT-5.1-Codex accepts Text, Image as input and produces Text as output.

    GPT-5.1-Codex is available from 1 API provider: Azure. Prices can differ by provider.

    GPT-5.1-Codex was released by OpenAI in 2025-11-13.