Grok

Grok 4 0709

xAI按量收費
Alias:grok-4-0709
text
起始價格
輸入 / 輸出 · 1M
上下文
—
最大輸入窗口
模態
→
發佈於
Jul 2025

Pricing by Supplier

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

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

xAI 官方 API

省40%
$1.8$3
$9$15
刪除線金額為標準價。效能統計涵蓋最近 24 小時,實際表現隨請求變化。

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

能力 / 支援的模態

串流輸出系統提示詞函數呼叫工具JSON 模式結構化輸出
輸入
輸出

廠商與數據私隱

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

效能

基準測試

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

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

目前基準快照不包含此模型。

缺少模型或測量值不代表零分。

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

About Grok 4 0709

Use Grok 4 0709 through the API endpoints listed on this page. Compare its configured capabilities and supplier prices before choosing an integration.

查看介紹原文

用推理比较算法与解决方案

Grok 4 可以分析多步条件、解释数学关系并协助设计代码。面对一道算法题,可以让它先识别输入规模与限制,比较不同方法的复杂度,再给出实现;面对工程决策,则可以把需求和约束交给它,检查方案中尚未成立的假设。

例如批量匹配订单与退款记录时,先说明匹配键、重复记录的处理规则和允许的时间差,让模型比较逐条扫描、哈希索引及排序匹配。要求它给出各方法适合的数据条件,能够帮助你看清为什么某种写法在小样本可用,数据量增大后却变慢。

把复杂材料整理成明确规则

项目说明、业务文档和错误日志可以一起提供,让它提取需要满足的条件,找出矛盾和缺失信息,再形成步骤清楚的处理方案。处理长材料时,为每份内容注明用途,并明确最终需要代码、对照表还是决策建议,方便围绕同一个目标深入分析。

从方案走到验证

生成代码后,可以继续要求补充边界情况、测试数据和失败处理。数学问题应检查单位与前提,工程问题应比较正常输入、异常输入和历史失败案例。模型也可以参与工具调用流程;应用提供检索或代码执行工具后,再依据返回结果继续修正方案。

如需复现历史结果,保留固定输入、参数和测试样本,在正式替换前比较关键任务的实际表现。

Use cases and prompting

Starting points for evaluation; supported inputs and options are listed in API access.

Use cases to explore

  • Draft and revise text with explicit audience, tone and format requirements.
  • Summarize supplied documents and compare answers against the original sources.

Practical tips

Separate instructions from source material, describe the desired output and provide an example. Test tool use or structured output only when listed as supported.

Example prompt

Summarize the following document in five bullet points. Separate confirmed facts from open questions, cite the relevant passages and do not invent missing information. Document: [paste your text]

查看使用指南原文

可以这样比较匹配算法:

“订单和退款各有十万行。订单可能重复,退款可能分多次发生。请先列出实现正确匹配还缺少哪些规则,再比较哈希索引与排序扫描的时间、空间复杂度。确认规则后给出 Python 草案,并提供重复键、无匹配及多次退款的测试。”

先补齐它提出的规则问题,再让它实现。拿一小批真实数据核对匹配结果,检查重复记录、缺失值与时间边界,再扩大处理规模;以规则满足情况和测试结果判断方案是否可用。

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-0709

What is grok-4-0709?

Use grok-4-0709 through the API endpoints listed on this page. Compare its configured capabilities and supplier prices before choosing an integration.

How do I call grok-4-0709?

Create an API key with access to grok-4-0709, 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-0709 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.

How should I evaluate grok-4-0709 for my project?

Separate instructions from source material, describe the desired output and provide an example. Test tool use or structured output only when listed as supported.