Models

GLM 5.3 Prime vs Grok 4.7

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

GLM 5.3 Prime is about 1.2× cheaper than Grok 4.7 at a typical 3:1 input-to-output token mix. GLM 5.3 Prime has the larger context window (1M vs 500K tokens). Only Grok 4.7 supports image input; GLM 5.3 Prime 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.

GLM 5.3 PrimeGrok 4.7
LabZ.ai (GLM)xAI
Model idglm-5.3-primegrok-4.7
Input / 1M tokens$1.68$2
Cached input / 1M$0.336$0.5
Output / 1M tokens$5.28$6
Context window1M500K
Inputtexttext, image, file
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 outGLM 5.3 Prime $4.63Grok 4.7 $5.40
RAG over documents20K in, 800 outGLM 5.3 Prime $37.82Grok 4.7 $44.80
Coding agent step40K in (80% cached), 1.5K outGLM 5.3 Prime $32.11Grok 4.7 $41.00

Use both, with automatic fallback

Same key, same endpoint: change the model id between "glm-5.3-prime" 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": "glm-5.3-prime",
    "models": ["grok-4.7"],
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

FAQ

Which is cheaper, GLM 5.3 Prime or Grok 4.7?

GLM 5.3 Prime: $1.68 in / $5.28 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 GLM 5.3 Prime 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 "glm-5.3-prime" or "grok-4.7".

Which has a bigger context window, GLM 5.3 Prime or Grok 4.7?

GLM 5.3 Prime: 1,000,000 tokens. Grok 4.7: 500,000 tokens.

More comparisons