Alex Getmanإشارات الذكاء الاصطناعي المبكرة

GPT-4.1

OpenAI

صدر آخر تحديث
نافذة السياق
1M
1,047,576 رمزًا
الحد الأقصى للإخراج
33K
32,768 رمزًا
الإدخال / الإخراج
نص, صورة → نص

أسعار API

دولار أمريكي / مليون رمز

الإدخالالإخراجالإدخال المخزّن مؤقتًا
  • $2.00
openai-pricing
  • $8.00
openai-pricing
  • $0.50
openai-pricing

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

  1. · توفر API · رابط مصدر · رابط مصدر · رابط مصدر
  2. · تحديث المنتج · رابط مصدر · رابط مصدر
سعر الإدخال / الإخراج · دولار أمريكي / مليون رمز
نموذجروابط المصادرسعر الإدخال / الإخراج
gpt-4.1
batch
openai
مسار API غير متاح
$1.00 / $4.00
gpt-4.1
fast
openai
مسار API غير متاح
$3.50 / $14.00
gpt-4.1
standard
openai$2.00 / $8.00
openai/gpt-4.1
standard
openrouter$2.00 / $8.00
openai/gpt-4.1:batch
batch
openrouter$1.00 / $4.00
openai/gpt-4.1
standard
vercel-gateway$2.00 / $8.00
openai/gpt-4.1-batch
batch
vercel-gateway$1.00 / $4.00
  1. · استخدام مؤكد · OpenAI · official articles · Introducing GPT-4.1 in the API
  2. · روابط المصادر · OpenAI · official articles
    مقتطف
    Introducing GPT‑4.1 in the API
  3. · روابط المصادر · OpenAI · official articles
  4. · روابط المصادر · OpenAI · official articles
  5. · روابط المصادر · OpenAI · official articles
    مقتطف
    On OpenAI-MRCR, a measure of long-context information retrieval, GPT‑5 outperforms o3 and GPT‑4.1, by a margin that grows substantially at longer input lengths
  6. · روابط المصادر · OpenAI · official articles
  7. · إدراج في الكتالوج · GitHub · openai/openai-node · code
    مقتطف
    s.openai.com/api/docs/models) for descriptions * of them. */ model?: | (string & {}) | '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-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' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4.5-preview' | 'gpt-4.5-preview-2025-02-27' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4
  8. · إدراج في الكتالوج · GitHub · openai/openai-agents-python · code
    مقتطف
    dels import get_default_model from ...models.interface import Model, ModelProvider from .litellm_model import LitellmModel # This is kept for backward compatibility but using get_default_model() method is recommended. DEFAULT_MODEL: str = "gpt-4.1" class LitellmProvider(ModelProvider): """A ModelProvider that uses LiteLLM to route to any model provider. You can use it via: ```python Runner.run(agent, input, run_config=RunConfig(model_provider=LitellmProvider())) ``` See supported models here: [litellm models](https://docs.litellm.ai/docs/providers). NOTE: API keys must be set via environment variables. If you're using models that require additional configuration (e.g. Azure API base or version), those must also be set via the environment variables that LiteLLM expects. If you have more advanced needs, we recommend copy-pasting this clas
  9. · إدراج في الكتالوج · GitHub · openai/codex · code
    مقتطف
    ror> { let mode = if PARSE_IN_STRICT_MODE { ParseMode::Strict } else { ParseMode::Lenient }; parse_patch_text(patch, mode) } enum ParseMode { /// Parse the patch text argument as is. Strict, /// GPT-4.1 is known to formulate the `command` array for the `local_shell` /// tool call for `apply_patch` call using something like the following: /// /// ```json /// [ /// "apply_patch", /// "<<'EOF'\n*** Begin Patch\n*** Update File: README.md\n@@...\n*** End Patch\nEOF\n", /// ] /// ``` /// /// This is a problem because `local_shell` is a bit of a misnomer: the /// `command` is not invoked by passing the arguments to a shell like Bash, /// but are invoked using something akin to `execvpe(3)`. /// /// This is significant in this case because where a shell would interpret /// `

    هذا المرجع في الشفرة لا يثبت وجود معرّف نموذج مستخدم فعليًا.

  10. · إدراج في الكتالوج · GitHub · openai/codex · code
    مقتطف
    ror> { let mode = if PARSE_IN_STRICT_MODE { ParseMode::Strict } else { ParseMode::Lenient }; parse_patch_text(patch, mode) } enum ParseMode { /// Parse the patch text argument as is. Strict, /// GPT-4.1 is known to formulate the `command` array for the `local_shell` /// tool call for `apply_patch` call using something like the following: /// /// ```json /// [ /// "apply_patch", /// "<<'EOF'\n*** Begin Patch\n*** Update File: README.md\n@@...\n*** End Patch\nEOF\n", /// ] /// ``` /// /// This is a problem because `local_shell` is a bit of a misnomer: the /// `command` is not invoked by passing the arguments to a shell like Bash, /// but are invoked using something akin to `execvpe(3)`. /// /// This is significant in this case because where a shell would interpret /// `

    هذا المرجع في الشفرة لا يثبت وجود معرّف نموذج مستخدم فعليًا.

  11. · إدراج في الكتالوج · GitHub · openai/openai-agents-python · code
    مقتطف
    `openai/...` と `any-llm/...` のモデル名を混在させる場合は、[`MultiProvider`][agents.MultiProvider] を使用し、そこで `openai_use_responses_websocket=True` を設定します。 `MultiProvider` には、従来からの次の 2 つのデフォルト動作があります。 - `openai/...` は OpenAI プロバイダーのエイリアスとして扱われるため、`openai/gpt-4.1` はモデル `gpt-4.1` としてルーティングされます。 - 不明なプレフィックスはそのまま渡されず、`UserError` が発生します。 リテラルの名前空間付きモデル ID を要求する OpenAI 互換エンドポイントを OpenAI プロバイダーで使用する場合は、パススルー動作を明示的に有効にしてください。WebSocket が有効な設定では、`MultiProvider` にも `openai_use_responses_websocket=True` を維持してください。 ```python from agents import Agent, MultiProvider, RunConfig, Runner provider = MultiProvider( openai_base_url="https://openrouter.ai/api/v1", openai_api_key="...", openai_use_responses_websocket=True, openai_prefix_mode="model_id", unknown_prefix_mode="model_id", ) agent = Agent( name="Assistant", instructions="Be concise.", model="openai/gpt-4.1", ) re

    هذا المرجع في الشفرة لا يثبت وجود معرّف نموذج مستخدم فعليًا.

  12. · إدراج في الكتالوج · GitHub · openai/openai-python · code
    مقتطف
    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-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-aud
  13. · إدراج في الكتالوج · GitHub · openai/openai-agents-js · code
    مقتطف
    _WINDOWS_1M = new Set([ 'gpt-6-astra', 'gpt-6-sol', 'gpt-6-luna', 'gpt-6.1-sol', 'gpt-5.6', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-5.6-luna', 'gpt-5.4', 'gpt-5.4-2026-03-05', 'gpt-5.4-pro', 'gpt-5.4-pro-2026-03-05', 'gpt-4.1', 'gpt-4.1-2025-04-14', '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
  14. · روابط المصادر · OpenAI · Model release notes
    مقتطف
    Starting today, Plus, Pro, and Team users can access GPT-4.1 via the "more models" dropdown in the model picker
  15. · روابط المصادر · OpenAI · news
    مقتطف
    Introducing GPT-4.1 in the API—a new family of models with across-the-board improvements, including major gains in coding, instruction following, and long-context understanding
  16. · روابط المصادر · OpenAI · ChatGPT release notes
    مقتطف
    Starting today, Plus, Pro, and Team users can access GPT-4.1 via the "more models" dropdown in the model picker

الإشارات 1

المواصفات

GPT-4.1 نموذج ذكاء اصطناعي من OpenAI، صدر في 2025-04-14. تبلغ سعة نافذة السياق 1,047,576 رمزًا. يبلغ الحد الأقصى للإخراج 32,768 رمزًا. السعر لكل مليون رمز هو $2.00 للإدخال و$8.00 للإخراج.

نافذة السياق
1,047,576
الحد الأقصى للإخراج
32,768
الإدخال
نص · صورة
الإخراج
نص
الإدخال · دولار أمريكي / مليون رمز
$2.00
الإخراج · دولار أمريكي / مليون رمز
$8.00
الإدخال المخزّن مؤقتًا · دولار أمريكي / مليون رمز
$0.50

أسئلة شائعة

ما حجم نافذة السياق في GPT-4.1؟

تبلغ سعة نافذة السياق 1,047,576 رمزًا. يبلغ الحد الأقصى للإخراج 32,768 رمزًا.

ما سعر GPT-4.1؟

السعر لكل مليون رمز هو $2.00 للإدخال و$8.00 للإخراج. سعر الإدخال المخزّن مؤقتًا هو $0.50 لكل مليون رمز.

متى تم إصدار GPT-4.1؟

2025-04-14.