> ## Documentation Index
> Fetch the complete documentation index at: https://mixroute.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Grok 4.7

> xAI 面向程式設計、代理任務和知識工作的模型，支援可調推理。

<link rel="alternate" hrefLang="en" href="https://mixroute.ai/docs/model-api/xai/grok-4.7" />

<link rel="alternate" hrefLang="zh-Hans" href="https://mixroute.ai/docs/zh-hans/model-api/xai/grok-4.7" />

<link rel="alternate" hrefLang="zh-Hant" href="https://mixroute.ai/docs/zh-hant/model-api/xai/grok-4.7" />

<link rel="alternate" hrefLang="ja" href="https://mixroute.ai/docs/ja/model-api/xai/grok-4.7" />

<link rel="alternate" hrefLang="x-default" href="https://mixroute.ai/docs/model-api/xai/grok-4.7" />

xAI 面向程式設計、代理任務和知識工作的模型，支援可調推理。

## 模型資訊

| 欄位 | 說明 |
| - | - |
| `model` | grok-4.7 |
| `context` | 500,000 tokens |
| `endpoint` | POST /v1/responses |

上下文和輸出長度為模型規格；實際請求限制、可用性與計費取決於 MixRoute 路由。

## 能力與使用

* 支援文本和影像輸入、文本輸出、函式呼叫和結構化輸出。
* reasoning.effort 支援 low、medium、high、xhigh，預設為 high。
* 多輪 Responses 請求應原樣保留返回的 reasoning 條目。託管搜尋及其他服務端工具是否可用取決於所選路由。

## 請求示例

呼叫前設定 `MIXROUTE_API_KEY`。

```bash theme={null}
curl --request POST "https://api.mixroute.ai/v1/responses" \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "grok-4.7",
  "input": "Explain the tradeoffs of database indexes.",
  "reasoning": {
    "effort": "low"
  },
  "max_output_tokens": 1024,
  "store": false
}'
```

## 請求欄位

| 欄位 | 說明 |
| - | - |
| `model` | 必填，使用上方完整模型 ID。 |
| `input` | 必填，文本或 Responses 輸入條目。 |
| `reasoning.effort` | 推理強度，取值見上方模型說明。 |
| `max_output_tokens` | 生成輸出預算，包含推理 token。 |
| `store` | 是否儲存響應；本示例關閉儲存。 |

完整請求格式見[介面說明](/docs/zh-hant/api-reference/endpoint/responses-openai)。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.