Home / Model Explorer / Grok 4.6
Grok 4.6 API
xAI Latest flagship · 1M context
- Model ID:
grok-4.6 - Example endpoint:
POST https://api.yomiapi.com/v1/chat/completions - View public route prices
Overview
About this model
xAI Latest flagship reasoning model: stronger deep reasoning and tool calling, native 1M long context. Note: when the context exceeds 200k tokens, the entire request (input, output, and cache) is billed at double the rate.
Capabilities
Capability matrix
Pricing and groups
Routes and pricing
Supports grok4.7 (context >200k incurs double billing for long contexts; please manage your context usage reasonably).
Input
$0.32 / 1M
Output
$0.96 / 1M
Cache read
$0.08 / 1M
Cache write
— / 1M
All pricing tiers and conditions
Standard
Input length ≤ 200,000 tokens
Input
$0.32 / 1M
Output
$0.96 / 1M
Cache read
$0.08 / 1M
Cache write
— / 1M
Long context
Input length > 200,000 tokens
Input
$0.64 / 1M
Output
$1.92 / 1M
Cache read
$0.16 / 1M
Cache write
— / 1M
Prices are in USD per million tokens. This page shows a public price snapshot. Before sending a request, check the Model Explorer for current prices. The console shows account-specific routes and charges.
How to compare prices · How to interpret performance metrics
Snapshot: . Availability reflects active probes over the past 24 hours; performance reflects actual calls.
API
Integration example
Use a Yomi API key that can access this model and route. Check the endpoint and request parameters when switching models or protocols.
Set the environment variable YOMI_API_KEY.
Quick start · Pricing and billing · Protocol reference · Chat Completions · Responses API
# pip install openai
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.yomiapi.com/v1",
api_key=os.environ["YOMI_API_KEY"],
)
resp = client.chat.completions.create(
model="grok-4.6",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)curl 'https://api.yomiapi.com/v1/chat/completions' \
-H "Authorization: Bearer $YOMI_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"model": "grok-4.6",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'curl 'https://api.yomiapi.com/v1/responses' \
-H "Authorization: Bearer $YOMI_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"model": "grok-4.6",
"input": "Hello"
}'Connect to Grok 4.6 now
Create an API key in the console and select an available route.
Get an API key
Yomi API