Skip to content
All models
xAI

Grok 4.7

grok-4.7
PremiumText

Grok 4.7 is a text model by xAI. Context: 256,000 tokens. Accepts images.

VisionStreamingLong context
Context window
256K
Maximum output tokens
32,768

Pricing

per 1M tokens

Input / 1M
$0.28
Output / 1M
$0.84
Cache read / 1M
$0.08
Cache write / 1M
$0.28
API documentation

Grok 4.7 API pricing and specs

Grok 4.7 is available through the Claudexia API in the Premium channel. Model ID: grok-4.7.

Price: $0.28 per 1M input tokens and $0.84 per 1M output tokens.

Context window: 256,000 tokens.

Capabilities listed in the catalog: vision, streaming.

How to connect Grok 4.7 via API

Replace sk_cdx_... with your key from the API Keys section. The key must belong to the Premium channel.

OpenAI SDK and compatible clients (Python), base URL with /v1

from openai import OpenAI

client = OpenAI(base_url="https://api.claudexia.tech/v1", api_key="sk_cdx_...")
response = client.chat.completions.create(
    model="grok-4.7",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Grok 4.7 API questions

How much does the Grok 4.7 API cost?
$0.28 per 1M input tokens and $0.84 per 1M output tokens in the Premium channel.
Which base URL do I use for Grok 4.7?
OpenAI-compatible clients: https://api.claudexia.tech/v1. Model ID: grok-4.7.
What is the Grok 4.7 context window?
256,000 tokens, according to the Claudexia catalog.