Grok

Grok 3 Mini

xAIToken-based
Alias:grok-3-mini
Create API Key

Compare grok-3-mini API pricing, supported endpoints, capabilities and access options on Modelsell.

text
Starting price
Input / Output · 1M
Context
—
Maximum input window
Modalities
→

Pricing by Supplier

xAI
-40%
xAI 官方
Input$0.3$0.18/ 1M
Output$0.501$0.3006/ 1M
Cache Read$0.075$0.045/ 1M

Capabilities / Supported modalities

StreamingSystem promptFunction callingToolsJSON modeStructured outputPrompt caching
Input
Output

Provider & data privacy

Provider
xAIDocs
Tokenizer
Grok tokenizer (BPE)
License
Proprietary (commercial)Proprietary
Data retention44 daysNot used for upstream training by default

Performance

Benchmarks

Scores on standardized evaluations. Higher percentages are better — and rank percentile shows

Metrics sourced fromArtificial Analysis 2026-09-30·Grok 3 Mini

This model is not included in the current benchmark snapshot.

Missing models or measurements are not zero scores.

Benchmark charts preserve the source model selection and reasoning settings. Missing models or measurements are not zero scores, and benchmark cost or speed is not this site’s service commitment.

About Grok 3 Mini

把推理用在有明确条件的问题上

Grok 3 Mini 是侧重推理的文字模型,适合数学计算、程序设计和需要多步判断的任务。它可以将文字条件转成变量与约束,比较几种解法,再整理出结论和便于检查的说明。例如根据排班限制寻找可行安排、分析算法为什么超时,或把业务规则转成计算逻辑。

这类任务的效果很依赖问题是否完整。人数、单位、取整方式、重复项如何处理等条件,最好在输入中一次说清。涉及专业知识时,把公式、规则或参考材料一同提供,让模型在给定依据上推导,减少用常识补齐关键事实的机会。

怎样检查它的答案?

要求输出必要的计算式、使用的假设和验证方法,而不只是一个数字。对于排班和组合问题,可让它逐条检查是否满足约束;对于代码,可要求给出时间复杂度、空输入及极端输入的处理,再用真实测试确认。遇到有多种解释的题目,先让模型指出歧义,再继续求解。

适合直接回答知识问答吗?

它也能解释概念和整理文字,但更适合需要推导的工作。如果任务依赖最新政策、产品参数或冷门事实,应提供对应资料,避免把推理能力当作事实来源。

复杂问题通常需要更长的思考和输出过程。可以将大任务分成条件整理、求解、校验几个阶段,让每一步都有清楚的输入与验收标准,并给请求留出足够的完成时间。

Use cases and prompting

可以用约束排班检验它的推理过程:

“有 A、B、C 三名员工,周一至周三每天安排两人。A 周二不能上班,B 周三不能上班,每人最多上两天。请判断是否有解;若有,列出排班,并逐条核对出勤限制与每人天数。若无解,说明冲突的约束。”

先检查模型是否准确重述条件,再核对方案。改变某个条件时,明确替换旧条件,并要求重新验证整个结果。用于程序题时,补充输入规模与运行时限制,让它在写代码前选择合适算法,生成后运行测试确认。

API access

API documentation

Code samples

RequestPOST/v1/chat/completions
Example request
Parameters
ParameterTypeDefault / rangeDescription
temperature
number
=10 ~ 2
Sampling temperature; lower is more deterministic
top_p
number
=10 ~ 1
Nucleus sampling probability mass
max_tokens
integer>= 1Maximum number of tokens in the response
frequency_penalty
number
=0-2 ~ 2
Penalises repetition of frequent tokens
presence_penalty
number
=0-2 ~ 2
Encourages introducing new topics
stop
array—Up to 4 strings that stop generation
seed
integer—Deterministic sampling seed (best-effort)
n
integer
=1>= 1
Number of completions to generate
stream
boolean
=false
Stream tokens via Server-Sent Events
response_format
object—Force JSON object or schema-conforming output
tools
array—Tool / function declarations the model may call
tool_choice
string
autononerequired
Tool-choice policy or specific tool name
logprobs
boolean
=false
Return per-token log probabilities
top_logprobs
integer0 ~ 20Number of top log probabilities returned per token
logit_bias
object—Per-token logit bias map
user
string—End-user identifier for abuse monitoring

Replace <YOUR_API_KEY> with the API key from your token settings.

Authentication

All requests must include Authorization: Bearer <TOKEN> header. Anthropic-formatted endpoints accept the x-api-key header instead.

Generate tokens from the Tokens page; you can scope them to specific models, groups, IPs, and rate-limits.

Supported parameters

Generation parameters
ParameterTypeDefault / rangeDescription
temperature
number
=10 ~ 2
Sampling temperature; lower is more deterministic
top_p
number
=10 ~ 1
Nucleus sampling probability mass
max_tokens
integer>= 1Maximum number of tokens in the response
frequency_penalty
number
=0-2 ~ 2
Penalises repetition of frequent tokens
presence_penalty
number
=0-2 ~ 2
Encourages introducing new topics
stop
array—Up to 4 strings that stop generation
seed
integer—Deterministic sampling seed (best-effort)
n
integer
=1>= 1
Number of completions to generate
stream
boolean
=false
Stream tokens via Server-Sent Events
response_format
object—Force JSON object or schema-conforming output
tools
array—Tool / function declarations the model may call
tool_choice
string
autononerequired
Tool-choice policy or specific tool name
logprobs
boolean
=false
Return per-token log probabilities
top_logprobs
integer0 ~ 20Number of top log probabilities returned per token
logit_bias
object—Per-token logit bias map
user
string—End-user identifier for abuse monitoring

Rate limits

SupplierRPMTPMRPD
xAIUnlimitedUnlimitedUnlimited

No restriction

Frequently asked questions about grok-3-mini

What is grok-3-mini?

Compare grok-3-mini API pricing, supported endpoints, capabilities and access options on Modelsell.

How do I call grok-3-mini?

Create an API key with access to grok-3-mini, 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-mini 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-mini for my project?

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