Today › AI API prices › xAI
grok-code-fast-1-0825 API pricing (xAI)
Input / 1M tokens$1.00
Output / 1M tokens$2.002.0× input
Context window256Kmax output 256K
Rank within xAI1 / 31
Among all modelscheaper than 33%of 725 models
Cost for typical workloads
| Workload | This model | Median of all models |
|---|---|---|
| 10,000 chats (2,000 in / 500 out tokens) | $30.00 | $20.50 |
| 100 long summaries (50,000 in / 1,000 out) | $5.20 | $2.97 |
| 1,000 articles (500 in / 2,000 out) | $4.50 | $2.50 |
Similarly priced models from other providers
| Model | Provider | Input | Output | Context |
|---|---|---|---|---|
| gpt-3.5-turbo-1106 | OpenAI | $1.00 | $2.00 | 16K |
| deepseek-ai/DeepSeek-V3 | Together AI | $1.25 | $1.25 | 66K |
| codellama-70b-instruct | Perplexity | $0.7 | $2.80 | 16K |
| llama-2-70b-chat | Perplexity | $0.7 | $2.80 | 4K |
| pplx-70b-chat | Perplexity | $0.7 | $2.80 | 4K |
| qwq-plus | Alibaba DashScope (Qwen) | $0.8 | $2.40 | 98K |
Price history
| Date | Input | Output |
|---|---|---|
| 2026-10-03 | $1.00 | $2.00 |
Only dates with a change are listed (17 snapshots from 2026-10-03 to 2026-11-10).
Prices come from the open-source LiteLLM price table (MIT), fetched daily, and may differ from the official pricing pages; always check the provider before you buy. US dollars.
About this page
grok-code-fast-1-0825 on xAI costs $1.00 per million input tokens and $2.00 per million output tokens; it ranks 1 of 31 xAI models by price, with a 256K context window.