Gemini 4 Carbon vs Grok 4.7
API price, context window, capabilities and live speed, side by side.
Grok 4.7 is about 1.3× cheaper than Gemini 4 Carbon at a typical 3:1 input-to-output token mix. Gemini 4 Carbon has the larger context window (1.0M vs 500K tokens). 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.
Gemini 4 Carbon | Grok 4.7 | |
|---|---|---|
| Lab | xAI | |
| Model id | gemini-4-carbon | grok-4.7 |
| Input / 1M tokens | $2 | $2 |
| Cached input / 1M | $0.1 | $0.5 |
| Output / 1M tokens | $10 | $6 |
| Context window | 1.0M | 500K |
| Input | audio, file, image, text, video | text, image, file |
| Output | text | text |
| 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 out | Gemini 4 Carbon $7.00 | Grok 4.7 $5.40 |
|---|---|---|
| RAG over documents20K in, 800 out | Gemini 4 Carbon $48.00 | Grok 4.7 $44.80 |
| Coding agent step40K in (80% cached), 1.5K out | Gemini 4 Carbon $34.20 | Grok 4.7 $41.00 |
Use both, with automatic fallback
Same key, same endpoint: change the model id between "gemini-4-carbon" and "grok-4.7".
curl https://api.ultragpt.pro/v1/chat/completions \
-H "Authorization: Bearer $ULTRAGPT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-4-carbon",
"models": ["grok-4.7"],
"messages": [{ "role": "user", "content": "Hello!" }]
}'FAQ
Which is cheaper, Gemini 4 Carbon or Grok 4.7?
Gemini 4 Carbon: $2 in / $10 out per 1M. Grok 4.7: $2 in / $6 out per 1M. Prices are in USD and billed per use from your UltraGPT balance.
Can I use Gemini 4 Carbon and Grok 4.7 with the same API key?
Yes. Both are available through the OpenAI-compatible UltraGPT API at https://api.ultragpt.pro/v1: set model to "gemini-4-carbon" or "grok-4.7".
Which has a bigger context window, Gemini 4 Carbon or Grok 4.7?
Gemini 4 Carbon: 1,048,576 tokens. Grok 4.7: 500,000 tokens.

