xAI: Grok Build 0.1

grok-build-0.1

Grok Build 0.1 输入 $1.30/百万 token,输出 $2.60/百万 token,上下文 256K,通过兼容 OpenAI 的接口调用。

Grok Build 0.1 is SpaceXAI's fast coding model trained specifically for agentic software engineering workflows. It supports text and image inputs with text output, and is optimized for interactive coding agents, tool use, and multi-step development tasks. Currently in early access. Content policy rejections can still be charged: SpaceXAI may pass through a $0.05 moderation-failure fee, or a $0.055 usage-guidelines violation fee, depending on which rejection upstream returns.

模态

文本 + 图片 → 文本

输入 / 输出价

$1.30 / $2.60 每 1M

上下文

256K

能力

思考识图工具调用长上下文

价格

按实际 token 计费,从余额中扣除。人民币按 1 美元 ≈ 7.2 元折算,仅供参考。

计费项美元 / 1M token人民币参考
输入$1.30¥9.36
输出$2.60¥18.72
缓存命中(输入)$0.260¥1.87

试算

拖动滑块估算这个模型的花费。

单次
$0.00598
每天
$2.99
每月(30 天)
$89.70≈ ¥646

Grok Build 0.1:输入 $1.3/M · 输出 $2.6/M · 缓存命中 $0.26/M

按这个配置调用
curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "grok-build-0.1", "max_tokens": 800,
       "messages": [{"role": "user", "content": "…"}]}'

接入代码

兼容 OpenAI 接口。把 Base URL 换成 https://api.geniusrelaygpt.com/v1,模型名填 grok-build-0.1。

curl https://api.geniusrelaygpt.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-build-0.1",
    "stream": true,
    "messages": [{"role": "user", "content": "你好"}]
  }'

在客户端里用:Cursor · Cline · 酒馆 · Codex

支持的参数

常用 OpenAI 参数都可以直接传。

temperaturetop_pmax_tokensstreamstoppresence_penaltyfrequency_penaltyseed

常见问题

Grok Build 0.1 怎么计费?
输入 $1.30、输出 $2.60 每百万 token,命中缓存的输入按 $0.260 计。每次请求的扣费都能在控制台使用日志里查到。
上下文有多长?
256K token。长对话每一轮都会按全部输入 token 计费,注意控制历史长度。
支持流式输出吗?
支持。请求里加 "stream": true,返回 SSE,格式与 OpenAI 一致。