Grok Models
How to Connect Grok
The recommended way to call Grok models is usually through the OpenAI-compatible API:
http
POST /v1/chat/completionsThat means:
- Base URL is still
https://logox.top - Route is still
/v1/chat/completions - The main change is setting
modelto a Grok model name
Query Available Models Through new-api
bash
curl https://logox.top/v1/models \
-H "Authorization: Bearer sk-logox-your-key"Native xAI Query Method
bash
curl https://api.x.ai/v1/models \
-H "Authorization: Bearer $XAI_API_KEY"Common Current Text Models
grok-4.20grok-4-fast-reasoninggrok-4-fast-non-reasoninggrok-code-fast-1
Model Capabilities
| Model | Notes |
|---|---|
grok-4.20 | Current flagship, focused on reasoning, tool calling, and speed |
grok-4-fast-reasoning | More cost-efficient reasoning variant |
grok-4-fast-non-reasoning | More direct non-reasoning variant |
grok-code-fast-1 | More focused on coding and development tasks |
Request Example
bash
curl https://logox.top/v1/chat/completions \
-H "Authorization: Bearer sk-logox-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.20",
"messages": [
{ "role": "user", "content": "Give me a product announcement title" }
]
}'Note
If GET /v1/models does not show Grok models, the current token's group has not assigned them, or token model permissions filtered them out.
