Back to catalog
xAI

Grok 4

xai/grok-4

Try in Playground

Real-time aware model with web access.

Context window
256Ktokens
Input price
$5.00/ 1M tokens
Output price
$15.00/ 1M tokens
P50 latency
520ms

Quick start

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.luminet.ai/v1",
  apiKey: process.env.LUMINET_API_KEY,
});

const resp = await client.chat.completions.create({
  model: "xai/grok-4",
  messages: [{ role: "user", content: "Hello!" }],
});

Capabilities

textvision

Throughput: 72 tok/s · Released 2025-11