API · Models
Text
Grok Build 0.1
Grok Build 0.1 is xAI's fast coding and tool-calling model with a 256K context window, optimized for developer productivity and agentic tasks.
Context 256K·Max out 256K
Quickstart
import { streamText } from 'ai';
import { createOpenAICompatible } from '@ai-sdk/openai-compatible';
const blackbox = createOpenAICompatible({
name: 'blackbox',
apiKey: process.env.BLACKBOX_API_KEY!,
baseURL: 'https://api.blackbox.ai/v1',
});
const result = streamText({
model: blackbox('blackboxai/x-ai/grok-build-0.1'),
prompt: 'Why is the sky blue?',
});
for await (const chunk of result.textStream) {
process.stdout.write(chunk);
}Specs & pricing
- Input $/M
- $1
- Output $/M
- $2
- Context window
- 256K
- Max output
- 256K
- Supported parameters
- tool-usejson-modestreamingweb-search
Related models
| Model | Type | Context | Input $/M |
|---|---|---|---|
| Grok 4.3 | Text | 1M | $1.25 |
| Grok 4.1 Fast | Text | 2M | $0.20 |
| Blackbox Pro | Text | 400K | $1.75 |
| Claude Opus 4.7 | Text | 1M | $5 |
| Claude Opus 4.6 | Text | 1M | $5 |