Grok 4 is xAI's flagship reasoning model, designed to be maximally truthful, helpful, and intelligent. It features native tool use (including code interpreter and real-time search), advanced multimodal capabilities, and strong performance on complex reasoning tasks.
Context Window
256k tokens
Max Output
32k tokens
Latency
0.4s
Throughput
150 tps
Architecture
Grok 4
Parameters
Unknown
Modality
multimodal
Knowledge Cutoff
Nov 2024
License
Proprietary
Training Data
Unknown
Input Modalities
Output Modalities
gpqa
88
mmmu pro
76
aime 2025
94
arc agi v2
16
livecodebench pro
79.4
curl -X POST https://api.neuralhub.xyz/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer NEURALHUB_API_KEY" \
-d '{
"model": "x-ai/grok-4",
"messages": [
{ "role": "system", "content": "You are a helpful assistant." },
{ "role": "user", "content": "What is the meaning of life, the universe, and everything?" }
],
"temperature": 0.7,
"max_tokens": 500,
"top_p": 0.9
}'The API returns an OpenAI-compatible response. Example:
{
"id": "chatcmpl-<uuid>",
"object": "chat.completion",
"created": 1765391328,
"model": "x-ai/grok-4",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "The answer to life, the universe, and everything is famously 42..."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 26,
"completion_tokens": 169,
"total_tokens": 195
}
}