x-ai
xAI Grok 4.20
x-ai/grok-4.20
Input$1.25 /1M tokens
·Output$2.50 /1M tokens
Grok 4.20 is a reasoning model from xAI with industry-leading speed and agentic tool calling capabilities. It combines the lowest hallucination rate on the market with strict prompt adherance, delivering...
Code Examples
import requests
response = requests.post(
"https://neurongate.net/v1/chat/completions",
headers={
"Authorization": "Bearer ng-your-api-key",
"Content-Type": "application/json"
},
json={
"model": "x-ai/grok-4.20",
"messages": [
{"role": "user", "content": "Hello!"}
]
}
)
print(response.json()["choices"][0]["message"]["content"])Pricing Details
| Example | Cost |
|---|---|
| 1K input tokens (short prompt) | $0.00125 |
| 1K in + 500 out (typical response) | $0.00250 |
| 10K in + 2K out (document analysis) | $0.0175 |
| 100K in + 10K out (large context) | $0.1500 |
Prices in USD. Billed per actual token usage. Prepay with USDT, USDC, ETH, or BTC.
Frequently Asked Questions
Capabilities
Streaming
YesFunction Calling / Tools
YesVision (Image Input)
YesAudio Processing
NoContext Window
2.0M tokens
~1.5M words of text
Modalities
Input
textimagefile
Output
text