xAI logoxAIText

Grok 4.7

Grok's frontier model for coding, sustained agent tasks and professional knowledge work.

Pricing

Public Core prices are current quotes, not a locked rate.

Model details
SpecificationsPriceBenchmark priceReference price · not a OneAster quoteDiscount
Input· Context≤ 200,000tokens
200 credits / 1M tokens200 credits / 1M tokens—
Output· Context≤ 200,000tokens
600 credits / 1M tokens600 credits / 1M tokens—
Input· Context> 200,000tokens
400 credits / 1M tokens200 credits / 1M tokens—
Output· Context> 200,000tokens
1,200 credits / 1M tokens600 credits / 1M tokens—
Context window
500,000 tokens

Playground

Restoring conversation…

About this model

Capabilities & specifications

Input
Text · Image
Output
Text
Context window
500,000 tokens

Grok 4.7 focuses on longer coding tasks, self-verification and knowledge work. The current model page documents text and image input, function calling, structured output and a 500,000-token context window.

  • Long context
  • Agent workflows
Text chatReasoningCoding

Build with Grok 4.7

Manage API keys
  • Bash, cURL and jq
  • Set ONEASTER_API_KEY to your OneAster API key.
bash
response=$(curl 'https://api.oneaster.ai/v1/chat/completions' \
  --fail-with-body --silent --show-error --max-time 60 \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer ${ONEASTER_API_KEY:?Set ONEASTER_API_KEY}" \
  --data-binary @- <<< '{
  "model": "grok-4.7",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "max_tokens": 1024,
  "stream": false
}') && jq -r '.choices[0].message.content' <<< "$response"

Questions and answers

Where do Grok 4.7 specifications come from?

The references below identify the sources for this model’s capabilities. Confirm current access, request limits and pricing with your service provider before integration.

Where do Grok 4.7 specifications come from?

Things to consider

Review generated results before use. Available modes and request limits depend on the service you choose; check the linked documentation before integration.

Model information sources

  • Grok 4.7 reference