Grok Build 0.1
xai/grok-build-0.1xAI's lower-cost coding model for agentic software engineering and workflow tasks. This API model is separate from the Grok Build agent harness.
This model is available through the API. It is not currently offered as an agent's reasoning model.
Use through the API- Price: $1.00Price: $2.00
- Text, Image
- 256K
- May 19, 2026
Overview
xAI's lower-cost coding model for agentic software engineering and workflow tasks. This API model is separate from the Grok Build agent harness. It is billed from the same balance as every other model and tool here, and the price of each call comes back in the response.
Pricing
Prices in USD per million tokens, using your plan when signed in.
Each request uses the tier matching its full input context, including cached input. Output tokens do not choose the tier. Choose the row for your cache and thinking modes.
| Input context (tokens) | Cache mode | Thinking | Input | Output | Cache read | Cache write |
|---|---|---|---|---|---|---|
| Up to 199,999 | Automatic | Standard | Price: $1.00 | Price: $2.00 | Price: $0.2 | — |
| 200,000–256,000 | Automatic | Standard | Price: $2.00 | Price: $4.00 | Price: $0.4 | — |
Your balance and per-call records come from /v1/credits and /v1/generation.
Use it
Point your client at the gateway and pass this model id. Nothing else changes.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://gateway.agentsky.dev/v1",
apiKey: process.env.AGENTSKY_API_KEY, // ast_…
});
const completion = await client.chat.completions.create({
model: "xai/grok-build-0.1",
messages: [{ role: "user", content: "Summarise this ticket." }],
});
console.log(completion.usage.cost); // USD, in the response