xAI's most capable model, for coding, agentic tasks and knowledge work, released in September 2026 as the successor to Grok 4.6. It takes text and image input with a 500K-token context window and offers four reasoning effort levels, from low to xhigh.
- Modalities
- text, image → text
- In / out price90% off
List price $2 / $6$0.198958 / $0.596874per 1M tokens- Context
- 500Ktokens
Pricing
Prices in US dollars, charged from your prepaid balance as you go. No subscription.
90% off90% below the list price, on every token price.
- Input
List price $2$0.198958/ 1M tokens- Output
List price $6$0.596874/ 1M tokens- Cache read
List price $0.50$0.04974/ 1M tokens
Specs
Limits and capabilities as published by the model’s provider.
- Context
- 500Ktokens
- Input types
- text, image
- Output types
- text
- Knowledge cutoff
- 2026-05
- Tokens, last 7 days
- 11Mtokens
Call this model
The examples read your key from the CHEAPAIMODEL_API_KEY environment variable.
curl https://api.cheapaimodel.ai/v1/chat/completions \
-H "Authorization: Bearer $CHEAPAIMODEL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.7",
"messages": [{"role": "user", "content": "Hello!"}]
}'Endpoints
Endpoints that accept this model, each with its API reference.
- API reference
POST /v1/chat/completionsChat Completions · OpenAI compatible - API reference
POST /v1/responsesResponses · OpenAI compatible
Compare with other models
Grok 4.7 side by side with each other model in the catalog: price, context and the same code.
From the blog
Posts on our blog that cover Grok 4.7: pricing, setup and troubleshooting.
- Grok API Pricing: Token Costs, Context Limits, and Worked Examples
Compare Grok 4.7 API token prices, calculate cached and uncached costs, and understand long-context and tool charges before choosing an access route.
- OpenRouter Alternatives: Pricing and Trade-offs
Compare cheapaimodel and direct model APIs with OpenRouter. Learn how to check pricing, compatibility, routing, and migration costs before switching.