VynarisEarly beta
Get my API key

Grok Code Fast 1 Pricing: Now $1/$2 per 1M as Grok Build

Grok Code Fast 1 costs $1.00 input, $0.20 cached and $2.00 output per 1M tokens: the alias now points to grok-build-0.1, up from $0.20/$1.50.

TL;DR: Grok Code Fast 1 pricing on the xAI API is now $1.00 per 1M input tokens, $0.20 per 1M cached input tokens and $2.00 per 1M output tokens, because grok-code-fast-1 is an alias of grok-build-0.1. At launch it cost $0.20 / $0.02 / $1.50, and several price trackers still show that. Vynaris shows the real cost of every request, so you can see what a coding agent actually spends per task. Prices verified 2026-11-18.

Try it: point your OpenAI client at https://api.vynaris.com/v1, set model to auto, and read the cost receipt on every response. Get a Vynaris API key.

Grok Code Fast 1 costs $1.00 input and $2.00 output per 1M tokens on the xAI API, according to the official xAI model page, read 2026-11-18. That page is now titled Grok Build 0.1: grok-code-fast-1, grok-code-fast and grok-code-fast-1-0825 are listed as aliases of grok-build-0.1. The August 2025 launch post priced it at $0.20 input, $0.02 cached input and $1.50 output. So a call with the old name now bills 5x the launch rate on input, 10x on cached input and 1.33x on output. The context window is 256,000 tokens and the Batch API is not supported.

What does Grok Code Fast 1 cost per 1M tokens?

ItemPrice now (grok-build-0.1)Launch price (Aug 2025)
Input$1.00$0.20
Cached input$0.20$0.02
Output$2.00$1.50
Requests over 200K contexthigher rate (not printed on the page)not listed
Batch APInot supportednot listed

Sources: xAI model page read 2026-11-18, and the xAI launch post. The price-tracker page at pricepertoken.com still listed $0.200 / $1.500 with a "Last updated November 16, 2026" stamp when we checked, so double-check any table you copy.

The exact per-token values the API bills today:

grok-code-fast-1 (= grok-build-0.1)  input         $0.000001    per token  ($1.00 / 1,000,000)
grok-code-fast-1 (= grok-build-0.1)  cached input  $0.0000002   per token  ($0.20 / 1,000,000)
grok-code-fast-1 (= grok-build-0.1)  output        $0.000002    per token  ($2.00 / 1,000,000)
Grok Code Fast 1 price per 1M tokens now versus at launch
Now = grok-build-0.1 alias, read 2026-11-18 from docs.x.ai.

How Vynaris fits a Grok Code Fast 1 decision

Vynaris is an OpenAI-compatible gateway at https://api.vynaris.com/v1 that routes each request and returns what it cost. For a coding-agent workload that means:

What it does not do: Grok Code Fast 1 is not on the Vynaris model list today (Grok 4 is). If you want to pin grok-code-fast-1 itself, call xAI directly. Vynaris is useful when you are deciding whether a cheaper model can do the same coding work.

How much does cached input save on Grok Code Fast 1?

Cached input costs $0.20 per 1M tokens, 80% less than fresh input at $1.00. Coding agents resend the same system prompt, tool definitions and file context on every turn, so most of their input can be cached. xAI's launch post says it was "regularly achieving cache hit rates above 90%" with its launch partners.

For 1M input tokens at a 90% hit rate:

fresh input   0.1M x $1.00 = $0.10
cached input  0.9M x $0.20 = $0.18
total                       = $0.28   (vs $1.00 uncached, 72% less)

At launch prices the same 1M tokens cost $0.038 (0.1 x $0.20 + 0.9 x $0.02), so caching now matters even more than it did. Keep the prompt prefix byte-identical between turns; our prompt caching examples show how.

How does its cost per coding task compare with other cheap coding models?

Per-token prices only mean something against a workload. Our assumed coding-agent task: 400,000 input tokens across all turns (90% of them cache hits) and 8,000 output tokens. Every prompt stays under 100,000 tokens, so no long-context rates apply. Edit the numbers to match your own agent.

ModelInput / cached / output per 1MCost per taskPer 1,000 tasks
grok-code-fast-1 (now)$1.00 / $0.20 / $2.00$0.128$128.00
grok-code-fast-1 (launch price)$0.20 / $0.02 / $1.50$0.0272$27.20
claude-haiku-4-5$1.00 / $0.10 / $5.00$0.116$116.00
claude-haiku-5-5$0.10 / $0.01 / $0.50$0.0116$11.60
gpt-6-luna$0.10 / $0.01 / $0.50$0.0116$11.60
deepseek-flash (peak)$0.30 / $0.006 / $1.20$0.0238$23.76
deepseek-flash (off-peak)$0.15 / $0.003 / $0.60$0.0119$11.88

Derivation for grok-code-fast-1 now: 0.04M fresh x $1.00 = $0.04, plus 0.36M cached x $0.20 = $0.072, plus 0.008M output x $2.00 = $0.016, total $0.128. For Claude Haiku 5.5: 0.04 x $0.10 + 0.36 x $0.01 + 0.008 x $0.50 = $0.0116. Prices from Anthropic pricing and DeepSeek pricing read 2026-11-18, and OpenAI pricing read 2026-11-16. Anthropic and OpenAI also charge for cache writes (Haiku 5.5: $0.125 per 1M for a 5-minute write), which this table leaves out; it slightly raises their numbers.

On this workload Grok Code Fast 1 now costs about 11x Claude Haiku 5.5 or GPT-6 Luna and 5.4x DeepSeek Flash at peak. It is in the same band as Claude Haiku 4.5. Price says nothing about quality, so test whether the cheaper models finish your tasks before you switch. Put your own token counts into the LLM cost calculator, and see measured agent costs in our coding agent cost-per-task leaderboard.

Cost of one coding-agent task on five models
Cache writes excluded; prices read 2026-11-16 to 2026-11-18.

How do you check what a Grok Code Fast 1 call cost?

The cost of one call is the usage block multiplied by the price table. The xAI API is OpenAI-compatible, so the OpenAI SDK works with xAI's base URL:

from openai import OpenAI

PRICE = {"input": 1.00, "cached": 0.20, "output": 2.00}  # grok-build-0.1, USD per 1M, read 2026-11-18

client = OpenAI(base_url="https://api.x.ai/v1", api_key="XAI_API_KEY")
resp = client.chat.completions.create(
    model="grok-code-fast-1",
    messages=[{"role": "user", "content": "Write a Python function that dedupes a list and keeps order."}],
)
u = resp.usage
cached = getattr(u.prompt_tokens_details, "cached_tokens", 0) or 0
fresh = u.prompt_tokens - cached
cost = (fresh * PRICE["input"] + cached * PRICE["cached"] + u.completion_tokens * PRICE["output"]) / 1_000_000
print(resp.model, f"{u.prompt_tokens} in ({cached} cached), {u.completion_tokens} out = ${cost:.6f}")

Print resp.model too: it shows which model actually served the alias. If your cost dashboard still uses the $0.20 / $1.50 row, this script will not match your invoice.

What are the Grok Code Fast 1 rate limits and limits?

LimitValue
Context window256,000 tokens
Higher-price thresholdrequests over 200K context
Requests per second37
Tokens per minute10,000,000
Regionsus-east-1, us-west-2
Batch APInot supported

Source: xAI model page, read 2026-11-18. The model supports function calling, structured outputs and reasoning, and takes text and image input. There is no Batch discount, so unlike OpenAI or Anthropic models, you cannot halve the price by running jobs asynchronously.

Where can I use Grok Code Fast 1?

You can call it on the xAI API with the names grok-code-fast-1, grok-code-fast or grok-code-fast-1-0825, all served by grok-build-0.1. xAI's docs also list Google Cloud Vertex AI and Microsoft Foundry as platforms; prices there are set by those clouds, so check their own pricing pages. At launch it was free for a limited time in GitHub Copilot, Cursor, Cline, Roo Code, Kilo Code, opencode and Windsurf (xAI launch post). For the rest of the xAI lineup, see our Grok 4 Fast pricing guide.

How a grok-code-fast-1 request is billed today
From the xAI model page, read 2026-11-18.

When is Grok Code Fast 1 worth the price?

Use it when you already run it inside an IDE agent, your evals pass on it, and speed matters more than the per-task bill. xAI built it for agentic coding with tools like grep, terminal and file editing. Don't keep it by default: at $0.128 per task on our workload, Claude Haiku 5.5 and GPT-6 Luna are about 11x cheaper and DeepSeek Flash is 5.4x cheaper at peak. Rerun the same tasks on one of them and compare pass rate and cost before you decide.

FAQ

How much does Grok Code Fast 1 cost per 1M tokens?

$1.00 per 1M input tokens, $0.20 per 1M cached input tokens and $2.00 per 1M output tokens on the xAI API, because grok-code-fast-1 is now an alias of grok-build-0.1. Requests over 200K context cost more.

Why do some sites say Grok Code Fast 1 costs $0.20 / $1.50?

That was the launch price from August 2025. The xAI model page now lists the model as Grok Build 0.1 at $1.00 / $2.00, and some price trackers have not updated.

How much does cached input save on Grok Code Fast 1?

Cached input is $0.20 per 1M tokens against $1.00 fresh, 80% less. At a 90% cache hit rate, 1M input tokens cost $0.28 instead of $1.00.

Does Grok Code Fast 1 support the Batch API?

No. The xAI model page lists the Batch API as not supported, so there is no 50% batch discount.

What is the Grok Code Fast 1 context window?

256,000 tokens. Requests over 200K tokens of context are billed at a higher rate.

Is Grok Code Fast 1 cheaper than Claude Haiku?

No. On our coding task it costs $0.128, against $0.116 on Claude Haiku 4.5 and $0.0116 on Claude Haiku 5.5 ($0.10 / $0.50 per 1M). Compare more options on our cheapest LLM API page.

See what your coding agent really costs

An alias change moved this model's input price 5x without a new model name. Send your agent's traffic through one endpoint, read the cost on every response, and compare it with cheaper models on your own tasks. Get your Vynaris API key.