Back to all models
xAI
grok-4-1-fast
Vendor
xAI
Category
Large Language Model API
Pricing
Input price / 1M tokens
$1.00
Output price / 1M tokens
$2.50
Supported endpoints
openaiopenai-responseQuick start
OpenAI-compatible — just change base_url to treeRouter to use this model:
curl https://treerouter.com/v1/chat/completions \
-H "Authorization: Bearer $TREEROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4-1-fast",
"messages": [{"role": "user", "content": "Hello"}]
}'