---
title: استخدام RunAPI في Grok Build — دليل إعداد النموذج المخصص | RunAPI
description: اضبط Grok Build باستخدام حقول النموذج المخصص التي توثقها xAI، ومفتاح API من البيئة، ودليل نموذج RunAPI.
url: https://runapi.ai/ar/grok-build.md
canonical: https://runapi.ai/ar/grok-build
locale: ar
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
alternates:
  en: https://runapi.ai/grok-build
  zh-CN: https://runapi.ai/zh-CN/grok-build
  es: https://runapi.ai/es/grok-build
  ja: https://runapi.ai/ja/grok-build
  de: https://runapi.ai/de/grok-build
  fr: https://runapi.ai/fr/grok-build
  pt-BR: https://runapi.ai/pt-BR/grok-build
  ko: https://runapi.ai/ko/grok-build
  it: https://runapi.ai/it/grok-build
  nl: https://runapi.ai/nl/grok-build
  pl: https://runapi.ai/pl/grok-build
  tr: https://runapi.ai/tr/grok-build
  zh-TW: https://runapi.ai/zh-TW/grok-build
  zh-HK: https://runapi.ai/zh-HK/grok-build
  ar: https://runapi.ai/ar/grok-build
  x-default: https://runapi.ai/grok-build
---

> HTML version: https://runapi.ai/ar/grok-build
> Site index for agents: https://runapi.ai/llms.txt


# استخدم RunAPI في Grok Build.

يدعم Grok Build إعداد النماذج المخصصة عبر base_url وenv_key. وجّه بنية TOML الموثقة إلى RunAPI، واحفظ المفتاح في RUNAPI_API_KEY، واختر دليلاً من الكتالوج.

- [الحصول على مفتاح API](https://runapi.ai/ar/login)
- [تصفح النماذج](https://runapi.ai/ar/models.md)

> تفصل هذه الصفحة بين حقائق الإعداد الرسمية وأدلة التشغيل. لم نرسل في هذا العمل طلباً إلى upstream مدفوع ولم نشغّل جلسة Grok Build حقيقية، لذلك لا يثبت المثال نجاح الاستدلال.

## config.toml

```toml
[model.runapi]
model = "gpt-5.5"
name = "RunAPI GPT 5.5"
base_url = "https://runapi.ai/v1"
env_key = "RUNAPI_API_KEY"

[models]
default = "runapi"
```

## الأوامر

```bash
export RUNAPI_API_KEY="runapi_xxx"
grok --version
grok
```

## إعداد بنية النموذج المخصص الموثقة

1. **تعيين مفتاح API في البيئة** — صدّر RUNAPI_API_KEY في البيئة نفسها التي تشغّل Grok Build. لا تضع مفتاحاً حقيقياً في config.toml أو الشيفرة المصدرية. `export RUNAPI_API_KEY="runapi_xxx"`
2. **إضافة إدخال نموذج RunAPI** — استخدم الحقول التي توثقها xAI: model وname وbase_url وenv_key. اجعل default يشير إلى إدخال النموذج المسمّى. `[model.runapi]`
3. **المراجعة محلياً قبل الجلسة** — تحقق من إصدار CLI المثبت وافحص الإعداد المُنشأ محلياً. لا تثبت المراجعة المحلية نجاح طلب RunAPI أو استجابة النموذج. `grok --version`

## اختيار نموذج RunAPI لـ Grok Build

تأتي قائمة الأدلة من كتالوج RunAPI. يعرض كل دليل معرفات النماذج ونقاط النهاية العامة الحالية، ولا يَعِد باختبار كل متغير فعلياً مع Grok Build.

- [GPT](https://runapi.ai/ar/grok-build-gpt.md) — نص · OpenAI

## Grok Bot منتج منفصل مستضاف عبر Cursor.

توثق xAI Grok Bot كمنتج متصل بـ Cursor تعمل Bots فيه على أجهزة كمبيوتر سحابية مستمرة. لا تعرض الوثائق العامة إعداد base_url المخصص أو محدد النموذج الخاص بـ Grok Build، لذلك لا تعد هذه الصفحة بتوجيه Grok Bot عبر RunAPI.

[قراءة وثائق Grok Bot الرسمية](https://docs.x.ai/grok-bot/overview)

## حقول الإعداد

| الحقل | القيمة | الغرض |
| --- | --- | --- |
| `model.runapi.model` | `gpt-5.5` | يحدد نموذج كتالوج RunAPI للإدخال المخصص. |
| `model.runapi.base_url` | `https://runapi.ai/v1` | يوجه عنوان الأساس المتوافق مع OpenAI والموثق إلى RunAPI. |
| `model.runapi.env_key` | `RUNAPI_API_KEY` | يقرأ بيانات الاعتماد من البيئة بدلاً من تضمينها في الشيفرة. |
| `models.default` | `runapi` | يحدد إدخال النموذج المخصص المسمّى كقيمة افتراضية. |

## أسئلة إعداد Grok Build

### هل تدّعي هذه الصفحة أن Grok Build أكمل استدلالاً عبر RunAPI؟

لا. يتبع شكل TOML وثائق Grok Build العامة من xAI، بينما يتطلب طلب RunAPI حقيقياً فحصاً وقت التشغيل بترخيص منفصل. لم نُجرِ طلباً مدفوعاً.
### أين يجب حفظ مفتاح RunAPI؟

اضبط RUNAPI_API_KEY في البيئة التي تشغّل Grok Build. يحدد env_key المتغير الذي يقرأه الإعداد المحلي.
### هل يستطيع Grok Bot استخدام هذا الإعداد محدداً لنموذجه؟

لا يوجد مثل هذا الادعاء. تصف وثائق Grok Bot من xAI نموذجاً تديره Cursor ولا توثق base_url أو محدد نموذج يتحكم به العميل.

## المصادر الرسمية

- [Grok Build official documentation](https://docs.x.ai/build/overview)
- [xAI API models](https://docs.x.ai/developers/models)

أنشئ حساب RunAPI أو سجّل الدخول، وراجع كتالوج النماذج الحالي، وافصل فحص التشغيل عن مرجع الإعداد العام هذا.


---

## More from RunAPI

- [Home](https://runapi.ai/ar/.md)
### المنتج
- [كتالوج النماذج](https://runapi.ai/ar/models.md)
- [الأسعار](https://runapi.ai/ar/pricing.md)
- [مزودو الخدمة](https://runapi.ai/ar/models#all-models)
### المطورون
- [التوثيق](https://runapi.ai/ar/docs/guides)
- [حزم SDK](https://runapi.ai/ar/sdk.md)
- [CLI](https://runapi.ai/ar/cli.md)
- [خادم MCP](https://runapi.ai/ar/mcp.md)
- [x402](https://runapi.ai/ar/x402.md)
### الأدلة
- [Claude Code مقابل Cursor](https://runapi.ai/ar/claude-code-vs-cursor.md)
- [إعداد Cursor API](https://runapi.ai/ar/cursor-api-setup.md)
- [RunAPI مقابل OpenRouter](https://runapi.ai/ar/openrouter-alternative.md)
### الشركة
- [المؤسسات](https://runapi.ai/ar/contact.md)
- [اتصل بنا](https://runapi.ai/ar/contact.md)
### القانوني
- [الشروط](https://runapi.ai/ar/terms.md)
- [الخصوصية](https://runapi.ai/ar/privacy.md)
- [Site index for agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai

## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "ar",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/ar",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/ar/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "ar",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/ar",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/aricon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "ar",
    "@type": "SoftwareApplication",
    "name": "RunAPI",
    "applicationCategory": "DeveloperApplication",
    "description": "اضبط Grok Build باستخدام حقول النموذج المخصص التي توثقها xAI، ومفتاح API من البيئة، ودليل نموذج RunAPI.",
    "url": "https://runapi.ai/ar/grok-build"
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "ar",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "هل تدّعي هذه الصفحة أن Grok Build أكمل استدلالاً عبر RunAPI؟",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "لا. يتبع شكل TOML وثائق Grok Build العامة من xAI، بينما يتطلب طلب RunAPI حقيقياً فحصاً وقت التشغيل بترخيص منفصل. لم نُجرِ طلباً مدفوعاً."
        }
      },
      {
        "@type": "Question",
        "name": "أين يجب حفظ مفتاح RunAPI؟",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "اضبط RUNAPI_API_KEY في البيئة التي تشغّل Grok Build. يحدد env_key المتغير الذي يقرأه الإعداد المحلي."
        }
      },
      {
        "@type": "Question",
        "name": "هل يستطيع Grok Bot استخدام هذا الإعداد محدداً لنموذجه؟",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "لا يوجد مثل هذا الادعاء. تصف وثائق Grok Bot من xAI نموذجاً تديره Cursor ولا توثق base_url أو محدد نموذج يتحكم به العميل."
        }
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "ar",
    "@type": "HowTo",
    "step": [
      {
        "@type": "HowToStep",
        "position": 1,
        "name": "تعيين مفتاح API في البيئة",
        "text": "صدّر RUNAPI_API_KEY في البيئة نفسها التي تشغّل Grok Build. لا تضع مفتاحاً حقيقياً في config.toml أو الشيفرة المصدرية."
      },
      {
        "@type": "HowToStep",
        "position": 2,
        "name": "إضافة إدخال نموذج RunAPI",
        "text": "استخدم الحقول التي توثقها xAI: model وname وbase_url وenv_key. اجعل default يشير إلى إدخال النموذج المسمّى."
      },
      {
        "@type": "HowToStep",
        "position": 3,
        "name": "المراجعة محلياً قبل الجلسة",
        "text": "تحقق من إصدار CLI المثبت وافحص الإعداد المُنشأ محلياً. لا تثبت المراجعة المحلية نجاح طلب RunAPI أو استجابة النموذج."
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "ar",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "الرئيسية",
        "item": "https://runapi.ai/ar"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "RunAPI",
        "item": "https://runapi.ai/ar/grok-build"
      }
    ]
  }
]
```
