Skip to content
model.lol
Models & prices Docs Status
Sign inCreate account

Grok 4.7

grok-4.7reasoning dial

Grok 4.7 by xAI is available through model.lol's OpenAI-, Anthropic- and Gemini-compatible API under the model id grok-4.7. It costs $0.34 per million input tokens and $1 per million output tokens ($0.084 per million cached input tokens), charged per token from a prepaid balance. That is 83% below xAI's official API price. Context window: 500,000 tokens. Supports the reasoning dial: append -low, -medium, -high, -thinking, -nothinking to the id.

Input
$0.34per 1M tokens
Output
$1per 1M tokens
Cached input
$0.084per 1M tokens
Vs official price
−83%input price
Context window
500K500,000 tokens
VendorxAI
Prompt-cache writes$0.425 (5 min) / $0.68 (1 hour) per 1M tokens: 1.25× and 2× the input price
Reasoning dialgrok-4.7-low grok-4.7-medium grok-4.7-high grok-4.7-thinking grok-4.7-nothinking
Also accepted asx-ai/grok-4.7 ~x-ai/grok-latest x-ai/grok-latest grok-latest
Added to the catalog2026-11-12
Catalog entry updated2026-11-28

Prices are what a prepaid model.lol balance is charged per token; every answer reports the exact amount in usage.cost. A refused or moderated request also carries a violation fee (see billing). Signed-in accounts in a pricing group see their group rate on /pricing.

Call it

$ curl https://api.model.lol/v1/chat/completions \
  -H "Authorization: Bearer ml-your-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4.7",
    "messages": [{"role": "user", "content": "hi"}]
  }'

OpenAI SDKs: base_url = https://api.model.lol/v1. Anthropic SDKs and POST /v1/messages take the same id, and so does Claude Code:

export ANTHROPIC_BASE_URL=https://api.model.lol
export ANTHROPIC_AUTH_TOKEN=ml-your-key
claude --model grok-4.7

Gemini SDKs, the Responses API, streaming and tool calls: see the docs.