Skip to content
xAI
x-ai/grok-4.20

About this model

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...

Make a request

OpenAI-compatible: set the base URL and your Promptix API key, keep your existing SDK.

curl https://promptix.tn/api/v1/chat/completions \  -H "Authorization: Bearer $PROMPTIX_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "x-ai/grok-4.20",    "messages": [      {"role": "user", "content": "Hello! What can you do?"}    ]  }'

Pricing

In TND per 1M tokens. VAT and the platform fee are added at top-up.

Input tokens

4.839 TND

per 1M tokens

Output tokens

9.677 TND

per 1M tokens

1,000 requests with 1K input and 500 output tokens cost about 9.677 TND.

Specifications

Provider
xAI
Context window
2,000,000 tokens
Input modality
Text
Added
Mar 31, 2026
Supported parameters
include_reasoninglogprobsmax_tokensreasoningresponse_formatseedstructured_outputstemperature