TokenRoute
Get started
Back to models

xAI: Grok Latest

~x-ai/grok-latest

This model always redirects to the latest Grok model from xAI.

Pricing

Input$1.40 /M
Output$4.20 /M
Cache read$0.3500 /M
Web search$0.0035 /req

Specs

Context length500K tokens
Max output450K tokens
Inputtext, image, file
Outputtext

Quickstart

Point the OpenAI SDK at https://tokenroute.app/api/v1 and use a TokenRoute API key.

bash
curl https://tokenroute.app/api/v1/chat/completions \
  -H "Authorization: Bearer $TOKENROUTE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "~x-ai/grok-latest",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Supported parameters

include_reasoning
logprobs
max_tokens
reasoning
reasoning_effort
response_format
seed
stop
structured_outputs
temperature
tool_choice
tools
top_k
top_logprobs
top_p