Skip to main content
Grok 4 Fast Reasoning is xAI’s language model, available through Starrise AI. Grok 4 reasoning variant.

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

curl https://ai.alad.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4-fast-reasoning",
    "messages": [
      { "role": "user", "content": "Explain quantum entanglement in simple terms." }
    ]
  }'

Parameters

ParameterTypeRequiredDescription
modelstringYesFixed value: grok-4-fast-reasoning
messagesarrayYesList of { role, content } objects
max_tokensintegerNoMaximum number of tokens to generate
temperaturefloatNo02, controls randomness, default 1
streambooleanNoEnable SSE streaming, default false
top_pfloatNoNucleus sampling threshold

API Reference

View the interactive API Playground for Grok 4 Fast Reasoning.