SpaceXAI: Grok 4.6

x-ai/grok-4.6 — available through the Autonomous Relay Agents API, served by xAI.

SpaceXAI: Grok 4.6 has a 500,000-token context window and costs $2.00 per million input tokens and $6.00 per million output tokens, at the provider's list price on your own key.

Context length
500,000 tokens
Input
$2.00 per M
Output
$6.00 per M
Served by
xai
Input modalities
text, image, file

This is a BYOK-only model: requests use your own provider key. Prices shown are the provider's list prices.

Call it

Any OpenAI-compatible client works: change the base URL and send this model id.

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

Compare