Source · Model
GPT-5-Codex
developers.openai.com
Captured
Saved source text · excerpt
# GPT-5-Codex > For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL. > A version of GPT-5 optimized for agentic coding in Codex Model ID: `gpt-5-codex` GPT-5-Codex is a version of GPT-5 optimized for agentic coding tasks in [Codex](https://developers.openai.com/codex) or similar environments. It's available in the [Responses API](/api/docs/api-reference/responses) only and the underlying model snapshot will be regularly updated. If you want to learn more about prompting GPT-5-Codex, refer to our [dedicated guide](/cookbook/examples/gpt-5/codex_prompting_guide). ## Model details - Default snapshot: `gpt-5-codex` - Input modalities: text, image - Output modalities: text - 400,000 context window - Maximum input tokens: 272,000 - 128,000 max output tokens - Sep 30, 2024 knowledge cutoff - Reasoning token support ## Pricing Pricing 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). ### Text tokens | Metric | Price | Unit | | --- | ---: | --- | | Input | $1.25 | 1M tokens | | Cached input | $0.125 | 1M tokens | | Output | $10 | 1M tokens | ## Endpoints | Endpoint | Route | Support | | --- | --- | --- | | Live | `v1/live/sessions` | Not supported | | Chat Completions | `v1/chat/completions` | Not supported | | Responses | `v1/responses` | Supported | | Realtime | `v1/realtime` | Not supported | | Realtime translat
Textual presence is not independent verification of the claim.
History · 2 revisions
- Recorded as of
- Added
- Status
- Sourced
These are record dates, not the date of the event or publication.
- This revision · added
- View revision · added
Source details
Entry ID
1e7c5581-9638-5fb9-87dd-d9200c72d0baCapture SHA-256
9b03c760121fc5ae2ce20cb85cd4a846feb7f4e04514a5920ae7f3cf36e5685aCapture integrity: verified. Retained text; may be a collector extraction rather than original publisher bytes