grok-build-0.1 API
Call grok-build-0.1 through a single OpenAI-compatible endpoint — one key, no separate vendor account, no multi-provider wiring.
xAIChatReasoningCodingVisionPricing
Input$0.50 / 1M tokens (¥3.25)
Output$1.00 / 1M tokens (¥6.50)
Output multiplier×2.00
Context window256K tokens
Max output131K tokens
Prices are per 1M tokens in USD · ¥6.5 = $1 · Billed in CNY
xAI
Grok models offer large context windows and a notably direct answer style, and are served through the same OpenAI-compatible endpoint.
When to use it
At $0.50 per 1M input tokens it sits above the catalogue median of $0.38 — a capability-first choice. Best for coding agents and repository-scale edits. Every model here is reachable with the same API key, so trialling it against a stronger sibling costs one line of code.
Code
from openai import OpenAI
client = OpenAI(
base_url="https://starseaapi.com/v1",
api_key="sk-your-key"
)
r = client.chat.completions.create(
model="grok-build-0.1",
messages=[{"role": "user", "content": "Explain prefix caching in one paragraph"}]
)
print(r.choices[0].message.content)Other models from this provider
| Models | Input $/M | Output $/M | Intelligence index | Coding index |
|---|---|---|---|---|
| grok-4.5 | $1.00 | $3.00 | 38.8 | 72.4 |
| grok-4.6 | $1.00 | $3.00 | 44.3 | 76.8 |
| grok-4.7 | $1.00 | $3.00 | 46.4 | — |
| grok-4.7-build-fast | $2.00 | $6.00 | — | — |