Skip to content

Grok Models

How to Connect Grok

The recommended way to call Grok models is usually through the OpenAI-compatible API:

http
POST /v1/chat/completions

That means:

  • Base URL is still https://logox.top
  • Route is still /v1/chat/completions
  • The main change is setting model to 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.20
  • grok-4-fast-reasoning
  • grok-4-fast-non-reasoning
  • grok-code-fast-1

Model Capabilities

ModelNotes
grok-4.20Current flagship, focused on reasoning, tool calling, and speed
grok-4-fast-reasoningMore cost-efficient reasoning variant
grok-4-fast-non-reasoningMore direct non-reasoning variant
grok-code-fast-1More 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.

Support QQ: 6669955