TokenRoute
Get started
Back to models

SpaceXAI: Grok 4.20

x-ai/grok-4.20

Grok 4.20 is a reasoning model from SpaceXAI with industry-leading speed and agentic tool calling capabilities. It combines the lowest hallucination rate on the market with strict prompt adherance, delivering...

Pricing

Input$0.8750 /M
Output$1.75 /M
Cache read$0.1400 /M
Web search$0.0035 /req

Specs

Context length2M tokens
Max output1.8M 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-4.20",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Supported parameters

include_reasoning
logprobs
max_tokens
reasoning
response_format
seed
structured_outputs
temperature
tool_choice
tools
top_logprobs
top_p
SpaceXAI: Grok 4.20 API, pricing and context length | TokenRoute