← All Models
Grok Build 0.1
xAI's coding-focused model for agentic software engineering. Text and image input, 256K context, reasoning, function calling, and structured outputs. Uses provider-default reasoning; configurable effort and native search tools are not advertised for this integration. All token rates double at 200K or more prompt tokens. Billing uses actual provider-reported cost.
Specifications
| Provider | xAI |
| Category | Text |
| Context window | 256K tokens |
Pricing (Starter tier)
130.00 credits / 1M input tokens
26.00 credits / 1M cached input tokens
260.00 credits / 1M output tokens
At 200K or more prompt tokens: 2x all token rates
Higher tiers get volume discounts. See tiers
Quick Start
curl -N https://query.genx.sh/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"grok-build-0.1","messages":[{"role":"user","content":"Review this TypeScript function for bugs: function median(a: number[]) { a.sort(); return a[a.length / 2]; }"}],"stream":true}'
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
prompt |
string | required | — | The input text prompt |
system_prompt |
string | optional | — | System instructions |
image_url |
string | optional | — | Image URL to analyze, such as a screenshot |
max_tokens |
number | optional | — | Maximum output tokens, including reasoning |
Availability
Grok Build 0.1 is available in the GenX Pro App and via the GenX Router API.