Repository Public
1# GPT-5.1-Codex-Max23> 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> A version of GPT-5.1-codex optimized for long running tasks.67Model ID: `gpt-5.1-codex-max`89GPT‑5.1-Codex-Max is purpose-built for agentic coding.10It's only available in the [Responses API](/api/docs/api-reference/responses).11Learn how to get the most of GPT-5.1-Codex-Max in the [prompting guide](/cookbook/examples/gpt-5/codex_prompting_guide).1213## Model details1415- Default snapshot: `gpt-5.1-codex-max`16- Input modalities: text, image17- Output modalities: text18- 400,000 context window19- 128,000 max output tokens20- Sep 30, 2024 knowledge cutoff21- Reasoning token support2223## Pricing2425Pricing 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).2627### Text tokens2829| Metric | Price | Unit |30| --- | ---: | --- |31| Input | $1.25 | 1M tokens |32| Cached input | $0.125 | 1M tokens |33| Output | $10 | 1M tokens |3435## Endpoints3637| Endpoint | Route | Support |38| --- | --- | --- |39| Live | `v1/live/sessions` | Not supported |40| Chat Completions | `v1/chat/completions` | Not supported |41| Responses | `v1/responses` | Supported |42| Realtime | `v1/realtime` | Not supported |43| Realtime translation | `v1/realtime/translations` | Not supported |44| Realtime transcription | `v1/realtime/transcription_sessions` | Not supported |45| Assistants | `v1/assistants` | Not supported |46| Batch | `v1/batch` | Not supported |47| Fine-tuning | `v1/fine-tuning` | Not supported |48| Embeddings | `v1/embeddings` | Not supported |49| Image generation | `v1/images/generations` | Not supported |50| Videos | `v1/videos` | Not supported |51| Image edit | `v1/images/edits` | Not supported |52| Speech generation | `v1/audio/speech` | Not supported |53| Transcription | `v1/audio/transcriptions` | Not supported |54| Translation | `v1/audio/translations` | Not supported |55| Moderation | `v1/moderations` | Not supported |56| Completions (legacy) | `v1/completions` | Not supported |5758## Supported features5960- streaming61- structured_outputs62- function_calling63- image_input64- web_search65- prompt_caching6667## Supported tools6869Tools supported by this model when using the Responses API.7071- function_calling72- web_search7374## Quick comparison7576| Model | Input | Cached input | Output |77| --- | ---: | ---: | ---: |78| GPT-5.1-Codex-Max | $1.25 | $0.125 | $10 |79| GPT-5-Codex | $1.25 | $0.125 | $10 |8081## Snapshots8283Snapshots 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.1-Codex-Max.8485- `gpt-5.1-codex-max`8687## Rate limits8889Rate 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.9091### default9293| Tier | RPM | TPM | Batch queue limit |94| --- | ---: | ---: | ---: |95| Tier 1 | 500 | 500,000 | 1,500,000 |96| Tier 2 | 5,000 | 1,000,000 | 3,000,000 |97| Tier 3 | 5,000 | 2,000,000 | 100,000,000 |98| Tier 4 | 10,000 | 4,000,000 | 200,000,000 |99| Tier 5 | 15,000 | 40,000,000 | 15,000,000,000 |100