XAI
grok-4.7
xAI's Grok 4.7, the current frontier Grok model for coding, agentic and knowledge work. Accepts text and images with a 500,000-token context window and offers low, medium, high and xhigh reasoning effort.
Usage billing
Official price vs Nbility
Per 1M tokens, read live from the gateway. Nbility shows its lowest public group.
xAI list price
≤200KInput$2.00Output$6.00
>200KInput$4.00Output$12.00
Nbility · grok group
≤200KInput0.80Output2.40
>200KInput1.60Output4.80
Group prices
Every available group is listed with its effective input and output price.
| Group | Ratio | Input | Output | Cache read price |
|---|---|---|---|---|
| Base price | x1 | ≤200K2.00/1M>200K4.00/1M | ≤200K6.00/1M>200K12.00/1M | ≤200K0.50/1M>200K1.00/1M |
| grok | x0.4 | ≤200K0.80/1M>200K1.60/1M | ≤200K2.40/1M>200K4.80/1M | ≤200K0.20/1M>200K0.40/1M |
Quick start
Replace YOUR_API_KEY with a key from your account.
curl https://api.nbility.ai/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"grok-4.7","messages":[{"role":"user","content":"Hello"}]}'Compatible endpoints
openai
POST /v1/chat/completionsopenai-response
POST /v1/responses