grok-code-fast-1

On this page
  1. Standard price history

xAI model grok-code-fast-1. Prices are in US dollars per million tokens. Current price, since 2025-09-29: input $0.20, output $1.50, cached input $0.02. xAI's pricing page does not list this model under this id. Price a request with this model.

Standard price history#

FromInputCached inputCache writeOutputLonger promptsDated bySource
2025-09-29, first record$0.20$0.02$1.50models.dev commitlink

A blank cache price is charged at the input price. Longer prompts list the prices for requests whose whole prompt exceeds the size given.

import model_prices

model_prices.rates("grok-code-fast-1", provider="xai")