grok-4.6 — price, context and performance

grok-4.6 is a xAI model with a 500K context window supporting Reasoning, Tools, Files, Vision. Input $2.00, output $6.00 per 1M tokens.

Overview

VendorxAI
Context500K
CapabilitiesReasoning, Tools, Files, Vision
API formatsanthropic, openai
Billing formulap * 2 + cr * 0.5 + c * 6) : tier("200k_plus", p * 4 + cr * 1 + c * 12
xAI's frontier model for long-running agents, coding, knowledge work, and visual projects

Pricing

PlanMultiplierInputOutputCached inputNote
Base price1×$2.00$6.00$0.50
Test0.1×$0.20$0.60$0.05Limited — degraded reasoning, unstable. Test only.
Eco0.3×$0.60$1.80$0.15Standard — standard reasoning, moderate stability.
default0.6×$1.20$3.60$0.30Standard — standard reasoning, moderate stability.
Plus1×$2.00$6.00$0.50High — strong reasoning, stable.
Pro2×$4.00$12.00$1.00Enterprise — full reasoning, high stability.

Only groups enabled for this model are listed.

Performance

TPS66.27
Avg latency57133 ms
Success rate100%
API endpointhttps://api.airai.cc/v1
OpenAI-compatibleOpenAI-compatible

FAQ

How much does grok-4.6 cost?
Input $2.00, output $6.00 per 1M tokens.
What is the context window of grok-4.6?
grok-4.6 has a 500K context window: the combined token limit for input and output in a single request.
How do I call grok-4.6 from code?
Point base_url to https://api.airai.cc/v1 and set model to grok-4.6. The API is fully OpenAI compatible.
Why does grok-4.6 return error 429?
429 is a rate limit response. Lower your concurrency, retry with backoff, or switch to a plan with a larger quota.

Model comparison

ModelVendorInputOutputContext
grok-4.6xAI$2.00$6.00500K
grok-4.3xAI$1.25$2.501M
grok-4-20-non-reasoningxAI$1.25$2.50not specified
grok-imagine-imagexAIPer request $0.02—8K
grok-build-0.1xAI$1.00$2.00256K
grok-4.7xAI$2.00$6.00500K
grok-4-20-reasoningxAI$1.25$2.50not specified
grok-4.5xAI$2.00$6.00500K
grok-4xAI$3.00$15.00not specified
grok-imagine-videoxAIPer request $0.01—1K
grok-imagine-video-1.5-previewxAIPer request $0.01—not specified
grok-imagine-image-qualityxAIPer request $0.0075—16K
grok-imagine-image-2.0xAIPer request $0.0075—64K

Troubleshooting

429 is a rate limit response. Lower your concurrency, retry with backoff, or switch to a plan with a larger quota.

Common causes

  • Too many concurrent requests
  • Quota of the current plan exhausted
  • Retrying immediately without backoff

How to fix

  • Limit concurrency and retry with exponential backoff
  • Switch to a plan with a larger quota
  • Cache repeated requests

How to connect

curl https://api.airai.cc/v1/chat/completions \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4.6",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
from openai import OpenAI

client = OpenAI(
    api_key="<YOUR_API_KEY>",
    base_url="https://api.airai.cc/v1"
)

response = client.chat.completions.create(
    model="grok-4.6",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: "<YOUR_API_KEY>",
  baseURL: "https://api.airai.cc/v1"
});

const response = await client.chat.completions.create({
  model: "grok-4.6",
  messages: [{ role: "user", content: "Hello" }]
});
console.log(response.choices[0].message.content);
const OpenAI = require("openai");

const client = new OpenAI({
  apiKey: "<YOUR_API_KEY>",
  baseURL: "https://api.airai.cc/v1"
});

client.chat.completions.create({
  model: "grok-4.6",
  messages: [{ role: "user", content: "Hello" }]
}).then((r) => console.log(r.choices[0].message.content));

Replace <YOUR_API_KEY> with the API Key from your token settings.

Compatible endpoints

openaiopenai-responseopenai-response-compactanthropicgeminiopenai-alpha-search

Gemini SDK · TypeScript

import { GoogleGenerativeAI } from "@google/generative-ai";

const genAI = new GoogleGenerativeAI("<YOUR_API_KEY>");
const model = genAI.getGenerativeModel({ model: "grok-4.6" });

const result = await model.generateContent(
  "Explain quantum entanglement in one paragraph."
);
console.log(result.response.text());

Authentication

All requests must include the Authorization: Bearer <TOKEN> header. Anthropic-format endpoints also accept the x-api-key header. Generate your API Key on the Tokens page, where you can scope access by model, group, IP, and rate limits.

Supported parameters

ParameterTypeDefaultRangeDescription
temperaturefloat10–2Sampling temperature; lower is more stable
top_pfloat10–1Nucleus sampling cumulative probability
max_tokensinteger——Maximum tokens in the response
frequency_penaltyfloat0−2–2Penalizes repeated high-frequency tokens
presence_penaltyfloat0−2–2Encourages introducing new topics
stopstring[]null≤ 4Up to 4 strings that stop generation
seedintegernull—Seed for more reproducible sampling
ninteger1—Number of candidate completions
streambooleanfalse—Stream tokens via SSE
response_formatobject——Force JSON output or schema-conformant results
toolsarray——Function/tool declarations the model can call
tool_choicestring | objectauto—Tool selection strategy or specific tool name
logprobsbooleanfalse—Return log probabilities for each token
top_logprobsintegernull0–20Number of top probabilities returned per token
logit_biasmap——Logit bias mapping per token
userstring——End-user identifier for risk auditing

Rate limits

TierRPMTPMRPD
Eco990398K20K
Test980393K20K

Data updated: 2026-11-25 19:20

Technical SupportLive Support
Back to Top