GPT-5 Codex Pricing

    As of August 20, 2026, GPT-5 Codex API pricing is $1.25 per million input tokens and $10.00 per million output tokens. A typical 100K-in / 20K-out request costs $0.33. Source: https://developers.openai.com/api/docs/pricing

    Source: OpenAI API pricing (https://developers.openai.com/api/docs/pricing)

    Updated August 20, 2026400K context$11.25 blended / 1M

    Input $/M

    $1.25

    Output $/M

    $10.00

    Blended / 1M

    $11.25

    100K / 20K request

    $0.33

    GPT-5 Codex specs

    Context Window400K
    Max OutputN/A
    Release Date2025-09-15
    Knowledge Cutoff2024-09-30
    LicenseProprietary
    ThroughputN/A

    GPT-5 Codex benchmarks

    SWE-bench Verified74.5%
    LiveCodeBench84.7%
    Terminal-Bench44.3%
    APEX-Agents20.1%
    IOI9.8%

    Compare GPT-5 Codex

    Same search as the hub. Pick any model, or jump into a priced matchup.

    GPT-5 Codex FAQ

    How much does GPT-5 Codex cost per million tokens?

    As of August 20, 2026, GPT-5 Codex OpenAI API pricing is $1.25 per million input tokens and $10.00 per million output tokens. Input tokens are the prompt you send; output tokens are the completion. Long answers therefore cost more than short ones even when the prompt stays the same. Source: https://developers.openai.com/api/docs/pricing

    What is the blended API cost for GPT-5 Codex?

    On this page the blended GPT-5 Codex API cost is $11.25 for 1 million input tokens plus 1 million output tokens. That 1:1 mix is the comparison scale used across the LLM pricing table. A 3:1 mix (three million input tokens per one million output tokens), which some calculators use, would be about $13.75.

    How much does a typical GPT-5 Codex request cost?

    A typical GPT-5 Codex API request with 100K input tokens and 20K output tokens costs about $0.33 at current rates as of August 20, 2026. Multiply that by daily or monthly volume to estimate spend. Caching, batch APIs, and volume discounts from OpenAI can bring the real invoice lower than the public list rate at https://developers.openai.com/api/docs/pricing.

    What is the context window for GPT-5 Codex?

    GPT-5 Codex supports a 400K token context window. The context window is the total prompt plus conversation history the model can see in one call. Larger windows cost more when you fill them, because every input token is billed per million tokens.

    Is GPT-5 Codex open source?

    No. GPT-5 Codex is a proprietary model by OpenAI. The only public way to call it is OpenAI's API, billed per million input and output tokens. There is no self-host option for the weights.

    What benchmarks does GPT-5 Codex perform well on?

    GPT-5 Codex currently reports SWE-bench Verified 74.5%, LiveCodeBench 84.7%, Terminal-Bench 44.3%. See the performance table for the full eval set. Use those scores with the token prices above when you are choosing between a cheaper LLM and a frontier model. GPQA, SWE-bench, and HLE are the evals people usually compare first.

    Is GPT-5 Codex good for coding?

    GPT-5 Codex scores 74.5% on SWE-bench Verified. Pair that score with OpenAI API pricing on this page: a slightly worse SWE-bench model can still win if it is much cheaper per million tokens. Open the SWE-bench or coding leaderboard from the sidebar for the full ranking, then jump into an LLM comparison against a coding specialist.

    What is the knowledge cutoff for GPT-5 Codex?

    GPT-5 Codex has a published knowledge cutoff of 2024-09-30. Facts after that date are not guaranteed to be in the weights. For current events you still need retrieval or tools, which adds input tokens and therefore API cost per million tokens.

    How do I compare GPT-5 Codex with another LLM?

    Use the Compare picker on this page to start an LLM comparison. Search by model or provider, pick a second model, and AnotherWrapper opens a dedicated GPT-5 Codex vs page with per-million-token prices, blended 1M-in / 1M-out cost, context window, throughput, and benchmarks. You can also open any model from the sidebar, or go back to the LLM pricing table to sort the full index.

    What are the cheapest alternatives to GPT-5 Codex?

    The cheapest LLM alternative depends on whether you optimize for blended token cost, coding evals, or context window. Start with the popular matchups on this page, then sort the LLM pricing table by blended cost to see which hosted APIs undercut GPT-5 Codex. Open-weight models can be cheaper still if you self-host, but that is not the same as OpenAI API pricing on this page.

    How do I use GPT-5 Codex in my application?

    GPT-5 Codex is called through OpenAI's API with an API key. Bill against input and output tokens separately; cache or shorten prompts if spend is high. If you are shipping a full product, AnotherWrapper includes pre-built API routes and templates for OpenAI and 5+ other providers with auth, payments, and deployment already configured.

    How accurate is this GPT-5 Codex pricing data?

    This GPT-5 Codex page tracks the latest published OpenAI API pricing from OpenAI, quoted per million tokens. List rates can differ from invoices because of prompt caching, batch discounts, committed-use tiers, and private contracts. Official rate sheet: https://developers.openai.com/api/docs/pricing. Benchmark scores come from official publications and independent evals, not from a private lab run by AnotherWrapper.

    About GPT-5 Codex API pricing

    GPT-5 Codex is a proprietary model from OpenAI. Current API pricing is $1.25 per million input tokens and $10.00 per million output tokens, with a 400K token context window. A blended 1M-in / 1M-out workload costs $11.25.

    Rank it on the LLM leaderboard, SWE-bench, and Humanity's Last Exam.

    The index

    All Large Language Models

    281 models across 33 providers. Search or jump to a lab — every model page stays linked here.

    Baidu

    1 models

    Inception

    1 models

    inclusionAI

    1 models

    LG AI Research

    1 models

    Nous Research

    1 models

    Sakana AI

    1 models

    StepFun

    1 models

    Tencent

    1 models

    Thinking Machines

    1 models

    Unisound

    1 models

    Upstage

    1 models

    Next step

    You found the model. Now ship the product.

    Auth, billing, and the API layer are already decided. Fork 8 finished AI apps, or have us build the first version with you.