Repository Public
1# GPT-5.2-Codex23> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.45> Our most intelligent coding model optimized for long-horizon, agentic coding tasks.67Model ID: `gpt-5.2-codex`89GPT-5.2-Codex is an upgraded version of GPT-5.2 optimized for agentic coding tasks in [Codex](https://developers.openai.com/codex) or similar environments.10GPT-5.2-Codex supports `low`, `medium`, `high`, and `xhigh` reasoning effort settings.11If you want to learn more about prompting GPT-5.2-Codex, refer to our [dedicated guide](/cookbook/examples/gpt-5/codex_prompting_guide).1213## Model details1415- Default snapshot: `gpt-5.2-codex`16- Input modalities: text, image17- Output modalities: text18- 400,000 context window19- Maximum input tokens: 272,00020- 128,000 max output tokens21- Aug 31, 2025 knowledge cutoff22- Reasoning token support2324## Pricing2526Pricing is based on the number of tokens used, or other metrics based on the model type. For tool-specific models, like search and computer use, there’s a fee per tool call. See details in the [pricing page](/api/docs/pricing).2728### Text tokens2930| Metric | Price | Unit |31| --- | ---: | --- |32| Input | $1.75 | 1M tokens |33| Cached input | $0.175 | 1M tokens |34| Output | $14 | 1M tokens |3536## Endpoints3738| Endpoint | Route | Support |39| --- | --- | --- |40| Live | `v1/live/sessions` | Not supported |41| Chat Completions | `v1/chat/completions` | Not supported |42| Responses | `v1/responses` | Supported |43| Realtime | `v1/realtime` | Not supported |44| Realtime translation | `v1/realtime/translations` | Not supported |45| Realtime transcription | `v1/realtime/transcription_sessions` | Not supported |46| Assistants | `v1/assistants` | Not supported |47| Batch | `v1/batch` | Not supported |48| Fine-tuning | `v1/fine-tuning` | Not supported |49| Embeddings | `v1/embeddings` | Not supported |50| Image generation | `v1/images/generations` | Not supported |51| Videos | `v1/videos` | Not supported |52| Image edit | `v1/images/edits` | Not supported |53| Speech generation | `v1/audio/speech` | Not supported |54| Transcription | `v1/audio/transcriptions` | Not supported |55| Translation | `v1/audio/translations` | Not supported |56| Moderation | `v1/moderations` | Not supported |57| Completions (legacy) | `v1/completions` | Not supported |5859## Supported features6061- streaming62- structured_outputs63- function_calling64- image_input65- web_search66- prompt_caching6768## Supported tools6970Tools supported by this model when using the Responses API.7172- function_calling73- web_search74- hosted_shell75- skills7677## Quick comparison7879| Model | Input | Cached input | Output |80| --- | ---: | ---: | ---: |81| GPT-5.2-Codex | $1.75 | $0.175 | $14 |82| GPT-5.1-Codex | $1.25 | $0.125 | $10 |8384## Snapshots8586Snapshots let you lock in a specific version of the model so that performance and behavior remain consistent. Below is a list of all available snapshots and aliases for GPT-5.2-Codex.8788- `gpt-5.2-codex`8990## Rate limits9192Rate limits ensure fair and reliable access to the API by placing specific caps on requests, tokens, audio duration, or other usage within a given time period. Your usage tier determines how high these limits are set and automatically increases as you send more requests and spend more on the API.9394### default9596| Tier | RPM | TPM | Batch queue limit |97| --- | ---: | ---: | ---: |98| Tier 1 | 500 | 500,000 | 1,500,000 |99| Tier 2 | 5,000 | 1,000,000 | 3,000,000 |100| Tier 3 | 5,000 | 2,000,000 | 100,000,000 |101| Tier 4 | 10,000 | 4,000,000 | 200,000,000 |102| Tier 5 | 15,000 | 40,000,000 | 15,000,000,000 |103