Chat Completion
xAI
grok-4-1-fast-non-reasoning
Creates a model response for the given chat conversation.
POST
Chat Completion
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Model ID
Available options:
grok-4-1-fast-non-reasoning Example:
"grok-4-1-fast-non-reasoning"
A list of messages comprising the conversation so far.
Minimum array length:
1Example:
[{ "role": "user", "content": "Hello!" }]The maximum number of tokens to generate.
Required range:
x >= 1Sampling temperature.
Required range:
0 <= x <= 2Example:
1
Nucleus sampling threshold.
Required range:
0 <= x <= 1If true, stream partial message deltas using SSE.