Cheaper Inference
Cheaper Inference
Model record / spacexai
grok-4.20-reasoning-beta is available for text generation from spacexai. Its reported context window is 2,000,000 tokens, with up to 2,000,000 output tokens. Observed input: text (verified request). The served catalog lists image input, streaming.
Requests above 200,000 input tokens use $1.625 input and $3.25 output per 1M tokens.
Ready when you are
Marketplace pricing, capped at list, optimized further.
POST /v1/chat/completions
curl https://api.cheaperinference.com/v1/chat/completions \ -H "Authorization: Bearer ci_live_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "grok-4.20-reasoning-beta", "messages": [ { "role": "user", "content": "Reply with the single word OK." } ] }'POST /v1/responses
curl https://api.cheaperinference.com/v1/responses \ -H "Authorization: Bearer ci_live_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "input": [ { "role": "user", "content": "Reply with the single word OK." } ], "model": "grok-4.20-reasoning-beta", "store": false }'POST /v1/messages
curl https://api.cheaperinference.com/v1/messages \ -H "Authorization: Bearer ci_live_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "grok-4.20-reasoning-beta", "messages": [ { "role": "user", "content": "Reply with the single word OK." } ], "max_tokens": 1024 }'$1.21875 estimated at displayed rates
1,000,000 ÷ 1,000,000 × $0.8125 + 250,000 ÷ 1,000,000 × $1.625
The same billed quantities at the listed reference rates: $1.875.
Uses uncached input at the displayed standard rates, with no extra modalities or tools. Billed output includes any charged reasoning tokens. Actual token counts, price tiers, and marketplace prices can change the total.
Price quote effective .
Python: pip install openai · Node.js: npm install openai. Set CHEAPER_INFERENCE_API_KEY on your server.
import osfrom openai import OpenAIclient = OpenAI( api_key=os.environ["CHEAPER_INFERENCE_API_KEY"], base_url="https://api.cheaperinference.com/v1",)request = { "input": [ { "role": "user", "content": "Reply with the single word OK.", }, ], "model": "grok-4.20-reasoning-beta", "store": False,}response = client.responses.create(**request)print(response.output_text)import OpenAI from "openai";const client = new OpenAI({ apiKey: process.env.CHEAPER_INFERENCE_API_KEY, baseURL: "https://api.cheaperinference.com/v1",});const response = await client.responses.create({ "input": [ { "role": "user", "content": "Reply with the single word OK." } ], "model": "grok-4.20-reasoning-beta", "store": false});console.log(response.output_text);For other supported endpoints and their exact parameters, use the request samples and parameter reference on this page. Read the API integration guide.
| Model | Current pricing | Context limit | Image input listed |
|---|---|---|---|
| grok-4.20-reasoning-beta (this model)spacexai | $0.8125 input / $1.625 output per 1M tokens | 2,000,000 tokens | Yes |
| grok-4.20-non-reasoning-betaspacexai | $1.0625 input / $2.125 output per 1M tokens | 2,000,000 tokens | Yes |
| grok-4.20-reasoning-batchspacexai | $0.85 input / $1.70 output per 1M tokens | 2,000,000 tokens | Yes |
This model takes the fields in its sample request. It has no other stated parameters.
See how much this model saves and when its recorded price has been lowest.
This model averaged 29.8% below comparable direct provider prices across the selected range. Its strongest observed window was 12:00 AM–10:00 AM in UTC.
Average saved
29.8%
Cheapest time
12:00 AM–10:00 AM
Hourly coverage
23/24
Signal quality
Growing
Hover a bar for savings per token and observation counts.
Source buckets are UTC; labels are converted to UTC.
Last 24 hours
#285
of 332 ranked models
Last 7 days
#245
of 389 ranked models
Last 30 days
#278
of 400 ranked models
| $0.85 input / $1.70 output per 1M tokens |
| 2,000,000 tokens |
| Yes |