Grok 4.6
Access Grok 4.6 through one API key. xAI Grok 4.6 Frontier Coding & STEM.
Grok 4.6 is a model from xAI with frontier performance on coding, knowledge work and STEM, with a 500,000-token context window and up to 450,000 output tokens. Grok 4.6 remains a capable choice for STEM-heavy reasoning and coding where you have validated results against it; new projects should start on Grok 4.7.
No credit card required. Takes 30 seconds.
2,400+
Developers
1.2M+
API calls served
100+
Endpoints
$0.01
Per call
Yep, that's it.
Try it live
Send a message and see Grok 4.6 respond in real time.
Maximum tokens in the response.
Real-time tokens
Context Window
500K tokens
Max Output
450K tokens
Input Price
$2.95 / 1M tokens
Output Price
$8.86 / 1M tokens
Strengths
Strong on coding, quantitative reasoning and knowledge work.
Handles up to 500,000 input tokens and returns up to 450,000 output tokens per call.
Function calling, image and file input, and JSON schema outputs.
Grok 4.7 improves on it at a lower price.
Quick start
Copy this snippet and start making calls with Grok 4.6.
const res = await fetch('https://api.yepapi.com/v1/ai/chat', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "x-ai/grok-4.6",
"messages": [
{
"role": "user",
"content": "Explain API gateways in 2 sentences."
}
],
"maxTokens": 256
}),
});
const { data } = await res.json();
console.log(data.message.content);Why use Grok 4.6 through YepAPI?
Grok 4.6 API — pricing, context window & access
Grok 4.6 is a model from xAI with frontier performance on coding, knowledge work and STEM, with a 500,000-token context window and up to 450,000 output tokens. It pairs a 500,000-token context window with up to 450,000 output tokens per response, at $2.95 per 1M input and $8.86 per 1M output tokens through YepAPI.
Through YepAPI you call Grok 4.6 on an OpenAI-compatible endpoint with a single key — the same key that reaches GPT-6, Claude, Gemini, Grok and the SEO, SERP and scraping APIs. Input: text, images, files.
What is Grok 4.6?
Grok 4.6 is a model from xAI with frontier performance on coding, knowledge work and STEM, with a 500,000-token context window and up to 450,000 output tokens. It is succeeded by Grok 4.7, which is stronger and cheaper. It accepts text, images, files as input, handles up to 500,000 tokens of context and returns up to 450,000 output tokens per call.
Build with Grok 4.6 via YepAPI
YepAPI serves Grok 4.6 on the OpenAI-compatible /v1/ai/chat endpoint. Point your base URL at YepAPI, add your key, and set the model string to grok-4.6 (or the full x-ai/grok-4.6). Function calling, structured outputs and reasoning settings pass straight through, and switching to any other model on the platform is a one-string change per request.
Grok 4.6 API pricing — $2.95 / 1M input, $8.86 / 1M output
Grok 4.6 costs $2.95 per 1M input tokens and $8.86 per 1M output tokens through YepAPI, pay per token with no minimums. Failed calls are never charged, and every request is itemised in your dashboard API Logs so you can see exactly what a very long response cost.
Grok 4.6 use cases
Grok 4.6 remains a capable choice for STEM-heavy reasoning and coding where you have validated results against it; new projects should start on Grok 4.7.
Try Grok 4.6 free
Every new YepAPI account includes $5 in free credit with no card required — enough to test Grok 4.6 on your own prompts before committing to paid usage. Create an account, copy your key, and call grok-4.6 right away.
Start generating in 30 seconds
$5 free credit on signup. No credit card required. Pay per call.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
Grok 4.6 is a model from xAI with frontier performance on coding, knowledge work and STEM, with a 500,000-token context window and up to 450,000 output tokens. Grok 4.6 remains a capable choice for STEM-heavy reasoning and coding where you have validated results against it; new projects should start on Grok 4.7.
Input tokens cost $2.95 per 1M tokens and output tokens cost $8.86 per 1M tokens through YepAPI. No monthly minimums — you only pay for what you use.
Sign up for a free API key, then send requests to the /v1/ai/chat endpoint.
Grok 4.6 supports a 500K token context window with up to 450K output tokens per request.
Ready to use Grok 4.6?
$5 free credit on signup. No credit card required. Pay per call.
Explore more models
Grok 4.3
xAIAccess Grok 4.3 through one API key. xAI's latest model with 1M context.
Grok 4.20
xAIAccess Grok 4.20 through one API key. xAI's flagship model with the largest context window.
Grok 4.20 Multi-Agent
xAIAccess Grok 4.20 Multi-Agent through one API key. Multi-agent orchestration with 2M context.