AI Daily Roundup
🌐 English

Today › AI API prices › xAI

grok-code-fast 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

WorkloadThis modelMedian 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

ModelProviderInputOutputContext
gpt-3.5-turbo-1106OpenAI$1.00$2.0016K
deepseek-ai/DeepSeek-V3Together AI$1.25$1.2566K
codellama-70b-instructPerplexity$0.7$2.8016K
llama-2-70b-chatPerplexity$0.7$2.804K
pplx-70b-chatPerplexity$0.7$2.804K
qwq-plusAlibaba DashScope (Qwen)$0.8$2.4098K

Price history

DateInputOutput
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 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.