Grok Code Fast 1
opencode The API that serves this model and sets the prices shown here. grok-code The model identifier to send in API requests. LLM Generates text from a prompt, so it can be compared with other LLMs on price and capability. Small The fast, low-latency tier of a model family, suited to high-volume or simple tasks. Retired Aug 12, 2026 This model has been retired and can no longer be relied on.Provider: xai · served via OpenCode
Listed as deprecated on OpenCode Zen's models.dev registry as of 2026-08-12.
Sticker prices & cost-per-token
List rates as published by OpenCode, before any volume or enterprise discounts.
$0.00
$0.00
256,000 tokens
256,000
tokens per response (includes reasoning tokens)
Closed weights
Get this data free
Want to stay updated on price changes on this model? Pull this data free (no API key required) here:
curl "https://coolhandlabs.com/api/v2/inference_apis?q%5Bmodel_eq%5D=grok-code&q%5Bsource_api_eq%5D=opencode"
Pricing History
| Effective | Price |
|---|---|
| Aug 12, 2026 – present | Input cost: $0.00 / 1M, Output cost: $0.00 / 1M, Cached input cost: $0.00 / 1M, Cache creation cost: $0.00 / 1M, 5-minute cache write cost: $0.00 / 1M, 1-hour cache write cost: $0.00 / 1M, Reasoning output cost: $0.00 / 1M, Cache storage cost: $0.00 / 1M/hr |
History
No automated scan changes recorded yet.
| Date | Changed by | What changed |
|---|---|---|
| Aug 12, 2026 | Unknown | Initial record created |
Source
https://opencode.ai/docs/zen/ (via https://models.dev/api.json)Comparable models
No comparable models identified yet.
Reliability
No reliability incidents recorded in the last 90 days.
Frequently asked questions
Grok Code Fast 1 (xai via OpenCode) costs $0.00 per 1M input tokens and $0.00 per 1M output tokens, as last published by OpenCode.
Grok Code Fast 1 has a context window of 256,000 tokens (the maximum combined input and output it can handle in a single request).
Grok Code Fast 1 sits in the small size tier. Size tiers run from micro (small enough to run on a device) through small, medium and large to extra large (frontier flagships), and are assigned from the model's family, naming and limits rather than its price.
Grok Code Fast 1 can generate up to 256,000 tokens in a single response. Reasoning (thinking) tokens count toward this limit.
Grok Code Fast 1 accepts text as input and produces text as output, as recorded in the Coolhand catalog.
No — the weights of Grok Code Fast 1 have not been released, so it is only available through hosted APIs.
Yes — xai deprecated Grok Code Fast 1 on August 12, 2026. Listed as deprecated on OpenCode Zen's models.dev registry as of 2026-08-12.
xai retired Grok Code Fast 1 on August 12, 2026.
Since Grok Code Fast 1 is deprecated, xai customers are moving to Grok 4.3, Grok 4.6, and Grok Build 0.1.
Call GET https://coolhandlabs.com/api/v2/inference_apis?q[source_api_eq]=opencode&q[model_eq]=grok-code — free, no API key required, and scoped to just this model since source_api and model together are unique. See https://coolhandlabs.com/docs for the full REST API reference.
Coolhand also tracks Grok 4.20 (Non-Reasoning), Grok 4.20 (Reasoning), Grok 4.20 Multi-Agent, Grok 4.3, Grok 4.5, and Grok Build 0.1 from xai. Some may already be deprecated, so check each model's status alongside its current pricing.
| Model | Input cost | Output cost | Context window | Max output tokens | Status |
|---|---|---|---|---|---|
| Grok 4.20 (Non-Reasoning) | $1.25/1M $0.0000012500 | $2.50/1M $0.0000025000 | 1,000,000 | 30,000 |
Deprecated May 15, 2026
|
| Grok 4.20 (Reasoning) | $1.25/1M $0.0000012500 | $2.50/1M $0.0000025000 | 1,000,000 | 30,000 |
Deprecated May 15, 2026
|
| Grok 4.20 Multi-Agent | $1.25/1M $0.0000012500 | $2.50/1M $0.0000025000 | 1,000,000 | 30,000 |
Deprecated May 15, 2026
|
| Grok 4.3 | $1.25/1M $0.0000012500 | $2.50/1M $0.0000025000 | 1,000,000 | 30,000 |
Deprecated May 15, 2026
|
| Grok 4.5 | $2.00/1M $0.0000020000 | $6.00/1M $0.0000060000 | 500,000 | 500,000 |
Deprecated May 15, 2026
|
| Grok Build 0.1 | $1.00/1M $0.0000010000 | $2.00/1M $0.0000020000 | 256,000 | 256,000 |
Deprecated May 15, 2026
|
Track LLM pricing and deprecations automatically.
Start free