Models

Grok 4.7 vs Sonar Reasoning Pro

API price, context window, capabilities and live speed, side by side.

Grok 4.7 is about 1.2× cheaper than Sonar Reasoning Pro at a typical 3:1 input-to-output token mix. Grok 4.7 has the larger context window (500K vs 128K tokens). Only Grok 4.7 supports tool calling; Sonar Reasoning Pro does not. Both run on the same UltraGPT API key, so you can switch between them by changing the model field - or list both in models: [...] for automatic fallback.

Grok 4.7Sonar Reasoning Pro
LabxAIOther
Model idgrok-4.7sonar-reasoning-pro
Input / 1M tokens$2$2
Cached input / 1M$0.5$2
Output / 1M tokens$6$8
Context window500K128K
Inputtext, image, filetext, image
Outputtexttext
Tool calling✓—
Vision (image input)✓✓
Reasoning——

Cost of 1,000 requests

Estimated from the list prices above; your real cost is reported per request in usage.cost.

Chatbot1.5K tokens in, 400 outGrok 4.7 $5.40Sonar Reasoning Pro $6.20
RAG over documents20K in, 800 outGrok 4.7 $44.80Sonar Reasoning Pro $46.40
Coding agent step40K in (80% cached), 1.5K outGrok 4.7 $41.00Sonar Reasoning Pro $92.00

Use both, with automatic fallback

Same key, same endpoint: change the model id between "grok-4.7" and "sonar-reasoning-pro".

curl https://api.ultragpt.pro/v1/chat/completions \
  -H "Authorization: Bearer $ULTRAGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4.7",
    "models": ["sonar-reasoning-pro"],
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

FAQ

Which is cheaper, Grok 4.7 or Sonar Reasoning Pro?

Grok 4.7: $2 in / $6 out per 1M. Sonar Reasoning Pro: $2 in / $8 out per 1M. Prices are in USD and billed per use from your UltraGPT balance.

Can I use Grok 4.7 and Sonar Reasoning Pro with the same API key?

Yes. Both are available through the OpenAI-compatible UltraGPT API at https://api.ultragpt.pro/v1: set model to "grok-4.7" or "sonar-reasoning-pro".

Which has a bigger context window, Grok 4.7 or Sonar Reasoning Pro?

Grok 4.7: 500,000 tokens. Sonar Reasoning Pro: 128,000 tokens.

More comparisons