NewDeepSeek V4.1 Flash 1017 is now availableTry it now

Grok 4.6

xAI's reasoning model, served through one OpenAI-compatible endpoint with transparent per-token pricing and project-scoped API keys.

xAIReasoning Model
MODEL SPEC
Developed by
xAI
Model family
Grok 4.6
Size
—
Architecture
Transformer
Context window
500K tokens
Max output
500K tokens
License
Provider license
Overview

Grok 4.6 is a reasoning model from xAI, available through the Inference.net serverless API. Use the same OpenAI-compatible request shape across the catalog and switch models by changing a single identifier.

The API supports streaming responses and project-scoped credentials. Usage, token volume, and spend appear in the dashboard automatically, so the model can move from evaluation to production without a second integration path.

QUICKSTARTGet API key
import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://api.inference.net/v1',
  apiKey: process.env.INFERENCE_API_KEY,
})

const completion = await client.chat.completions.create({
  model: 'grok-4.6',
  messages: [{ role: 'user', content: 'Hello' }],
})
PROMPT CACHING
  1. Keep the prompt prefix stable and byte-identical across calls.
  2. Pass a stable x-grok-conv-id request header to maintain routing stickiness.
  3. Check usage.prompt_tokens_details.cached_tokens in the response to confirm cache reads.
# Stable across calls in the same conversation
x-grok-conv-id: my-stable-session
AGENT INTEGRATIONSView all
Ready when you are

Start building with Grok 4.6 today

Serverless, OpenAI-compatible, and billed per token. No commitments.