xAI 的 grok-4.20-0309-non-reasoning 模型。支持文本、图像输入和文本输出。
Grok tokenizer (BPE)/v1/chat/completions| Parameter | Type | Default / range | Description |
|---|---|---|---|
reasoning_effort | enum | = medium | Controls how much the model thinks before answering |
max_completion_tokens | integer | >= 1 | Maximum tokens including hidden reasoning tokens |
stop | array | — | Up to 4 strings that stop generation |
seed | integer | — | Deterministic sampling seed (best-effort) |
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 |
user | string | — | End-user identifier for abuse monitoring |
Replace <YOUR_API_KEY> with the API key from your token settings.
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.
| Parameter | Type | Default / range | Description |
|---|---|---|---|
reasoning_effort | enum | = medium | Controls how much the model thinks before answering |
max_completion_tokens | integer | >= 1 | Maximum tokens including hidden reasoning tokens |
stop | array | — | Up to 4 strings that stop generation |
seed | integer | — | Deterministic sampling seed (best-effort) |
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 |
user | string | — | End-user identifier for abuse monitoring |
| Supplier | RPM | TPM | RPD |
|---|---|---|---|
| xAI | 800 | 321K | 16K |
RPM = requests per minute, TPM = tokens per minute, RPD = requests per day. Limits apply per token group.
Everything you need to decide before creating an account.
