OpenAI: GPT-5.1 CodexOfficial docs

OpenAI: GPT-5.1 Codex

byOpenAI
Official docs

GPT-5.1 Codex is a reasoning model from OpenAI released on Nov 13, 2025. It reads text and images and writes text, with a 400K token context window and up to 128K tokens per reply.

Show more

It costs $1.25 per million input tokens and $10 per million output tokens. Cached input bills at $0.125, 90% less than fresh input.

It supports tool calling, structured JSON output and prompt caching.

14 providers serve it, including Azure, Vercel AI Gateway and Jiekou.AI. The lowest input price is $1.19 per million tokens at Jiekou.AI.

Modalities
In / out price
$1.25 / $10 per 1M
Context
400K
Max output
128K
Released
Nov 13, 2025
Knowledge cutoff
Sep 2024
  • Tool calling
  • Structured output
  • Reasoning
  • Prompt caching
  • Open weights
  • Free to use

GPT-5.1 Codex pricing

USD, as listed on Nov 18, 2026. Most bills are input heavy, so the cached input rate matters as much as the headline price.

Input$1.25 / 1M tokens
Output$10 / 1M tokens
Cached input (read)$0.125 / 1M tokens

GPT-5.1 Codex providers

14 providers serve it, including Azure, Vercel AI Gateway and Jiekou.AI. The lowest input price is $1.19 per million tokens at Jiekou.AI. Each host sets its own price and limits, so the cheapest one is not always the one with the longest context.

ProviderInput /MOutput /MCache read /MContextMax output
Azure$1.25$10$0.125400K128K
Vercel AI Gateway$1.25$10$0.13400K128K
Jiekou.AI$1.19$9.50$0.1187400K128K
AIHubMix$1.25$10$0.125400K128K
Azure Cognitive Services$1.25$10$0.125400K128K
DevPass (LLM Gateway)$1.25$10$0.125400K128K
Eden AI$1.25$10$0.125272K128K
Helicone$1.25$10$0.125400K128K
Impossibl$1.25$10$0.125400K128K
Kilo Gateway$1.25$10$0.13400K128K
LLM Gateway$1.25$10n/a400K272K
NanoGPT$1.25$10$0.125400K128K

Showing 12 of 14 providers: the lab first, then the major clouds, then the cheapest resellers.

What GPT-5.1 Codex costs per month

Pick a workload close to yours or type your own volumes.

GPT-5.1 Codex per month
$148
Without caching
$199
Per request
$0.0049

Supported request parameters

What you can set when you call GPT-5.1 Codex through an OpenAI compatible API.

  • Toolstools
  • Structured outputsstructured_outputs
  • Reasoningreasoning

Alternatives to GPT-5.1 Codex

Models that take the same inputs and call tools, closest in price, cheaper ones first.

  • Reads text, images, files, audio and video. Tool calling, structured output, reasoning. Served by 24 providers.

    by googleJun 17, 2025$1.25/M input tokens$10/M output tokens24 providers

  • Index 46.5

    Reads text, images and files. Tool calling, structured output, reasoning. Served by 33 providers.

    by x-aiSep 21, 2026500K context$2/M input tokens$6/M output tokens33 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 32 providers.

    by x-aiAug 12, 2026$2/M input tokens$6/M output tokens32 providers

  • Index 45.4

    Reads text, images, files and video. Tool calling, structured output, reasoning. Served by 41 providers.

    by qwenJul 19, 20261M context$2/M input tokens$6/M output tokens41 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 25 providers.

    by x-aiJul 8, 2026$2/M input tokens$6/M output tokens25 providers

  • Reads text and images. Tool calling, structured output, reasoning. Served by 15 providers.

    by mistralaiApr 29, 2026256K context$1.50/M input tokens$7.50/M output tokens15 providers

More from OpenAI

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 9 providers.

    by openaiNov 17, 2026$8/M input tokens$40/M output tokens9 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 2 providers.

    by openaiNov 17, 2026$16/M input tokens$60/M output tokens2 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 9 providers.

    by openaiNov 17, 2026$2/M input tokens$10/M output tokens9 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 2 providers.

    by openaiNov 17, 2026$4/M input tokens$15/M output tokens2 providers

  • Generates images from text and images.

    by openaiOct 28, 2026

  • Generates images from text and images.

    by openaiOct 28, 2026

All OpenAI models

GPT-5.1 Codex questions

How much does the GPT-5.1 Codex API cost?

$1.25 per million input tokens and $10 per million output tokens, with cached input at $0.125. The estimator on this page turns that into a monthly bill for your own workload.

What is the context window of GPT-5.1 Codex?

400,000 tokens of input, and it can write up to 128,000 tokens in one reply. As a rough guide, a million tokens is around 750,000 English words.

Which providers serve GPT-5.1 Codex?

14 providers serve it, including Azure, Vercel AI Gateway and Jiekou.AI. The lowest input price is $1.19 per million tokens at Jiekou.AI. Prices differ by host, so the Providers table on this page lists each one with its input and output price.

Does GPT-5.1 Codex support tool calling?

Yes. It accepts tool definitions and can return JSON that matches a schema, which is what an agent needs to call your APIs.

Is GPT-5.1 Codex open source?

No. OpenAI serves it through an API only, so you cannot download the weights or host it yourself.

When was GPT-5.1 Codex released?

Nov 13, 2025, with training data up to Sep 2024.

Catalog data from models.dev (MIT licensed), refreshed daily, last on Nov 18, 2026. The summary is written from these facts.