x-ai

SpaceXAI: Grok 4.6

x-ai/grok-4.6

Grok 4.6 is a model from SpaceXAI with frontier performance on coding, knowledge work, and STEM. It is succeeded by [Grok 4.7](/x-ai/grok-4.7).

Prices updated: 10/7/2026

Input
220
credits / 1M tokens
Output
660
credits / 1M tokens
Context
500k
tokens
Messages per $1 USD
≈ 180
typical message: 1k tokens in + 500 out

Prices in credits per million tokens. 1 credit = $0.01 USD. Final price, billed in MXN at the exchange rate on payment day + VAT (CFDI). Subject to change without notice.

Additional prices

Cache (read): 55 /1M
Web search: 550,000 /1M

Spec sheet

Inputs
text, image, file
Outputs
text
Max output tokens
450,000
Knowledge cutoff
—
Tokenizer
Grok
Capabilities
Text / LLM
Vision / OCR
Tools
JSON
Reasoning

Use it in your code

One OpenAI-compatible endpoint. Switch models by changing one line.

curl https://api.deployalo.com/ai/gateway/v1/chat/completions \
  -H "Authorization: Bearer $DEPLOYALO_AI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"x-ai/grok-4.6","messages":[{"role":"user","content":"Hola"}]}'

Ready to use it?

Top up a credit pack, create your API key with a spend cap and start in minutes.