GPT-5-Codex

Retired

Earlier Codex model. Deprecation announced 2026-04-22; shut down 2026-07-23. Also covers gpt-5.1-codex* per the deprecation table. Context/max-output assumed gpt-5-class; price not captured. Confirmed RETIRED on 2026-09-02. Signal (first-party, past tense): developers.openai.com/api/docs/deprecations now heads that batch "2026-04-22: Legacy GPT model snapshots (July 2026 shutdown)" and states "Access to these models was shut down on July 23, 2026" — an executed shutdown, not a scheduled one, which is the distinction that kept this row at "deprecated" while only the date had passed. Until 2026-09-02 the row read "deprecated" and named gpt-5.5 as the substitute; OpenAI's table now names gpt-5.6-sol, re-pointed in the same edit.

GPT-5-Codex by OpenAI is tracked live in our LLM catalog, with a 400K (400.000-token) context window. It has been retired (shut down 23 Jul 2026); the recommended migration is GPT-5.6 Sol.

Last verified: 26 Sep 2026 · sourced from official provider documentation

Retired on 23 Jul 2026 · deprecated since 22 Apr 2026

Lifecycle warning

This model has been retired. Recommended migration: GPT-5.6 Sol.

Read the GPT-5-Codex migration guide → replacement & cheapest alternatives

Provider
OpenAI
Status
Retired
Input price
—
Output price
—
Cached input
—
Blended price
—
Context window
400.000 tokens (400K)
Max output
128.000 tokens
Modality
text, image
Open weights
No — API only
Knowledge cutoff
—
Released
—
API string
gpt-5-codex

Source: OpenAI official documentation ↗

FAQ

GPT-5-Codex — questions & answers

What is the context window of GPT-5-Codex?

GPT-5-Codex has a 400.000-token context window (400K), with up to 128.000 output tokens per request.

Is GPT-5-Codex still available?

GPT-5-Codex has been retired and is no longer available. Its scheduled shutdown date is 23 Jul 2026. The recommended migration is GPT-5.6 Sol.

Does GPT-5-Codex support image or vision input?

Yes — GPT-5-Codex accepts image input. Listed modalities: text, image.

Can I self-host GPT-5-Codex?

No — GPT-5-Codex is proprietary. Its weights are not publicly released, so it is available only through OpenAI's API (or hosted partners), not for self-hosting.

What is the API model string for GPT-5-Codex?

The API model identifier for GPT-5-Codex is "gpt-5-codex" when calling OpenAI's API.