grok-4.7Grok 4.7 面向编程、智能体与知识工作,支持文本和图片理解,可配合检索与代码工具完成多步骤分析。
比較同一模型在不同供應商的價格與服務表現。
| 供應商 | Discount | 輸入/M | 輸出/M | 緩存讀取/M | ||||
|---|---|---|---|---|---|---|---|---|
xAI xAI 官方 | 省60% | $0.8 | $2.4 | $0.2 |
左右滑動表格,查看完整價格與效能。
標準化評測得分。百分比越高越好,並展示排名百分位。
指標來源:Artificial Analysis 2026-09-30·Grok 4.7
Intelligence Index
Grok 4.7
46.4
基準圖表保留來源中的模型選擇和推理設定。缺少模型或測量值不代表零分,基準成本或速度也不是本站的服務承諾。
Grok 4.7适合代码辅助、知识分析和多步骤智能体任务。它可以根据项目上下文定位实现问题,结合图片解释界面或图表,也可以围绕多份资料比较说法、整理证据并形成工作文档。
通过应用启用的网页搜索、X搜索或其他检索工具,模型可以把外部资料带入分析。适合整理产品发布后的用户反馈、比较不同来源的观点,或查找某个技术问题的最新说明。应要求保留出处、区分发布时间与事件时间,并把原始事实和评论观点分开,避免将热度当作结论。
编程任务则可以结合函数调用和代码执行工具,将分析接到实际验证。提供错误输入、预期行为和项目约定,让模型先找出原因,再给出范围清楚的修复;运行结果应作为下一轮判断的依据。
Grok 4.7支持不同推理强度,可按任务难度选择。长工具循环要保留关键结果并管理上下文,避免重复检索或丢失已确定的限制。使用Responses API时,返回的加密推理内容应按要求原样续接。没有启用检索工具时,近期问题需要用户提供资料,不能把普通回答视作实时查询结果。
“使用已启用的检索工具整理本次产品发布后的反馈。分别归纳官方说明、用户实际遇到的问题和个人观点,保留出处与日期。不要按转发量判断真实性;重复说法合并,无法核实的情况单独列出。最后提出需要进一步验证的三个问题。”
需要应用实际启用相应搜索工具。普通对话不会自动获得实时资料。
保留工具结果与必要上下文。通过Responses API返回的reasoning.encrypted_content应原样传回后续请求,避免手动改写。
代码任务可要求先提供失败示例,再验证修复结果。
/v1/chat/completions| 參數 | 類型 | 預設值 / 範圍 | 說明資訊 |
|---|---|---|---|
temperature | number | = 10 ~ 2 | 採樣溫度;越低越穩定 |
top_p | number | = 10 ~ 1 | 核採樣累積概率 |
max_tokens | integer | >= 1 | 回應中最大 token 數 |
frequency_penalty | number | = 0-2 ~ 2 | 懲罰高頻 token 的重複出現 |
presence_penalty | number | = 0-2 ~ 2 | 鼓勵引入新話題 |
stop | array | — | 最多 4 個停止生成的字串 |
seed | integer | — | 盡量保證可復現的採樣種子 |
n | integer | = 1>= 1 | 生成的候選條數 |
stream | boolean | = false | 透過 SSE 串流返回 token |
response_format | object | — | 強制輸出 JSON 物件或符合 Schema 的結果 |
tools | array | — | 模型可呼叫的工具 / 函數聲明 |
tool_choice | string | autononerequired | 工具選擇策略或具體工具名 |
logprobs | boolean | = false | 返回每個 token 的對數概率 |
top_logprobs | integer | 0 ~ 20 | 每個 token 返回的 top 概率數量 |
logit_bias | object | — | 按 token 的 logit 偏置映射 |
user | string | — | 用於風險審計的終端用戶標識 |
替換 <YOUR_API_KEY> 替換為 API 金鑰頁面中的金鑰。
所有請求必須攜帶 Authorization: Bearer <TOKEN> 請求頭。Anthropic 格式的端點也接受 x-api-key 請求頭。
在「令牌」頁面生成 API Key,可以按模型、分組、IP、速率等維度精細化授權。
| 參數 | 類型 | 預設值 / 範圍 | 說明資訊 |
|---|---|---|---|
temperature | number | = 10 ~ 2 | 採樣溫度;越低越穩定 |
top_p | number | = 10 ~ 1 | 核採樣累積概率 |
max_tokens | integer | >= 1 | 回應中最大 token 數 |
frequency_penalty | number | = 0-2 ~ 2 | 懲罰高頻 token 的重複出現 |
presence_penalty | number | = 0-2 ~ 2 | 鼓勵引入新話題 |
stop | array | — | 最多 4 個停止生成的字串 |
seed | integer | — | 盡量保證可復現的採樣種子 |
n | integer | = 1>= 1 | 生成的候選條數 |
stream | boolean | = false | 透過 SSE 串流返回 token |
response_format | object | — | 強制輸出 JSON 物件或符合 Schema 的結果 |
tools | array | — | 模型可呼叫的工具 / 函數聲明 |
tool_choice | string | autononerequired | 工具選擇策略或具體工具名 |
logprobs | boolean | = false | 返回每個 token 的對數概率 |
top_logprobs | integer | 0 ~ 20 | 每個 token 返回的 top 概率數量 |
logit_bias | object | — | 按 token 的 logit 偏置映射 |
user | string | — | 用於風險審計的終端用戶標識 |
| 供應商 | RPM | TPM | RPD |
|---|---|---|---|
| xAI | 無限制 | 無限制 | 無限制 |
無限制
Grok 4.7 面向编程、智能体与知识工作,支持文本和图片理解,可配合检索与代码工具完成多步骤分析。
Create an API key with access to grok-4.7, then use the exact model ID and a supported endpoint from the API access section. Request fields depend on the selected endpoint.
Pricing depends on the selected provider group and the model billing unit. The current input, output, request, or media prices are shown on this page before sign-up.
The model catalog lists a context window of 500000 tokens. Check the selected endpoint for request limits.
The model catalog lists a maximum output of 450000 tokens. Your request settings may set a lower limit.
Start with the use cases and prompting guidance on this page, then evaluate the model with representative inputs from your project.
