Grok 4.7

spacexai/grok-4.7

A chat model with a 500K-token context window, at $2.10 per million input tokens and $6.30 per million output tokens.

Details

Maker
spacexai
Kind
Chat
Context window
500,000 tokens
Max output
500,000 tokens
Input
$2.10 per million tokens
Cached input
$0.525 per million tokens, 75% off
Cache write
Same as input
Output
$6.30 per million tokens
Capabilities
Reasoning, tool use, vision
Takes
Text, image
Returns
Text
Zero data retention
Yes, on every provider
No training on requests
Yes, on every provider
Released
2026-09-21

Description

Grok 4.7 is SpaceXAI’s advanced AI model for coding and professional knowledge work, built to tackle complex, multi-hour tasks with improved self-verification and long-context handling. It strengthens software engineering, document creation, and presentation workflows while maintaining Grok 4.6’s speed and pricing.

Call it

curl
curl https://phantom.codes/v1/chat/completions \
  -H "Authorization: Bearer $PHANTOM_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "spacexai/grok-4.7",
    "messages": [
      {"role": "user", "content": "Hello"}
    ]
  }'

Set PHANTOM_KEY to your key. Any OpenAI client works with the base URL https://phantom.codes/v1.