x-aiChat
xAI: Grok 4.20
x-ai/grok-4.20
2000KContext Window
Supported Protocols:reasoninginclude_reasoningmax_tokenstemperaturetop_pseedlogprobstop_logprobsresponse_formattoolstool_choicestructured_outputs
Online
Grok 4.20 is xAI's newest flagship model with industry-leading speed and agentic tool calling capabilities. It combines the lowest hallucination rate on the market with strict prompt adherance, delivering consistently precise and truthful responses. Reasoning can be enabled/disabled using the `reasoning` `enabled` parameter in the API. [Learn more in our docs](
Capabilities
👁 Vision🧠 Reasoning🔧 Function CallingText GenerationCode GenerationAnalysis & Reasoningmodels.reasoning
Technical Specs
Input Modality
Text、Image、Text
Output Modality
Text
Arch
—
Pricing
Pay per use, no monthly feesInput Token< ¥0.001/1K Token
Output Token< ¥0.001/1K Token
Quick Start
from openai import OpenAI
client = OpenAI(
base_url="https://api.uniontoken.ai/v1",
api_key="YOUR_UNIONTOKEN_API_KEY",
)
response = client.chat.completions.create(
model="x-ai/grok-4.20",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)FAQ
xAI: Grok 4.20
x-ai/grok-4.20
In< ¥0.001/1K
Out< ¥0.001/1K
Context Window2000K
Related Models
View All → →Ready to get started?
Get 1M free tokens on registration, no monthly fees or minimum spend
Register Now →