Back to modelsBuy Plan
SpaceXAI
Grok 4.7
Quick Stats
Context
—
Max Output
500K
Provider
SpaceXAI
Specs
1
Modalities
in textin imageout text
Specs & Platform Price (per 1M tokens)
Quality
Input $2Output $6Cache read $0.5Cache write 5m $0
Recommended Plan
Grok 4.7 Starter Plan
Pay-as-you-go after top-up; $1 free credit for new users.
API Endpoint
Model ID
x-ai/grok-4.7cURL
curl https://intertoken.ai/v1/chat/completions \
-H "Authorization: Bearer $TOKENPORTAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "x-ai/grok-4.7",
"messages": [{"role": "user", "content": "Hello!"}]
}'Python (openai SDK)
from openai import OpenAI
client = OpenAI(
base_url="https://intertoken.ai/v1",
api_key="$TOKENPORTAL_API_KEY",
)
resp = client.chat.completions.create(
model="x-ai/grok-4.7",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)Start using this model
Sign up free, get an API key, and make your first call in 30 seconds.