Grok

Grok 3

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

Pricing by Supplier

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

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

xAI 官方 API

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

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

能力 / 支援的模態

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

廠商與數據私隱

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

效能

基準測試

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

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

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

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

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

About Grok 3

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

查看介紹原文

用对话整理问题与表达

Grok 3 面向通用语言任务,可以根据资料回答问题、解释概念、修改文字,也能协助理解代码和分析具体条件。写作时可要求它比较几种叙述角度,开发时可让它解释函数行为,学习时则可以用例子检查自己是否理解一个概念。

给出背景和目标读者有助于得到更合适的答案。例如同一份技术说明,给开发者看需要接口细节,给客户看则应说明用途与操作。把必须保留的信息、语气和篇幅写清,再让模型改写,能减少文风变化时丢失关键条件。

分析材料时怎样避免混入猜测?

把原文直接提供给模型,并要求区分材料事实、合理推断和缺失信息。比较方案时明确评价维度,代码问题则附上运行环境、输入和预期行为。需要最新信息时,应提供近期资料,或通过实际启用的搜索工具获取,普通问答不会自动证明信息仍然有效。

现在调用到的还是原始 Grok 3 吗?

xAI 官方 API 已将 grok-3 的请求重定向到 Grok 4.3。不同接入渠道的处理可能不同,需要复现历史结果时,应确认实际返回的模型信息并保存请求条件。持续使用旧名称的应用,也应重新检查输出风格和参数行为。

对代码和计算结果,可要求提供可运行示例或检查方法,再在实际环境验证;完整的文字解释并不代表程序已经执行成功。

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]

查看使用指南原文

例如提交一份面向客户的 API 错误说明,要求:“改写成清楚的中文帮助文档,保留错误码、触发条件和解决步骤。先解释用户能做什么,再列出需要联系支持的情况。不要把偶发错误写成永久故障,也不要补充材料中没有的恢复时间。”

代码任务可提供最小可复现片段,要求说明输入、输出和边界条件。保留原稿与请求,便于比较修改效果。需要跨时间复现时记录响应中的实际模型信息,并用固定样例检查旧名称重定向后是否影响应用。

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

What is grok-3?

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

How do I call grok-3?

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