SunsetDiff

Replacement for grok-code-fast-1: what changes when you switch

The official replacement is grok-build-0.1. grok-code-fast-1 shut down on 2026-05-15 per xAI's deprecation page (checked 2026-11-12). Price, context window, and max output were left blank because the official pages we checked did not publish them.

grok-code-fast-1 model page · xAI

Official replacement. Full diff page

grok-code-fast-1 to grok-build-0.1

Some values not published Checked 2026-11-12.

Price per 1M tokens

Price comparison. Example monthly cost for 10M input tokens and 2M output tokens. Labeled example, not a bill.
FieldOldNewChange
Input Not published $1 Not published
Output Not published $2 Not published
Cached input Not published $0.2 Not published
Example monthly cost Not published $14 Example only

Context and max output

Token limits
LimitOldNewChange
Context window Not published 256,000 Not published
Max output Not published Not published Not published

Capabilities that differ

No differing capability values are published for both models.

Endpoint changes

  • The generate-text page shows the Responses API as POST https://api.x.ai/v1/responses and an OpenAI client base_url of https://api.x.ai/v1. This sample only changes the model field. Source

Code

python before
from openai import OpenAI
client = OpenAI(base_url="https://api.x.ai/v1")
response = client.responses.create(
    model="grok-code-fast-1",
    input="Hello",
)
python after
from openai import OpenAI
client = OpenAI(base_url="https://api.x.ai/v1")
response = client.responses.create(
    model="grok-build-0.1",
    input="Hello",
)
typescript before
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.x.ai/v1" });
const response = await client.responses.create({
  model: "grok-code-fast-1",
  input: "Hello",
});
typescript after
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.x.ai/v1" });
const response = await client.responses.create({
  model: "grok-build-0.1",
  input: "Hello",
});
curl before
curl https://api.x.ai/v1/responses \
  -H "Content-Type: application/json" \
  -d '{"model":"grok-code-fast-1","input":"Hello"}'
curl after
curl https://api.x.ai/v1/responses \
  -H "Content-Type: application/json" \
  -d '{"model":"grok-build-0.1","input":"Hello"}'

Checklist

  1. Read the shutdown date for grok-code-fast-1 on the linked official page.
  2. Point your requests at grok-build-0.1.
  3. Re-check price, context, and parameters on the provider pages linked here.
  4. Ship the change before the published shutdown date.

Related models

Questions

What is the replacement for grok-code-fast-1?

The official replacement is grok-build-0.1. grok-code-fast-1 shut down on 2026-05-15 per xAI's deprecation page (checked 2026-11-12). Price, context window, and max output were left blank because the official pages we checked did not publish them.

Is grok-build-0.1 cheaper than grok-code-fast-1?

A full price comparison is not published. One or both prices are missing from the official pages we checked.

Does grok-build-0.1 have a bigger context window than grok-code-fast-1?

Context window sizes are not both published on the official pages we checked.

Sources

Deprecation alerts

We email you before models shut down. Unsubscribe anytime.

Deprecation alert signup
Providers (optional)