xAI: Grok Code Fast 1 API Pricing
Live token cost for xAI: Grok Code Fast 1 from xAI. Use the figures below for budgeting, then tune your exact request mix in the interactive calculator. Prices refresh every 24 hours from OpenRouter.
Capabilities
xAI: Grok Code Fast 1 cost at scale
Estimated monthly cost across common production volumes. Assumes 30-day months and the request shapes shown.
| Tier | Requests / day | In / out tokens | $ / month |
|---|---|---|---|
| Hobby | 1,000 | 500 / 200 | $12.00 |
| Startup | 10,000 | 1,500 / 500 | $315.00 |
| Growth | 100,000 | 3,000 / 800 | $5,400.00 |
| Enterprise | 1,000,000 | 8,000 / 2,000 | $138,000.00 |
Compare xAI: Grok Code Fast 1 vs.
Frequently asked questions
How much does xAI: Grok Code Fast 1 cost?
xAI: Grok Code Fast 1 costs $0.20 per 1M input tokens and $1.50 per 1M output tokens, with cached input at $0.02 per 1M tokens. A typical 1,500-token in / 500-token out request costs $0.00105.
Does xAI: Grok Code Fast 1 support cached input?
Yes. xAI: Grok Code Fast 1 supports prompt caching at $0.02 per 1M cached input tokens. Reuse the same system prompt or context across requests to cut input cost dramatically.
What is the xAI: Grok Code Fast 1 context window?
xAI: Grok Code Fast 1 supports a context window of 256,000 tokens (256K). Max output per response is 10,000 tokens.
What is xAI: Grok Code Fast 1 good for?
xAI: Grok Code Fast 1 is a good fit for general-purpose LLM tasks via the xAI API — chat, code, writing, summarization. For other use cases, run your specific input/output mix through the interactive calculator to compare against alternative models.