Chuyển đến nội dung chính
Logo xAI

Grok Build 0.1 API

xAI

Grok Build 0.1 thuộc dòng mô hình GrokXem tất cả mô hình Grok

Mô hình lập trình của xAI xây dựng cho tác vụ phần mềm dạng tác nhân, với cửa sổ ngữ cảnh 256k, thời gian tới token đầu tiên 0.53 giây và hỗ trợ MCP.

xai/grok-build-0.1

Tài liệu

Cuộc trò chuyện

Bắt đầu cuộc trò chuyện

Mô hình lập trình của xAI xây dựng cho tác vụ phần mềm dạng tác nhân, với cửa sổ ngữ cảnh 256k, thời gian tới token đầu tiên 0.53 giây và hỗ trợ MCP.

Enter để gửi · Shift+Enter để xuống dòng

UnificAlly không lưu trữ prompt và câu trả lời LLM của bạn. Chúng tôi chỉ lưu thông tin số token sử dụng để tính phí.

Sử dụng POST /v1/chat/completions với khóa API UnificAlly của bạn. Hỗ trợ system prompt, user prompt, tools, streaming và chế độ suy nghĩ khi khả dụng.

Cập nhật

What is the Grok Build 0.1 API?

The Grok Build 0.1 API is live on UnificAlly as xai/grok-build-0.1, from $0.15/1M tokens of input. Grok Build 0.1 is xAI's coding model, the one behind the Grok Build terminal agent, released to the API in early access on May 19, 2026 and as a public beta on May 29. It is trained specifically for agentic coding: web development, debugging, and working through tools, including MCP servers. It accepts text and image input, outputs text, and runs on UnificAlly as xai/grok-build-0.1 with a 256k-token context window. It is the successor of grok-code-fast-1; xAI now resolves that ID to this model.

Grok Build 0.1 API specs

Model IDxai/grok-build-0.1
EndpointPOST https://direct-api.unifically.com/v1/chat/completions
Request typesChat Completions, Responses (/v1/responses), Messages (/v1/messages)
InputText and images
OutputText, returned in the same response or streamed
Context window256k tokens
Tool useTools in the OpenAI tools and tool_choice format
Input rate$0.15/1M tokens
Output rate$0.30/1M tokens
Cache read rate$0.03/1M tokens

Billing is per token, with no subscription. The pricing page shows the live rate table, including the rates for prompts over 200k tokens.

How to use the Grok Build 0.1 API

  1. Create an API key on the API keys page.
  2. Send a POST request to /v1/chat/completions with the model ID and a messages array.
  3. Read the reply from choices[0].message.content in the response.
curl -X POST https://direct-api.unifically.com/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer YOUR_API_KEY"   -d '{
    "model": "xai/grok-build-0.1",
    "messages": [
      {"role": "user", "content": "Generate a clean, minimalist personal website as a single HTML file."}
    ]
  }'

The response comes back synchronously with the completion:

{
  "id": "3f8e2a1c-7b4d-4e9a-9c2f-5d1e8b7a6c40",
  "object": "chat.completion",
  "created": 1710000000,
  "model": "xai/grok-build-0.1",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "<!DOCTYPE html>..."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 28,
    "completion_tokens": 64,
    "total_tokens": 92,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    }
  }
}

The usage object holds the token counts the request is billed on. Set "stream": true to receive tokens as they generate, and pass tools to let it call your functions. Send requests to direct-api.unifically.com so long replies finish in full.

Grok Build 0.1 API parameters

ParameterTypeDefaultWhat it does
modelstringrequiredModel identifier. Use xai/grok-build-0.1.
messagesarrayrequiredNon-empty array of message objects with role and content (string or content parts array). Allowed roles: system, developer, user, assistant, tool, and function.
streambooleanfalseIf true, the response is streamed using server-sent events.
stream_optionsobjectnoneSet { "include_usage": true } to get a final chunk with token usage. Only used when stream is true.
temperaturenumbernoneSampling temperature between 0 and 2. Higher values produce more random output.
top_pnumbernoneNucleus sampling parameter. Alternative to temperature.
max_tokensintegernoneMaximum number of tokens to generate in the completion.
max_completion_tokensintegernoneAccepted as an alias for max_tokens.
stopstring or arraynoneUp to four sequences where the model stops generating further tokens.
toolsarraynoneList of tools the model may call. Each tool requires a type and function definition.
tool_choicestring or objectnoneControls which tool is called: none, auto, required, or a specific tool.
response_formatobjectnoneSet { "type": "json_object" } to enable JSON mode.

Full Grok Build 0.1 API docs live at docs.unifically.com/models/llm/xai/grok-build-0.1.

Key features of Grok Build 0.1

First token in half a second

Artificial Analysis measures 0.53 seconds to first token, against a 2.99-second median for reasoning models in its price class, with an Intelligence Index of 41 (#73 of 195) and $0.23 per index task (#15 of 195). It starts answering while other reasoning models are still thinking.

Built for agent harnesses

The same weights power Grok Build's terminal agent, and xAI positions the API model for harnesses such as Cursor, Kilo Code, OpenCode, OpenClaw, and Hermes Agent. Expect it to behave best inside a tool loop, not as a one-shot chat model.

Function calling, structured outputs, and MCP

Native tool calls and JSON-schema outputs through the standard request, plus training on MCP-style tool use, so it slots into existing agent frameworks without prompt gymnastics.

Cheapest xAI coding model per task

At $0.23 per Intelligence Index task it costs about half of Grok 4.5 on the same evaluation, which is the trade for the lower ceiling.

What Grok Build 0.1 is best for

  • Interactive coding agents

    Half-second first tokens keep editor and terminal loops feeling live.

  • Web development

    A stated training focus: scaffolding pages, components, and fixes from a prompt.

  • Debugging with tools

    Reads stack traces and screenshots, calls tools, and iterates on the fix.

  • MCP-based workflows

    Trained for MCP tool use, so custom servers and integrations work as intended.

  • Cheap autonomous loops

    Low cost per task for long-running background agents and batch refactors.

  • General tool-calling agents

    Speedy, economical option for agentic work outside coding, per xAI.

Grok Build 0.1 use cases

Use Grok Build 0.1 as the fast model inside a coding agent: let it read files, run commands, and apply small fixes, then escalate the hard cases to Grok 4.5 or Grok 4.6. It suits web-app scaffolding from a single prompt, automated debugging runs that chew through logs and screenshots, and MCP-driven workflows where the model has to call custom tools many times. Because first tokens arrive in about half a second, it also works for inline code assistance and command suggestion, where a ten-second pause would break the flow. Keep tasks inside the 256k context or add retrieval for bigger repos.

Grok Build 0.1 limitations

Grok Build 0.1 is a fast model, not a frontier one. Its Intelligence Index of 41 trails Grok 4.5 at 56 and Grok 4.6 at 61, and it is not on the Terminal-Bench 2.1 or SWE-bench Verified boards, so plan for hand-off on hard problems.

Speed is about latency, not throughput: xAI quotes over 100 tokens per second, but Artificial Analysis measures 68.9, just under the 70 median. It is also very verbose, using 130M output tokens across the Intelligence Index against a 71M median, which raises the bill on long tasks.

The 256k context window is the smallest in the current Grok family, and the model is still labeled a beta by xAI.

Grok Build 0.1 vs Grok 4.5

Grok 4.5 is the stronger coder: 56 against 41 on the Intelligence Index, fourth on Terminal-Bench 2.1, and 86.6% on SWE-bench Verified. Grok Build 0.1 answers faster where it counts, 0.53 seconds to first token against about 10 seconds for Grok 4.5 at high effort, and costs about half per task. xAI itself now defaults Grok Build to Grok 4.5, which tells you where the quality ceiling is. Use Grok Build 0.1 for the fast inner loop and Grok 4.5 for the hard steps.

When to use Grok Build 0.1

Use Grok Build 0.1 when an agent needs many quick tool calls, when latency shapes the user experience, or when you run large volumes of routine coding work on a budget. Skip it for difficult multi-file changes, long design tasks, or anything where a single high-quality answer beats ten fast ones; that is Grok 4.5 or Grok 4.6 territory.

Câu hỏi thường gặp

Câu hỏi thường gặp về Grok Build 0.1

xai/grok-build-0.1, called through the OpenAI-compatible POST /v1/chat/completions endpoint with your UnificAlly API key. The same model ID also works on /v1/responses and /v1/messages.

Authentication is a Bearer token: create the key on the API keys page and send it in the Authorization header. The Grok Build 0.1 API uses model xai/grok-build-0.1 on the OpenAI-compatible /v1/chat/completions, so an OpenAI SDK pointed at UnificAlly through base_url works unchanged.

Pass "model": "xai/grok-build-0.1" and a messages array to https://direct-api.unifically.com/v1/chat/completions; the generated code or text comes back synchronously in choices[0].message.content. Add tools to let it call your functions, or "stream": true to receive tokens as they generate.

Text and image input, text output. The context window is 256k tokens, and function calling, structured outputs, streaming, and reasoning all work through the standard chat completions request.

Yes. xAI states that grok-build-0.1 is the model that powers Grok Build, trained for agentic coding tasks such as web development, debugging, and MCP tool use. Since July 2026 Grok Build defaults to Grok 4.5, with Grok Build 0.1 still selectable.

Artificial Analysis measures 0.53 seconds to first token, far under the 2.99-second class median, and 68.9 output tokens per second. xAI quotes over 100 tokens per second on its own serving.

It scores 41 on the Artificial Analysis Intelligence Index, #73 of 195 models and above the class median of 36, at $0.23 per index task, #15 of 195. # price-ok: benchmark cost per task, not our rate

Yes. On xAI's side the grok-code-fast-1 and grok-code-fast IDs now resolve to Grok Build 0.1, so it is the direct successor of the earlier fast coding model.

Grok Build 0.1 for fast, cheap agent loops where first-token latency matters; Grok 4.5 when the task is hard, since it scores 56 against 41 on the Intelligence Index and 79.3% on Terminal-Bench 2.1.