Grok

Grok 4.7

xAI按量收費
Alias:grok-4.7

Grok 4.7 面向编程、智能体与知识工作,支持文本和图片理解,可配合检索与代码工具完成多步骤分析。

textimagefunction_callingtoolsjson_modestructured_outputreasoningvisioncontext:500000
起始價格
輸入 / 輸出 · 1M
上下文
500K
最大輸入窗口
最大輸出
450K
單次回應最大 token 數
模態
→
知識截止
May 2026
發佈於
Sep 2026

Pricing by Supplier

比較同一模型在不同供應商的價格與服務表現。

供應商1
USD · 每 1M tokens效能 · Last 24 hours
供應商Discount輸入/M輸出/M緩存讀取/M
xAI

xAI 官方

省60%
$0.8$2
$2.4$6
$0.2$0.5
刪除線金額為標準價。效能統計涵蓋最近 24 小時,實際表現隨請求變化。

左右滑動表格,查看完整價格與效能。

能力 / 支援的模態

串流輸出函數呼叫工具JSON 模式結構化輸出推理視覺
輸入
輸出

廠商與數據私隱

供應商
分詞器
Grok tokenizer (BPE)
許可證
Proprietary (commercial)商業閉源
數據保留81 日預設不會用於上游訓練

效能

基準測試

標準化評測得分。百分比越高越好,並展示排名百分位。

指標來源:Artificial Analysis 2026-09-30·Grok 4.7

Intelligence Index

Grok 4.7

46.4

基準圖表保留來源中的模型選擇和推理設定。缺少模型或測量值不代表零分,基準成本或速度也不是本站的服務承諾。

About Grok 4.7

既能分析材料,也能协作解决问题

Grok 4.7适合代码辅助、知识分析和多步骤智能体任务。它可以根据项目上下文定位实现问题,结合图片解释界面或图表,也可以围绕多份资料比较说法、整理证据并形成工作文档。

研究近期内容时,让检索参与

通过应用启用的网页搜索、X搜索或其他检索工具,模型可以把外部资料带入分析。适合整理产品发布后的用户反馈、比较不同来源的观点,或查找某个技术问题的最新说明。应要求保留出处、区分发布时间与事件时间,并把原始事实和评论观点分开,避免将热度当作结论。

编程任务则可以结合函数调用和代码执行工具,将分析接到实际验证。提供错误输入、预期行为和项目约定,让模型先找出原因,再给出范围清楚的修复;运行结果应作为下一轮判断的依据。

多轮工作保留连续信息

Grok 4.7支持不同推理强度,可按任务难度选择。长工具循环要保留关键结果并管理上下文,避免重复检索或丢失已确定的限制。使用Responses API时,返回的加密推理内容应按要求原样续接。没有启用检索工具时,近期问题需要用户提供资料,不能把普通回答视作实时查询结果。

Use cases and prompting

发布反馈研究示例

“使用已启用的检索工具整理本次产品发布后的反馈。分别归纳官方说明、用户实际遇到的问题和个人观点,保留出处与日期。不要按转发量判断真实性;重复说法合并,无法核实的情况单独列出。最后提出需要进一步验证的三个问题。”

能自动搜索网页和X吗?

需要应用实际启用相应搜索工具。普通对话不会自动获得实时资料。

多轮工具调用怎样保持连续性?

保留工具结果与必要上下文。通过Responses API返回的reasoning.encrypted_content应原样传回后续请求,避免手动改写。

代码任务可要求先提供失败示例,再验证修复结果。

API access

API 介面文件

呼叫示例

請求POST/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
integer0 ~ 20每個 token 返回的 top 概率數量
logit_bias
object—按 token 的 logit 偏置映射
user
string—用於風險審計的終端用戶標識

替換 <YOUR_API_KEY> 替換為 API 金鑰頁面中的金鑰。

身份驗證

所有請求必須攜帶 Authorization: Bearer <TOKEN> 請求頭。Anthropic 格式的端點也接受 x-api-key 請求頭。

在「令牌」頁面生成 API Key,可以按模型、分組、IP、速率等維度精細化授權。

支援的參數

Generation parameters
參數類型預設值 / 範圍說明資訊
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
integer0 ~ 20每個 token 返回的 top 概率數量
logit_bias
object—按 token 的 logit 偏置映射
user
string—用於風險審計的終端用戶標識

速率限制

供應商RPMTPMRPD
xAI無限制無限制無限制

無限制

Frequently asked questions about grok-4.7

What is grok-4.7?

Grok 4.7 面向编程、智能体与知识工作,支持文本和图片理解,可配合检索与代码工具完成多步骤分析。

How do I call 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.

How is grok-4.7 priced?

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.

What is the context window of grok-4.7?

The model catalog lists a context window of 500000 tokens. Check the selected endpoint for request limits.

What is the maximum output of grok-4.7?

The model catalog lists a maximum output of 450000 tokens. Your request settings may set a lower limit.

How should I evaluate grok-4.7 for my project?

Start with the use cases and prompting guidance on this page, then evaluate the model with representative inputs from your project.