grok-4

Grok (xAI) · Chat

ConversationImage Recognition

NixAPI price, from

Input$0.3728
Output$1.864

USD per 1M tokens · via group Azure-Grok-1 · Official list price $3 / $15Save 88%

Get your API key →

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 →

GroupGroup statusModel statusMultiplierInputOutputCache readCache 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

openai

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!"}]
  }'

Full API reference →

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.

More from Grok (xAI)

Compare all Grok (xAI) models →