> For the complete documentation index, see [llms.txt](https://docs.cherryai.com.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherryai.com.cn/docs/zhong-wen-fan-ti/pre-basic/providers/grok.md).

# Grok

Grok 係 xAI 推出嘅大模型，以「語氣更隨意 + 接入 X（Twitter）即時數據」見稱。

## 獲取 API Key

* 前往 [xAI Console](https://console.x.ai/) 註冊帳號
* `API 金鑰` → `建立 API Key`，複製 `xai-...` 密鑰

## 喺 Cherry Studio 配置

* 打開 `設定 → 模型服務`，搵到 **Grok** Provider 進入詳情頁
* **API 密鑰** 填入 `xai-...`
* **API 地址** 預設 `https://api.x.ai`，唔需要修改
* 撳 **獲取模型列表**，加入 `grok-4`、`grok-4-fast` 等模型

## 推薦用法

| 模型            | 適合場景        |
| ------------- | ----------- |
| `grok-4`      | 綜合最強，複雜任務首選 |
| `grok-4-fast` | 高吞吐、低延遲場景   |
| `grok-3-mini` | 低成本日常對話     |

## 聯網搜尋

部分 Grok 模型自帶聯網能力，模型名後會顯示小地球圖示。可直接喺對話框開啟「聯網」使用，詳見 [上網模式](/docs/zhong-wen-fan-ti/pre-basic/settings/websearch.md)。

{% hint style="info" %}

* Grok 需要海外網絡存取，國內用戶請配代理
* xAI 提供免費額度（按月刷新），日常體驗足夠
  {% endhint %}

***

### 取得幫助同提交反饋

如果你喺配置或者使用過程中遇到任何疑問、Bug，或者有功能改善建議，請參考 [反饋與建議](/docs/zhong-wen-fan-ti/question-contact/suggestions.md) 入面提供嘅官方渠道。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cherryai.com.cn/docs/zhong-wen-fan-ti/pre-basic/providers/grok.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
