---
title: Grok Build x GPT 使用指南 | RunAPI
description: 透過 RunAPI 在 Grok Build 中使用 GPT。比較目前的模型 ID、端點與價格，再依相應流程完成設定。
url: https://runapi.ai/zh-HK/grok-build-gpt.md
canonical: https://runapi.ai/zh-HK/grok-build-gpt
locale: zh-HK
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
alternates:
  en: https://runapi.ai/grok-build-gpt
  zh-CN: https://runapi.ai/zh-CN/grok-build-gpt
  es: https://runapi.ai/es/grok-build-gpt
  ja: https://runapi.ai/ja/grok-build-gpt
  de: https://runapi.ai/de/grok-build-gpt
  fr: https://runapi.ai/fr/grok-build-gpt
  pt-BR: https://runapi.ai/pt-BR/grok-build-gpt
  ko: https://runapi.ai/ko/grok-build-gpt
  it: https://runapi.ai/it/grok-build-gpt
  nl: https://runapi.ai/nl/grok-build-gpt
  pl: https://runapi.ai/pl/grok-build-gpt
  tr: https://runapi.ai/tr/grok-build-gpt
  zh-TW: https://runapi.ai/zh-TW/grok-build-gpt
  zh-HK: https://runapi.ai/zh-HK/grok-build-gpt
  ar: https://runapi.ai/ar/grok-build-gpt
  x-default: https://runapi.ai/grok-build-gpt
model_line: gpt
---

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


<!-- agent-model-guide-section: breadcrumb_hero owner=API-1798 state=ready -->

[Grok Build](https://runapi.ai/zh-HK/grok-build.md) / [GPT](https://runapi.ai/zh-HK/models/gpt.md)

# Grok Build x GPT

GPT 是 OpenAI 的前沿 LLM 系列，涵蓋標準及 mini 變體，以配合不同的成本與效能取捨。透過 RunAPI，所有 GPT 模型共用相同的 API 結構及計費方式。

- [取得 API Key](https://runapi.ai/zh-HK/login)
- [查看 Grok Build 文件](https://runapi.ai/zh-HK/docs/guides)

<!-- agent-model-guide-section: key_facts owner=API-1800 state=ready -->
18 variants · 由 $0.08 / 百萬 tokens · 可商用


<!-- agent-model-guide-section: prompt_terminal owner=API-1808 state=ready -->
## Prompt

前置條件：匯出 RUNAPI_API_KEY，並使用 config.toml 中有文件說明的項目。

```text
You have access to RunAPI chat models for GPT.

Available GPT models:
- codex-auto-review: codex-auto-review
  chat endpoints: /v1/chat/completions, /v1/responses
- gpt-4.1: OpenAI 非推理模型 GPT-4.1；100 萬上下文，透過 OpenAI 相容 API 支援圖片輸入及工具
  chat endpoints: /v1/chat/completions
- gpt-4.1-mini: GPT-4.1 的小型版本；100 萬上下文，透過 OpenAI 相容 API 支援圖片輸入及工具
  chat endpoints: /v1/chat/completions
- gpt-4o-mini: 快速且經濟的 GPT-4o 模型，適合日常文字任務
  chat endpoints: /v1/chat/completions, /v1/responses
- gpt-5-pro: 用於分析與編程的 GPT-5 Pro，支援 Responses API
  chat endpoints: /v1/responses
- gpt-5.2: 專業知識工作；思考模式處理深度任務
  chat endpoints: /v1/responses, /v1/chat/completions
- gpt-5.4: 程式編寫 + agent 工作流程表現最佳；程式碼 benchmark 業界領先
  chat endpoints: /v1/responses, /v1/chat/completions
- gpt-5.4-mini: gpt-5.4 的高性價比後備選擇；Free 方案可用
  chat endpoints: /v1/chat/completions, /v1/responses
- gpt-5.4-nano: gpt-5.4-nano
  chat endpoints: /v1/responses, /v1/chat/completions
- gpt-5.5: 專為長時間 agent 任務而設計；錯誤恢復能力最佳
  chat endpoints: /v1/chat/completions, /v1/responses
- gpt-5.6-luna: 最快、最輕量的 GPT-5.6 層級，適合摘要、草稿及日常自動化
  chat endpoints: /v1/responses, /v1/chat/completions
- gpt-5.6-sol: 處理最困難任務的旗艦版：複雜程式編寫、深入研究、長時間 agent
  chat endpoints: /v1/chat/completions, /v1/responses
- gpt-5.6-terra: 適合大量任務的均衡主力；接近旗艦質素，具成本效益
  chat endpoints: /v1/responses, /v1/chat/completions
- gpt-6-astra: 最強模型：前沿推理、100萬上下文、程式碼生成與智能體任務
  chat endpoints: /v1/chat/completions, /v1/responses
- gpt-6-luna: GPT-6 最快最輕檔：100萬上下文，適合摘要、草擬與日常自動化
  chat endpoints: /v1/chat/completions, /v1/responses
- gpt-6-sol: GPT-6 高性價比檔：強推理、100萬上下文、程式設計與智能體任務
  chat endpoints: /v1/chat/completions, /v1/responses
- gpt-6.1-sol: GPT-6 高性價比檔：強推理、100萬上下文、程式設計與智能體任務
  chat endpoints: /v1/chat/completions, /v1/responses
- gpt-6.1-terra: GPT-6.1 均衡主力檔：接近旗艦的質素、100萬上下文，適合大批量任務且成本更低
  chat endpoints: /v1/chat/completions, /v1/responses

Use the model ID and chat endpoint that match the user's request.
Example request: 分析這份季度收入數據，並撰寫摘要，列出主要趨勢、異常情況及三項建議。
Verify the active model with: grok inspect;grok -p "Hello from RunAPI" -m runapi
```





<!-- agent-model-guide-section: prompt_model_tabs owner=API-1812 state=ready -->
## Prompt 模型

透過本指南使用 RunAPI 與 GPT。

可用的 GPT 模型：

- `codex-auto-review`: codex-auto-review
- `gpt-4.1`: OpenAI 非推理模型 GPT-4.1；100 萬上下文，透過 OpenAI 相容 API 支援圖片輸入及工具
- `gpt-4.1-mini`: GPT-4.1 的小型版本；100 萬上下文，透過 OpenAI 相容 API 支援圖片輸入及工具
- `gpt-4o-mini`: 快速且經濟的 GPT-4o 模型，適合日常文字任務
- `gpt-5-pro`: 用於分析與編程的 GPT-5 Pro，支援 Responses API
- `gpt-5.2`: 專業知識工作；思考模式處理深度任務
- `gpt-5.4`: 程式編寫 + agent 工作流程表現最佳；程式碼 benchmark 業界領先
- `gpt-5.4-mini`: gpt-5.4 的高性價比後備選擇；Free 方案可用
- `gpt-5.4-nano`: gpt-5.4-nano
- `gpt-5.5`: 專為長時間 agent 任務而設計；錯誤恢復能力最佳
- `gpt-5.6-luna`: 最快、最輕量的 GPT-5.6 層級，適合摘要、草稿及日常自動化
- `gpt-5.6-sol`: 處理最困難任務的旗艦版：複雜程式編寫、深入研究、長時間 agent
- `gpt-5.6-terra`: 適合大量任務的均衡主力；接近旗艦質素，具成本效益
- `gpt-6-astra`: 最強模型：前沿推理、100萬上下文、程式碼生成與智能體任務
- `gpt-6-luna`: GPT-6 最快最輕檔：100萬上下文，適合摘要、草擬與日常自動化
- `gpt-6-sol`: GPT-6 高性價比檔：強推理、100萬上下文、程式設計與智能體任務
- `gpt-6.1-sol`: GPT-6 高性價比檔：強推理、100萬上下文、程式設計與智能體任務
- `gpt-6.1-terra`: GPT-6.1 均衡主力檔：接近旗艦的質素、100萬上下文，適合大批量任務且成本更低
任務合適時使用 codex-auto-review：codex-auto-review。



<!-- agent-model-guide-section: versions_endpoints owner=API-1817 state=runtime_fallback -->

## 公開版本與端點

| 模型 ID | 版本 | 端點 | 起始價格 |
| --- | --- | --- | --- |
| `codex-auto-review` | codex-auto-review | /v1/chat/completions, /v1/responses | $0.16 / 百萬 tokens |
| `gpt-4.1` | OpenAI 非推理模型 GPT-4.1；100 萬上下文，透過 OpenAI 相容 API 支援圖片輸入及工具 | /v1/chat/completions | $3.18 / 百萬 tokens |
| `gpt-4.1-mini` | GPT-4.1 的小型版本；100 萬上下文，透過 OpenAI 相容 API 支援圖片輸入及工具 | /v1/chat/completions | $0.64 / 百萬 tokens |
| `gpt-4o-mini` | 快速且經濟的 GPT-4o 模型，適合日常文字任務 | /v1/chat/completions, /v1/responses | $0.15 / 百萬 tokens |
| `gpt-5-pro` | 用於分析與編程的 GPT-5 Pro，支援 Responses API | /v1/responses | $12.00 / 百萬 tokens |
| `gpt-5.2` | 專業知識工作；思考模式處理深度任務 | /v1/responses, /v1/chat/completions | $1.40 / 百萬 tokens |
| `gpt-5.4` | 程式編寫 + agent 工作流程表現最佳；程式碼 benchmark 業界領先 | /v1/responses, /v1/chat/completions | $2.00 / 百萬 tokens |
| `gpt-5.4-mini` | gpt-5.4 的高性價比後備選擇；Free 方案可用 | /v1/chat/completions, /v1/responses | $0.60 / 百萬 tokens |
| `gpt-5.4-nano` | gpt-5.4-nano | /v1/responses, /v1/chat/completions | $0.16 / 百萬 tokens |
| `gpt-5.5` | 專為長時間 agent 任務而設計；錯誤恢復能力最佳 | /v1/chat/completions, /v1/responses | $4.00 / 百萬 tokens |
| `gpt-5.6-luna` | 最快、最輕量的 GPT-5.6 層級，適合摘要、草稿及日常自動化 | /v1/responses, /v1/chat/completions | $0.16 / 百萬 tokens |
| `gpt-5.6-sol` | 處理最困難任務的旗艦版：複雜程式編寫、深入研究、長時間 agent | /v1/chat/completions, /v1/responses | $3.20 / 百萬 tokens |
| `gpt-5.6-terra` | 適合大量任務的均衡主力；接近旗艦質素，具成本效益 | /v1/responses, /v1/chat/completions | $1.60 / 百萬 tokens |
| `gpt-6-astra` | 最強模型：前沿推理、100萬上下文、程式碼生成與智能體任務 | /v1/chat/completions, /v1/responses | $8.00 / 百萬 tokens |
| `gpt-6-luna` | GPT-6 最快最輕檔：100萬上下文，適合摘要、草擬與日常自動化 | /v1/chat/completions, /v1/responses | $0.08 / 百萬 tokens |
| `gpt-6-sol` | GPT-6 高性價比檔：強推理、100萬上下文、程式設計與智能體任務 | /v1/chat/completions, /v1/responses | $1.60 / 百萬 tokens |
| `gpt-6.1-sol` | GPT-6 高性價比檔：強推理、100萬上下文、程式設計與智能體任務 | /v1/chat/completions, /v1/responses | $1.60 / 百萬 tokens |
| `gpt-6.1-terra` | GPT-6.1 均衡主力檔：接近旗艦的質素、100萬上下文，適合大批量任務且成本更低 | /v1/chat/completions, /v1/responses | $0.80 / 百萬 tokens |


<!-- agent-model-guide-section: verify_code_block owner=API-1824 state=runtime_fallback -->

## 驗證

執行下方的同步聊天檢查；它不會建立工作或輪詢工作狀態。

```
grok inspect
grok -p "Hello from RunAPI" -m runapi
```



## 設定

使用文件所述的 Grok Build TOML 設定，透過 RunAPI 選擇 <model-id>。本頁不表示已執行真實 Grok Build 工作階段或付費上游請求。

`/v1/chat/completions`

```
[model.runapi]
model = "<model-id>"
name = "RunAPI <model-id>"
base_url = "https://runapi.ai/v1"
env_key = "RUNAPI_API_KEY"

[models]
default = "runapi"
```
`/v1/responses`

```
[model.runapi]
model = "<model-id>"
name = "RunAPI <model-id>"
base_url = "https://runapi.ai/v1"
env_key = "RUNAPI_API_KEY"

[models]
default = "runapi"
```


<!-- agent-model-guide-section: three_step_flow owner=API-1830 state=ready -->

## 三步開始使用

1. **選擇模型 ID.** 選擇公開模型 ID，並查看其端點與目前起始價格。
2. **設定 RunAPI.** 為此 Agent 新增 Provider 設定。
3. **驗證結果.** 執行下方 Agent 狀態與模型選擇命令。



<!-- agent-model-guide-section: use_case_cards owner=API-1837 state=ready -->

## 使用 Grok Build + GPT 可以建立甚麼

**Agent 編碼與推理**

借助模型的推理能力，讓 Agent 規劃、編寫和審查代碼，或處理多步驟問題。

**長文件分析與擷取**

總結報告、合約或代碼庫，並從長文件中擷取結構化欄位。

**工具調用工作流程**

將模型連接到函數和 API，讓 Agent 在回覆之間查詢數據並執行操作。



<!-- agent-model-guide-section: benefit_cards owner=API-1844 state=ready -->

## 為甚麼透過 RunAPI + Grok Build 使用 GPT

**18 個變體，一個 API 金鑰**

透過一個 RunAPI 連線選擇可用的模型變體，無需更改現有整合。

**清晰的用量價格**

發送請求前查看目錄中的目前價格，無需訂閱或最低消費。

**直接返回結果**

同步調用會在同一個回應中返回結果，Agent 無需輪詢任務即可直接使用。




<!-- agent-model-guide-section: faq owner=API-1851 state=ready -->

## Grok Build + GPT 常見問題

### 應該選擇哪個 GPT 變體？

GPT-5.6——sol、terra 及 luna 層級——是目前的旗艦世代。GPT-5.4 仍是程式編寫及 agent 工作流程的有力選擇，GPT-5.5 適合長時間自主任務，GPT-5.4-mini 則是處理較簡單任務的高性價比選擇。

### GPT 支援工具調用及 function calling 嗎？

支援——所有 GPT-5 變體都支援以 JSON schema 進行結構化 function calling，可實現 agent 工具調用工作流程。

### 甚麼是思考（Thinking）模式？

思考模式讓 GPT 在回應前逐步推理。GPT-5.2 及以上版本提供此功能，可提高複雜推理任務的準確度。

### 上下文視窗有多大？

上下文視窗大小因變體而異。GPT-5.4 及以上版本支援大型上下文視窗，適合多檔案程式碼分析及長篇文件。

### 應該使用哪個模型 ID？

從版本表選擇公開模型 ID。每個 ID 可用的端點均列於相應資料列。

### 本指南會設定聊天模型嗎？

會。此 Model Line 支援面向用戶端的 LLM 協定。




<!-- agent-model-guide-section: related_guides owner=API-1859 state=ready -->



<!-- agent-model-guide-section: final_cta owner=API-1866 state=ready -->

## 透過 Grok Build 開始使用 GPT

- [取得 API Key](https://runapi.ai/zh-HK/login)
- [閱讀快速開始](https://runapi.ai/zh-HK/docs/guides)


<!-- agent-model-guide-section: team_contact_cta owner=API-1873 state=ready -->
## 正在與團隊一起建立？

我們可以協助企業設定、整合和技術問題。

[聯絡我們](https://runapi.ai/zh-HK/contact.md)




<!-- agent-model-guide-section: footer owner=API-1880 state=shared -->


---

## More from RunAPI

- [Home](https://runapi.ai/zh-HK/.md)
### 產品
- [模型目錄](https://runapi.ai/zh-HK/models.md)
- [收費](https://runapi.ai/zh-HK/pricing.md)
- [服務商](https://runapi.ai/zh-HK/models#all-models)
### 開發者
- [文件](https://runapi.ai/zh-HK/docs/guides)
- [SDK](https://runapi.ai/zh-HK/sdk.md)
- [CLI](https://runapi.ai/zh-HK/cli.md)
- [MCP Server](https://runapi.ai/zh-HK/mcp.md)
- [x402](https://runapi.ai/zh-HK/x402.md)
### 指南
- [Claude Code 與 Cursor](https://runapi.ai/zh-HK/claude-code-vs-cursor.md)
- [Cursor API 設定](https://runapi.ai/zh-HK/cursor-api-setup.md)
- [RunAPI 與 OpenRouter](https://runapi.ai/zh-HK/openrouter-alternative.md)
### 公司
- [企業版](https://runapi.ai/zh-HK/contact.md)
- [聯絡](https://runapi.ai/zh-HK/contact.md)
### 法律
- [條款](https://runapi.ai/zh-HK/terms.md)
- [私隱](https://runapi.ai/zh-HK/privacy.md)
- [Site index for agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai


## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-HK",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/zh-HK/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-HK",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/zh-HKicon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "SoftwareApplication",
    "name": "Grok Build x GPT",
    "applicationCategory": "DeveloperApplication",
    "description": "透過 RunAPI 在 Grok Build 中使用 GPT。比較目前的模型 ID、端點與價格，再依相應流程完成設定。",
    "url": "https://runapi.ai/zh-HK/grok-build-gpt"
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "應該選擇哪個 GPT 變體？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "GPT-5.6——sol、terra 及 luna 層級——是目前的旗艦世代。GPT-5.4 仍是程式編寫及 agent 工作流程的有力選擇，GPT-5.5 適合長時間自主任務，GPT-5.4-mini 則是處理較簡單任務的高性價比選擇。"
        }
      },
      {
        "@type": "Question",
        "name": "GPT 支援工具調用及 function calling 嗎？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "支援——所有 GPT-5 變體都支援以 JSON schema 進行結構化 function calling，可實現 agent 工具調用工作流程。"
        }
      },
      {
        "@type": "Question",
        "name": "甚麼是思考（Thinking）模式？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "思考模式讓 GPT 在回應前逐步推理。GPT-5.2 及以上版本提供此功能，可提高複雜推理任務的準確度。"
        }
      },
      {
        "@type": "Question",
        "name": "上下文視窗有多大？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "上下文視窗大小因變體而異。GPT-5.4 及以上版本支援大型上下文視窗，適合多檔案程式碼分析及長篇文件。"
        }
      },
      {
        "@type": "Question",
        "name": "應該使用哪個模型 ID？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "從版本表選擇公開模型 ID。每個 ID 可用的端點均列於相應資料列。"
        }
      },
      {
        "@type": "Question",
        "name": "本指南會設定聊天模型嗎？",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "會。此 Model Line 支援面向用戶端的 LLM 協定。"
        }
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "HowTo",
    "name": "在 Grok Build 中使用 GPT",
    "step": [
      {
        "@type": "HowToStep",
        "position": 1,
        "name": "選擇模型 ID",
        "text": "選擇公開模型 ID，並查看其端點與目前起始價格。",
        "url": "https://runapi.ai/zh-HK/grok-build-gpt#how-step-1"
      },
      {
        "@type": "HowToStep",
        "position": 2,
        "name": "設定 RunAPI",
        "text": "為此 Agent 新增 Provider 設定。",
        "url": "https://runapi.ai/zh-HK/grok-build-gpt#how-step-2"
      },
      {
        "@type": "HowToStep",
        "position": 3,
        "name": "驗證結果",
        "text": "執行下方 Agent 狀態與模型選擇命令。",
        "url": "https://runapi.ai/zh-HK/grok-build-gpt#how-step-3"
      }
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "主頁",
        "item": "https://runapi.ai/zh-HK"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "Grok Build",
        "item": "https://runapi.ai/zh-HK/grok-build"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "GPT",
        "item": "https://runapi.ai/zh-HK/grok-build-gpt"
      }
    ]
  }
]
```
