🎉 Get Free $5 on Signup!
Models
Enterprise
Subscribe
Resource
Activity
Documentation
Console

/x.ai/grok-4.6

G

X.ai: grok-4.6

Grok 4.6 is xAI's current frontier model, built for coding, agentic tasks, knowledge work, and general reasoning.

Modetext → text
Input price$2 per M tokens
Output price$6 per M tokens
Context length
Listed at

X.ai

Latency—
Throughput—
Upload rate—
Context length—
Max output—
Input price$2per 1M tokens
Output price$6per 1M tokens
Cache read$0.5per 1M tokens
Cache write—per 1M tokens

Performance

Avg TPS—
Avg latency—
Avg success rate—
TPS—
TTFT—
Latency—
Success rate—

Success rate

Speed

Code Example

Replace <YOUR_API_KEY> with the API key generated on your token management page.

Authentication

All requests must include the Authorization: Bearer <TOKEN> header.

Endpoint Path

POST

Supported Parameters

ParameterTypeDefaultDescription

Rate Limits

GroupRPMTPMRPD

RPM = requests per minute, TPM = tokens per minute, RPD = requests per day. Limits apply by token group.

Pricing

ProviderBilling typePrice summary
G
Grok
Expression
Input price$2per 1M tokens
Completion price$6per 1M tokens
Cache read price$0.5per 1M tokens
Cache write price$—per 1M tokens