# Grok Build

> xAI's coding-specialized model. Fast, tool-native, built for agentic dev.

Human version: https://kymaapi.com/models/grok-build
Live JSON: `GET https://kymaapi.com/v1/models` (no auth required)

## Facts

- **Model ID**: `grok-build` — pass this as `model` in the request body
- **Creator**: xAI
- **Released**: 2026-05-20
- **Context window**: 256K tokens
- **Max output**: 33K tokens per response — a hard ceiling, not a default
- **Price**: $1.389 in / $2.777 out per 1M, cached input 10%
- **Capabilities**: tools, vision, reasoning, caching

## Call it

```bash
curl https://kymaapi.com/v1/chat/completions \
  -H "Authorization: Bearer $KYMA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "grok-build", "messages": [{"role": "user", "content": "Hello"}]}'
```

## Positioning

Grok Build is a text-only, tool-native model optimized for fast, agentic coding workflows. Developers building automated debugging pipelines or multi-step software agents should use it for rapid tool execution and structured reasoning.

## About

Created by xAI, this model specializes in software development tasks. It handles tool calls natively, supports structured outputs, and includes built-in reasoning capabilities. It operates exclusively with text inputs and outputs, with a 256,000-token context window and a 32,768-token maximum output limit.

On Kyma, requests route through an OpenAI-compatible endpoint using a single API key. The platform provides automatic failover if a serving path degrades, and every response returns the exact token cost in usage.cost alongside the X-Kyma-Model header. Prompt caching is supported, billing repeated prefixes at 10% of the standard input rate. New accounts include a $0.50 credit.

It does not process images, audio, or other non-text modalities. While optimized for speed and tool use, its output length caps at 32,768 tokens, which may require chunking for very long codebase generation or extensive documentation tasks.

## Use cases

- **Agentic Software Development** — Automates multi-step coding tasks by chaining tool calls and reasoning loops.
- **Rapid Debugging Workflows** — Identifies and patches code errors quickly using native tool integration.
- **Structured API Responses** — Generates valid JSON or schema-compliant outputs for downstream system integration.
- **Fast Chat Interactions** — Delivers low-latency conversational responses for developer-focused assistants.

## Not ideal for

Do not use this model for tasks requiring image analysis, audio processing, or outputs longer than 32,768 tokens.

## Pick something else when

- You need to analyze images or process multimodal data → `gemini-3.5-flash`, `qwen-3.7-plus`
- You require output sequences exceeding 32,768 tokens → `deepseek-v3`, `qwen-3.7-max`

## See also

- All models: https://kymaapi.com/models.md
- Pricing: https://kymaapi.com/pricing.md
- Other models by xAI: https://kymaapi.com/models?q=xAI
