Grok 4.20 pricing: $1.25/1M input tokens, $2.5/1M output tokens, $0.2/1M cached tokens.
Grok 4.20 is xAI's mid-range model, best suited for agentic tool use, fast reasoning, real-time knowledge. It costs $1.25 per 1M input tokens and $2.5 per 1M output tokens, with a 2M token context window. At typical usage (10K input tokens, 2K output tokens per call, 1,000 calls per day), Grok 4.20 costs approximately $525 per month. With prompt caching enabled at a 84% discount, cached input drops to $0.2/1M tokens — significant for applications with repeated system prompts. For lower costs, GLM-5.2 (Zhipu) offers input at $1.2/1M. For higher capability, Gemini 3.5 Flash (Google) costs $1.5/1M input. Grok 4.20 sits in the sweet spot between cost and capability. Use it for production features that need reliable quality — coding assistance, content generation, data analysis, and multi-step reasoning — without paying premium model rates. On a per-request basis, sending 1,000 input tokens to Grok 4.20 costs $0.00125, and generating 1,000 output tokens costs $0.0025. A typical chatbot exchange (500 tokens in, 300 tokens out) runs about $0.001375 per message. At scale, small per-request cost differences compound quickly — a model that costs 2x more per token costs 2x more at any volume. All pricing shown here is sourced from xAI's official pricing page and verified regularly. LLM providers may change pricing without notice. Always confirm current rates on the provider's website before making purchasing decisions. The cost calculator on this page lets you estimate monthly spending based on your actual token usage and call volume. xAI applies standard rate limits to Grok 4.20 API keys. Check the provider dashboard for your current tier and request higher limits if needed. To get started, create an API key from the xAI developer console, install the provider's SDK (openai npm package with base URL override (xAI/Zhipu/Moonshot are OpenAI-compatible)), and make your first API call with a small prompt to verify connectivity and measure actual latency. Most providers offer a free tier or credits for new accounts — use these to benchmark Grok 4.20 against your specific workload before committing to a paid plan.
Grok 4.20 costs $1.25 per 1M input tokens and $2.5 per 1M output tokens. Cached input tokens are available at $0.2 per 1M, a 84% discount.
Grok 4.20 is mid-range at $1.25/1M input tokens. It balances cost and capability for production use.
Grok 4.20 supports a context window of 2M tokens. This determines how much text you can send in a single API call — including system prompts, conversation history, and the actual query.
Yes. xAI offers cached input at $0.2/1M tokens — a 84% discount over the base input price. This helps with repeated system prompts and few-shot examples.
Three strategies: (1) Enable prompt caching if your provider supports it — savings of up to 90% on repeated input. (2) Route simple queries to cheaper models. (3) Reduce output tokens with concise instructions.
A typical request with 500 input tokens and 300 output tokens costs approximately $0.001375. The exact cost depends on your prompt length and desired response length. Use the cost calculator above to estimate for your specific usage pattern.