grok-4
NixAPI price, from
USD per 1M tokens · via group Azure-Grok-1 · Official list price $3 / $15Save 88%
About grok-4
Grok 4 features deep reasoning capabilities, trained on xAI's Colossus supercomputer, delivering stronger logical reasoning and text generation. xAI claims it is the world's most powerful AI model, reaching PhD-level performance on academic tasks. It excels in real-time speed, reasoning, and advanced vision.
Price by routing group
Pick a group in the console when you create a key. Status is live from the router. Live status by group →
| Group | Group status | Model status | Multiplier | Input | Output | Cache read | Cache write |
|---|---|---|---|---|---|---|---|
Azure-Grok-1 | … | ×0.1243 | $0.3728 | $1.864 | — | — | |
Cli-Grok-1 | … | ×0.1243 | $0.3728 | $1.864 | — | — | |
Cli-Grok-2 | … | ×0.174 | $0.522 | $2.61 | — | — | |
Azure-Grok-2 | … | ×0.1864 | $0.5592 | $2.796 | — | — |
USD per 1M tokens
Supported endpoints
Call grok-4 in one request
Works with the OpenAI SDK and any OpenAI-compatible client. Replace the key with your own.
curl https://api.nixapi.com/v1/chat/completions \
-H "Authorization: Bearer $NIXAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.nixapi.com/v1", api_key="sk-…")
resp = client.chat.completions.create(
model="grok-4",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({ baseURL: 'https://api.nixapi.com/v1', apiKey: process.env.NIXAPI_KEY });
const resp = await client.chat.completions.create({
model: "grok-4",
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(resp.choices[0].message.content);Questions about grok-4
How much does grok-4 cost on NixAPI?
From $0.3728 per 1M input tokens and $1.864 per 1M output tokens in the Azure-Grok-1 group, about 88% below the official list price. Prices are pay-as-you-go in USD with no monthly minimum.
How do I call grok-4?
Point any OpenAI-compatible client at https://api.nixapi.com/v1, use your NixAPI key and set the model to "grok-4".
Which routing groups serve grok-4?
grok-4 is available in 4 routing groups: Azure-Grok-1, Cli-Grok-1, Cli-Grok-2, Azure-Grok-2. The lowest price is in Azure-Grok-1.