Skip to content
llmmodels
Code modelHistorical

Codex

by OpenAI · Jul 7, 2021

Codex is a proprietary code model from OpenAI, released Jul 7, 2021. It has 12B parameters.

Provider
OpenAI
Released
Jul 7, 2021
Type
Code model
Parameters
12B
Context window
—
Max output
—
Input
text
Output
text
Weights
Closed
License
Proprietary
Knowledge cutoff
—
Status
Historical
Training compute
7.3e+22 FLOP
Training data
52.8B tokens/words

About Codex

We introduce Codex, a GPT language model fine-tuned on publicly available code from GitHub, and study its Python code-writing capabilities. A distinct production version of Codex powers GitHub Copilot. On HumanEval, a new evaluation set we release to measure functional correctness for synthesizing programs from docstrings, our model solves 28.8% of the problems, while GPT-3 solves 0% and GPT-J solves 11.4%. Furthermore, we find that repeated sampling from the model is a surprisingly effective strategy for producing working solutions to difficult prompts.

Codex vs alternatives

Alternatives to Codex
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
CodeWhispererAmazonJun 2022—————
GPT-J-6BopenEleutherAIMay 20216.1B————
LTM-1MagicJun 2023—————
ShanhaiUnisoundMay 2023—————
Shishuo4ParadigmApr 2023—————
AlphaCodeGoogle DeepMindFeb 202241B————
Gemini 2.0 ProGoogle DeepMindDec 2024————135.4
CodeGeeXopenZhipu AI (Z.ai)Jun 202213B————

More models from OpenAI

All OpenAI models →
ModelReleasedParamsContextInput $/1MOutput $/1M
GPT OSS 120BopenAug 2025117B128K$0.09$0.36
GPT-6 AstraSep 2026—1.1M$10$50
GPT-6.1 SolSep 2026—1.1M$2$10
GPT OSS 20BopenAug 202521B128K$0.075$0.3
GPT-5.6 SolJul 2026—1.1M$4$20
GPT-6.2 AstraNov 2026—1.1M$8$40
GPT-6 SolSep 2026—1.1M$2$10
GPT-5.6 TerraJul 2026—1.1M$2$12

Frequently asked questions

Who made Codex?

Codex was developed by OpenAI (United States of America). It was released on Jul 7, 2021.

Is Codex open source?

No. Codex is a proprietary model available only through its provider's API and apps.

How many parameters does Codex have?

Codex has 12B parameters.

Sources: epoch · paper. Last updated 2026-11-22.