Grok 4.7 vs GLM-5.3 Prime

Grok 4.7 is the cheaper model at $2.00 per 1M input tokens and $6.00 per 1M output tokens, against $2.20 and $7.70 for GLM-5.3 Prime. That is about 16% less on a workload with 3 input tokens per output token. GLM-5.3 Prime has the larger context window: 1,048,576 tokens against 524,288. GLM-5.3 Prime is the newer release (September 23, 2026, against September 21, 2026 for Grok 4.7).

Grok 4.7 vs GLM-5.3 Prime: pricing, context window and capabilities

SpecGrok 4.7GLM-5.3 Prime
Input price (per 1M tokens)$2.00$2.20
Output price (per 1M tokens)$6.00$7.70
Cached input price (per 1M tokens)$0.50$0.55
Context window524,288 tokens1,048,576 tokens
Max output—131,072 tokens
ReleasedSeptember 21, 2026September 23, 2026
Image inputYesNo
Tool callingYesYes
ReasoningYesYes
Strict JSON schema outputYesNo
Native web searchNoNo
ProvidersxAI, AWS Bedrock, Vertex AI (OpenAI-compatible)Alibaba Cloud

Prices are list prices from the cheapest provider LLM Gateway routes to for each model. Some providers charge more above a prompt-size threshold; the model pages list every tier.

What Grok 4.7 and GLM-5.3 Prime cost at volume

Monthly usageGrok 4.7GLM-5.3 Prime
1M input + 250K output tokens$3.50$4.13
10M input + 2.5M output tokens$35.00$41.26
100M input + 25M output tokens$350.00$412.55

When to choose each model

Choose Grok 4.7 for

  • Lower cost: about 16% cheaper on a typical workload
  • Supports image input
  • Supports strict JSON schema output
Grok 4.7 pricing and providers

Choose GLM-5.3 Prime for

  • Larger context window: 1,048,576 tokens
  • Newer release: September 23, 2026
GLM-5.3 Prime pricing and providers

Both models run on the same OpenAI-compatible endpoint, so you can send the same prompt to each and compare the output. Open this pair in the comparison tool to pin a provider or region.

Grok 4.7 vs GLM-5.3 Prime: frequently asked questions

Which is cheaper, Grok 4.7 or GLM-5.3 Prime?

Grok 4.7 is the cheaper model at $2.00 per 1M input tokens and $6.00 per 1M output tokens, against $2.20 and $7.70 for GLM-5.3 Prime. That is about 16% less on a workload with 3 input tokens per output token.

Which has the larger context window, Grok 4.7 or GLM-5.3 Prime?

GLM-5.3 Prime has the larger context window: 1,048,576 tokens against 524,288.

Which is newer, Grok 4.7 or GLM-5.3 Prime?

GLM-5.3 Prime is the newer release (September 23, 2026, against September 21, 2026 for Grok 4.7).

Can I switch between Grok 4.7 and GLM-5.3 Prime without changing my code?

Yes. Both models are available through LLM Gateway's OpenAI-compatible API at https://api.llmgateway.io/v1. Change the model field from "grok-4-7" to "glm-5.3-prime" and keep the same API key, SDK, and request format.