Skip to content
AZRouter.dev

SpaceXAI · Text model

SpaceXAI: Grok 4.7

x-ai/grok-4.7500K context

Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6.

Modalities
Price vs OpenRouter
$2.20/M inOpenRouter $2.00+10%$6.60/M outOpenRouter $6.00+10%Tiered from 200K
Context
500K
Max output
450K
Released
Sep 2026

Model specifications

Provider
SpaceXAI
Model slug
x-ai/grok-4.7
Input
Text, Image, File
Output
Text
Context length
500,000 tokens
Max output
450,000 tokens
Long context
Tiered from 200Kthe whole request is repriced; see Pricing
Released
Sep 21, 2026
Price reference
OpenRouter public price, checked

Pricing

Every unit this model bills by, OpenRouter's price next to AZRouter's. Long prompts move the whole request to the long-context rates.

  • Input /M tokprompt under 200K tokens

    +10%
    OpenRouter
    $2.00
    AZRouter
    $2.20
  • Input /M tokprompt of 200K tokens or more

    +10%
    OpenRouter
    $4.00
    AZRouter
    $4.40
  • Output /M tokprompt under 200K tokens

    +10%
    OpenRouter
    $6.00
    AZRouter
    $6.60
  • Output /M tokprompt of 200K tokens or more

    +10%
    OpenRouter
    $12.00
    AZRouter
    $13.20
  • Cache read /M tokprompt under 200K tokens

    +10%
    OpenRouter
    $0.50
    AZRouter
    $0.55
  • Cache read /M tokprompt of 200K tokens or more

    +10%
    OpenRouter
    $1.00
    AZRouter
    $1.10

A request whose prompt is 200,000 tokens or more is billed entirely at the long-context rates, output and cache included. The threshold and both rates are the provider's published pricing.

Reference: OpenRouter's public price, checked . You are billed the AZRouter price from prepaid credits.

Each request's total is rounded to the nearest $0.000002 (halves up), so it can differ from the per-unit math by up to $0.000001. How rounding works

API

OpenAI-compatible. Base URL https://api.azrouter.dev/v1, key in $AZROUTER_API_KEY.

curl "https://api.azrouter.dev/v1/chat/completions" \
  -H "Authorization: Bearer $AZROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "x-ai/grok-4.7",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Requests may be used for model training by AZRouter, upstream providers and model owners. Privacy Policy