xAI: xai/grok-4-20-non-reasoning
grok-4-20-non-reasoning
xai/grok-4-20-non-reasoningCapabilities
5
VisionToolsSearchJSONCache
Context length
—
Tokens
Max output tokens
—
Tokens
Type
Chat
xAI
Playground
Pricing
Pricing breakdown
Usage-based pricing, broken down by billing item at your current rates.
30% off
Input tokens
2 price tiers
Total prompt tokens (including cache) < 200,000
0.875 credits / 1M
All other cases
1.75 credits / 1M
Output tokens
2 price tiers
Total prompt tokens (including cache) < 200,000
1.75 credits / 1M
All other cases
3.5 credits / 1M
Cache read tokens
2 price tiers
Total prompt tokens (including cache) < 200,000
0.14 credits / 1M
All other cases
0.28 credits / 1M
Billing items are additive. Only one matching price tier applies to each item. Each request is calculated exactly from actual usage, and the total is rounded up once to the nearest 0.000001 credits.
API
cURL example
request.sh
POST
/v1/chat/completionsSynchronousOpenAI-compatible
curl "https://api.modelrover.ai/v1/chat/completions" \ -X POST \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "xai/grok-4-20-non-reasoning", "messages": [ { "role": "user", "content": "Explain model gateways in one sentence." } ]}'Set your API_KEY environment variable before running. Keep your key server-side.