API · Models
Text

Grok 4.5

SpaceXAI's smartest model with frontier performance on coding, knowledge work, and STEM.

ReasoningToolsCacheFilesVisionweb search
Context 500K·Max out 500K

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/xai/grok-4.5'),
  prompt: 'Why is the sky blue?',
});

for await (const chunk of result.textStream) {
  process.stdout.write(chunk);
}

Specs & pricing

Input $/M
2
Output $/M
6
Context window
500K
Max output
500K
Supported parameters
reasoningtool-useimplicit-cachingfile-inputvisionweb-search

Related models

ModelTypeContextInput $/M
Grok 4.3Text1M1.25
Grok 4.1 FastText2M0.2
Grok Build 0.1Text256K1
Grok 4.1 Fast Non-ReasoningText1M0.2
Grok 4.1 Fast ReasoningText1M0.2