grok-4-20-reasoning API Pricing & Access
Grok 4.20 is xAI's latest flagship model, featuring industry-leading speed and agentic tool-calling capabilities. It combines the lowest hallucination rate on the market with strict prompt compliance, consistently delivering accurate and truthful responses.
Pricing by group
USD per 1M tokens. Price = base price × group ratio.
| Group | Input | Output | About this group |
|---|---|---|---|
| Xai-Grok-1 | $0.5515 | $1.103 | quick reasoning, suitable for Q&A |
Long-context tiers
Using the lowest-priced public group, Xai-Grok-1, as the example (USD per 1M tokens); other groups scale by their own ratio. Ranges are token counts per request.
| Input range (tokens) | Input | Output | Cache multiplier |
|---|---|---|---|
| [0 , 200000] | $0.5515 | $1.103 | 1x |
| (200000 , 500000] | $1.103 | $2.206 | 2x |
Snapshot taken at build time on 2026-11-26. Actual charges follow the live price table above and your console.
Capabilities
- Provider
- Grok (xAI)
- Features
- Conversation · Tool
- API formats
- OpenAI Chat Completions
Quick start
Base URL: https://api.openlux.ai/v1. Create an API key in the console and replace YOUR_API_KEY in the examples.
curl https://api.openlux.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4-20-reasoning",
"messages": [{"role": "user", "content": "Hello"}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.openlux.ai/v1", api_key="YOUR_API_KEY")
resp = client.chat.completions.create(
model="grok-4-20-reasoning",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)Full parameters in the API docs
FAQ
How do I call the grok-4-20-reasoning API?
Sign up for OpenLux, create an API key in the console, set the base URL to https://api.openlux.ai/v1 and use grok-4-20-reasoning as the model name.
How is the grok-4-20-reasoning API billed?
Pay as you go: input and output tokens are priced separately, and the price depends on the group you choose. At build time the lowest public group was $0.5515 per 1M input tokens and $1.103 per 1M output tokens. Top-ups start at $1.
Is there a Batch API?
Not at the moment. OpenLux has no Batch API; all requests are real-time calls billed as such. For bulk jobs, send concurrent requests to the regular endpoints.
Which API formats does grok-4-20-reasoning support?
OpenAI Chat Completions.