Key Capabilities
- OpenAI-compatible — Use directly with the OpenAI SDK
- Streaming — Supports real-time SSE streaming
- Strong reasoning — Suitable for complex, multi-step tasks
Quick Example
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Fixed value: grok-4-1-fast-reasoning |
messages | array | Yes | List of { role, content } objects |
max_tokens | integer | No | Maximum number of tokens to generate |
temperature | float | No | 0–2, controls randomness, default 1 |
stream | boolean | No | Enable SSE streaming, default false |
top_p | float | No | Nucleus sampling threshold |
API Reference
View the interactive API Playground for Grok 4.1 Fast Reasoning.

