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
- Codex vs CodeWhisperer
- Codex vs GPT-J-6B
- Codex vs LTM-1
- Codex vs Shanhai
- Codex vs Shishuo
- Codex vs AlphaCode
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| CodeWhisperer | Amazon | Jun 2022 | — | — | — | — | — |
| GPT-J-6Bopen | EleutherAI | May 2021 | 6.1B | — | — | — | — |
| LTM-1 | Magic | Jun 2023 | — | — | — | — | — |
| Shanhai | Unisound | May 2023 | — | — | — | — | — |
| Shishuo | 4Paradigm | Apr 2023 | — | — | — | — | — |
| AlphaCode | Google DeepMind | Feb 2022 | 41B | — | — | — | — |
| Gemini 2.0 Pro | Google DeepMind | Dec 2024 | — | — | — | — | 135.4 |
| CodeGeeXopen | Zhipu AI (Z.ai) | Jun 2022 | 13B | — | — | — | — |
More models from OpenAI
All OpenAI models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| GPT OSS 120Bopen | Aug 2025 | 117B | 128K | $0.09 | $0.36 |
| GPT-6 Astra | Sep 2026 | — | 1.1M | $10 | $50 |
| GPT-6.1 Sol | Sep 2026 | — | 1.1M | $2 | $10 |
| GPT OSS 20Bopen | Aug 2025 | 21B | 128K | $0.075 | $0.3 |
| GPT-5.6 Sol | Jul 2026 | — | 1.1M | $4 | $20 |
| GPT-6.2 Astra | Nov 2026 | — | 1.1M | $8 | $40 |
| GPT-6 Sol | Sep 2026 | — | 1.1M | $2 | $10 |
| GPT-5.6 Terra | Jul 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.