# GPT-5.1-Codex

GPT-5.1-Codex نموذج ذكاء اصطناعي من OpenAI، صدر في 2025-11-13. تبلغ سعة نافذة السياق 400,000 رمز. يبلغ الحد الأقصى للإخراج 128,000 رمز.

- المطوّر: OpenAI
- Id: gpt-5.1-codex
- حسب التقارير: 2025-11-13T00:00:00.000Z
- صدر: 2025-11-13T00:00:00.000Z
- رصد: 2026-09-17T17:42:08.188Z
  - [رابط مصدر](https://developers.openai.com/api/docs/changelog)
- الحالة: صدر
- توفر API: 2025-11-13
  - [رابط مصدر](https://developers.openai.com/api/docs/changelog)
  - [رابط مصدر](https://developers.openai.com/codex/changelog/#codex-2025-11-13)
- الرابط الأساسي: https://alexgetman.com/ar/models/openai/gpt-5-1-codex/

## أسئلة شائعة

### ما حجم نافذة السياق في GPT-5.1-Codex؟

تبلغ سعة نافذة السياق 400,000 رمز. يبلغ الحد الأقصى للإخراج 128,000 رمز.

### متى تم إصدار GPT-5.1-Codex؟

2025-11-13.

## التسلسل الزمني

- 2026-09-17T17:42:08.188Z · [OpenAI · API changelog](https://developers.openai.com/api/docs/changelog)
> Released gpt-5.1-codex and gpt-5.1-codex-mini to the Responses API
- 2026-10-07T19:17:54.872Z · [OpenAI · Codex changelog](https://developers.openai.com/codex/changelog/#codex-2025-11-13)
> Starting today, the CLI and IDE Extension will default to gpt-5.1-codex on macOS and Linux and gpt-5.1 on Windows
- 2026-10-07T19:17:54.872Z · [OpenAI · Codex changelog](https://developers.openai.com/codex/changelog/#codex-2026-04-07)
- 2026-11-05T00:01:53.188Z · [OpenAI API](https://api.openai.com/v1/models)
- 2026-11-10T17:58:10.980Z · [GitHub · openai/openai-agents-js · code](https://github.com/openai/openai-agents-js/blob/7589b9c40120b89a7d2d28a5a60b4defe1ed7bf5/packages/agents-core/src/sandbox/capabilities/compaction.ts)
> 4',
>   'gpt-4.1-mini',
>   'gpt-4.1-mini-2025-04-14',
>   'gpt-4.1-nano',
>   'gpt-4.1-nano-2025-04-14',
> ]);
> 
> const SANDBOX_CONTEXT_WINDOWS_400K = new Set([
>   'gpt-5',
>   'gpt-5-codex',
>   'gpt-5-mini',
>   'gpt-5-nano',
>   'gpt-5-pro',
>   'gpt-5.1',
>   'gpt-5.1-codex',
>   'gpt-5.1-codex-max',
>   'gpt-5.1-codex-mini',
>   'gpt-5.2',
>   'gpt-5.2-codex',
>   'gpt-5.2-codex-cyber',
>   'gpt-5.2-pro',
>   'gpt-5.3-codex',
>   'gpt-5.3-codex-spark',
>   'gpt-5.4-mini',
>   'gpt-5.4-nano',
> ]);
> 
> const SANDBOX_CONTEXT_WINDOWS_200K = new Set([
>   'codex-mini-latest',
>   'o1',
>   'o1-2024-12-17',
>   'o1-pro',
>   'o3',
>   'o3-2025-04-16',
>   'o3-mini',
>   'o3-pro',
>   'o3-deep-research',
>   'o4-mini',
>   'o4-mini-2025-04-16',
>   'o4-mini-deep-research',
> ]);
> 
> const SANDBOX_CONTEXT_WINDOWS_128K = new Set([
>   'gpt-4o',
>   'gpt-4o-2024-08-06',
>   'gpt-4o-mini',
>   'gpt-4o-mini-2024-07-18',
>   'gpt-5-chat-latest',
>   'gpt-5.1-chat-latest',
>   'g
- 2026-11-10T17:58:16.002Z · [GitHub · openai/openai-python · code](https://github.com/openai/openai-python/blob/0ebd00647f6088fb100b03440c6c4554bbab549d/src/openai/types/beta/beta_responses_client_event.py)
> chat-latest",
>             "gpt-5.2",
>             "gpt-5.2-2025-12-11",
>             "gpt-5.2-chat-latest",
>             "gpt-5.2-pro",
>             "gpt-5.2-pro-2025-12-11",
>             "gpt-5.1",
>             "gpt-5.1-2025-11-13",
>             "gpt-5.1-codex",
>             "gpt-5.1-mini",
>             "gpt-5.1-chat-latest",
>             "gpt-5",
>             "gpt-5-mini",
>             "gpt-5-nano",
>             "gpt-5-2025-08-07",
>             "gpt-5-mini-2025-08-07",
>             "gpt-5-nano-2025-08-07",
>             "gpt-5-chat-latest",
>             "gpt-4.1",
>             "gpt-4.1-mini",
>             "gpt-4.1-nano",
>             "gpt-4.1-2025-04-14",
>             "gpt-4.1-mini-2025-04-14",
>             "gpt-4.1-nano-2025-04-14",
>             "o4-mini",
>             "o4-mini-2025-04-16",
>             "o3",
>             "o3-2025-04-16",
>             "o3-mini",
>             "o3-mini-2025-01-31",
>           
- 2026-11-10T17:59:50.472Z · [GitHub · openai/openai-agents-python · code](https://github.com/openai/openai-agents-python/blob/d68961657843c7d81dfc25834484f8aac2957eb3/src/agents/sandbox/capabilities/compaction.py)
> -5-mini",
>             "gpt-5-mini-2025-08-07",
>             "gpt-5-nano",
>             "gpt-5-nano-2025-08-07",
>             "gpt-5-pro",
>             "gpt-5-pro-2025-10-06",
>             "gpt-5.1",
>             "gpt-5.1-2025-11-13",
>             "gpt-5.1-codex",
>             "gpt-5.1-codex-max",
>             "gpt-5.1-codex-mini",
>             "gpt-5.2",
>             "gpt-5.2-2025-12-11",
>             "gpt-5.2-codex",
>             "gpt-5.2-pro",
>             "gpt-5.2-pro-2025-12-11",
>             "gpt-5.3-codex",
>             "gpt-5.4-mini",
>             "gpt-5.4-mini-2026-03-17",
>             "gpt-5.4-nano",
>             "gpt-5.4-nano-2026-03-17",
>         ),
>         400_000,
>     ),
>     **_model_context_windows(
>         (
>             "codex-mini-latest",
>             "o1",
>             "o1-2024-12-17",
>             "o1-pro",
>             "o1-pro-2025-03-19",
>             "o3",
>             "o3-2025-04-16",
- 2026-11-10T18:00:44.369Z · [GitHub · openai/codex · code](https://github.com/openai/codex/blob/82e6bacb9c6950d3b56cb153847fa80bdd698053/codex-rs/tui/src/chatwidget/model_popups.rs)
> rt| {
>             let effort_label = Self::reasoning_effort_label(effort);
>             format!("⚠ {effort_label} reasoning effort can quickly consume Plus plan rate limits")
>         });
>         let warn_for_model = preset.model.starts_with("gpt-5.1-codex")
>             || preset.model.starts_with("gpt-5.1-codex-max")
>             || preset.model.starts_with("gpt-5.2");
> 
>         let mut all_choices: Vec<ReasoningEffortConfig> = supported
>             .iter()
>             .map(|option| option.effort.clone())
>             .collect();
>         if all_choices.is_empty() {
>             all_choices.push(default_effort.clone());
>         }
>         let (choices, advanced_choices): (Vec<_>, Vec<_>) = all_choices
>             .into_iter()
>             .partition(|effort| !Self::is_advanced_reasoning_effort(effort));
> 
>         if choices.len() == 1 && advanced_choices.is_empty() {
>             let selecte
- 2026-11-10T18:00:44.369Z · [GitHub · openai/codex · code](https://github.com/openai/codex/blob/627b579219d492b5445d6d433d3110eb53e507dc/codex-rs/analytics/src/client_tests.rs)
> -1".to_string(),
>                 thread_id: thread_id.to_string(),
>                 product_surface: Some("codex".to_string()),
>                 model_slug: Some("gpt-5.1-codex".to_string()),
>                 completed_at: 1,
>                 repo_hash: None,
>                 accepted_added_lines: 1,
>                 accepted_deleted_lines: 0,
>                 line_fingerprints: [],
>             },
>         },
>     ))
> }
> 
> fn sample_skill_track_event(thread_id: &str, plugin_id: Option<&str>) -> TrackE
هذا المرجع في الشفرة لا يثبت وجود معرّف نموذج مستخدم فعليًا.
- 2026-11-12T18:45:20.401Z · [GitHub · openai/openai-node · code](https://github.com/openai/openai-node/blob/b579bcb3e586d22269ffe6fe504653a0e05acbe8/src/resources/beta/responses/responses.ts)
> 6-03-17'
>     | 'gpt-5.4-nano-2026-03-17'
>     | 'gpt-5.3-chat-latest'
>     | 'gpt-5.2'
>     | 'gpt-5.2-2025-12-11'
>     | 'gpt-5.2-chat-latest'
>     | 'gpt-5.2-pro'
>     | 'gpt-5.2-pro-2025-12-11'
>     | 'gpt-5.1'
>     | 'gpt-5.1-2025-11-13'
>     | 'gpt-5.1-codex'
>     | 'gpt-5.1-mini'
>     | 'gpt-5.1-chat-latest'
>     | 'gpt-5'
>     | 'gpt-5-mini'
>     | 'gpt-5-nano'
>     | 'gpt-5-2025-08-07'
>     | 'gpt-5-mini-2025-08-07'
>     | 'gpt-5-nano-2025-08-07'
>     | 'gpt-5-chat-latest'
>     | 'gpt-4.1'
>     | 'gpt-4.1-mini'
>     | 'gpt-4.1-nano'
>     | 'gpt-4.1-2025-04-14'
>     | 'gpt-4.1-mini-2025-04-14'
>     | 'gpt-4.1-nano-2025-04-14'
>     | 'o4-mini'
>     | 'o4-mini-2025-04-16'
>     | 'o3'
>     | 'o3-2025-04-16'
>     | 'o3-mini'
>     | 'o3-mini-2025-01-31'
>     | 'o1'
>     | 'o1-2024-12-17'
>     | 'o1-preview'
>     | 'o1-preview-2024-09-12'
>     | 'o1-mini'
>     | 'o1-mini-2024-09-12'
>     | 'gpt-4o'
>     | 'gpt-4o-2024

## روابط المصادر

- 2026-11-05T00:01:53.188Z: إزالة الإدخال من المصدر · OpenAI API · `gpt-5.1-codex`

## روابط المصادر

- [OpenAI API](https://api.openai.com/v1/models)
- [Artificial Analysis · benchmarks](https://artificialanalysis.ai/models)
- [openai-api-changelog](https://developers.openai.com/api/docs/changelog)
- [review](https://developers.openai.com/api/docs/models/gpt-5.1-codex)
- [openai-codex-changelog](https://developers.openai.com/codex/changelog/#codex-2025-11-13)
- [OpenAI · Codex changelog](https://developers.openai.com/codex/changelog/#codex-2026-04-07)
- [GitHub · openai/codex · code](https://github.com/openai/codex/blob/627b579219d492b5445d6d433d3110eb53e507dc/codex-rs/analytics/src/client_tests.rs)
- [GitHub · openai/codex · code](https://github.com/openai/codex/blob/82e6bacb9c6950d3b56cb153847fa80bdd698053/codex-rs/tui/src/chatwidget/model_popups.rs)
- [GitHub · openai/openai-agents-js · code](https://github.com/openai/openai-agents-js/blob/7589b9c40120b89a7d2d28a5a60b4defe1ed7bf5/packages/agents-core/src/sandbox/capabilities/compaction.ts)
- [GitHub · openai/openai-agents-python · code](https://github.com/openai/openai-agents-python/blob/d68961657843c7d81dfc25834484f8aac2957eb3/src/agents/sandbox/capabilities/compaction.py)
- [GitHub · openai/openai-node · code](https://github.com/openai/openai-node/blob/b579bcb3e586d22269ffe6fe504653a0e05acbe8/src/resources/beta/responses/responses.ts)
- [GitHub · openai/openai-python · code](https://github.com/openai/openai-python/blob/0ebd00647f6088fb100b03440c6c4554bbab549d/src/openai/types/beta/beta_responses_client_event.py)
- [TrueFoundry · Azure catalogue](https://github.com/truefoundry/models/blob/main/providers/microsoft-foundry/gpt-5.1-codex.yaml)
- [models.dev · catalogue](https://models.dev/#gpt-5.1-codex)
- [OpenCode · discovery](https://opencode.ai/data/openai/gpt-5-1-codex)
- [OpenRouter](https://openrouter.ai/openai/gpt-5.1-codex)
- [OpenAI · deprecations](https://platform.openai.com/docs/deprecations)
- [Arena · leaderboards](https://platform.openai.com/docs/models/gpt-5.1-codex)

## الإشارات

- [رصد نموذج GPT-5.1-Codex في Arena](https://alexgetman.com/ar/signals/2026/09/11/gpt-5-1-codex-high/)
