New API
  • Home
  • Docs
  • Console
  • AgentAgentHotHot
  • Partners
Sign in
Home / Pricing / Models / glm-5.1 vs grok-4.7

glm-5.1 vs grok-4.7: API Pricing & Capabilities

Unit prices, a monthly cost example and capabilities of glm-5.1 and grok-4.7, side by side, from the build-time price snapshot. Both models work with the same OpenLux API key and base URL — switch by changing the model parameter.

glm-5.1: GLM-5.1 is a model designed for long-horizon tasks. It can work autonomously and continuously for up to 8 hours within a single task — independently planning, executing, and self-improving to deliver complete, engineering-grade outcomes.

grok-4.7: Grok 4.7 is a cutting-edge model developed by SpaceXAI for coding, agent tasks, and knowledge work.

Price overview

For each model, the lowest-priced group available to visitors; input, output and monthly cost all use that group.

Itemglm-5.1grok-4.7
ProviderChatGLMGrok (xAI)
GroupSelf-Deployed-1Cli-Grok-1
Input (USD / 1M tokens)$0.42$0.1471
Output (USD / 1M tokens)$1.32$0.4412
Cache read (USD / 1M tokens)$0.078$0.0368
Monthly cost example$68.40$23.53

Monthly cost example: 100M input tokens + 20M output tokens per month, using the input and output prices of the same group, excluding cache.

glm-5.1, grok-4.7 have long-context tiers; the example uses first-tier prices.

Prices by group

USD per 1M tokens. Price = base price × group ratio.

glm-5.1 by group

GroupInputOutputCache readMonthly example
Self-Deployed-1$0.42$1.32$0.078$68.40
Self-Deployed-2$0.70$2.20$0.13$114.00
Alibaba-2$1.05$3.30$0.195$171.00
Self-Deployed-3$1.05$3.30$0.195$171.00
Alibaba-3$1.54$4.84$0.286$250.80
glm-1$1.54$4.84$0.286$250.80

grok-4.7 by group

GroupInputOutputCache readMonthly example
Cli-Grok-1$0.1471$0.4412$0.0368$23.53
Cli-Grok-2$0.2059$0.6177$0.0515$32.94
Xai-Grok-1$0.8824$2.647$0.2206$141.18

Same-group comparison

The two models share no group, so each monthly example uses its own groups (see the tables above).

Snapshot taken at build time on 2026-11-26. Actual charges follow the live price table on each model page and your console.

Capabilities

Itemglm-5.1grok-4.7
ProviderChatGLMGrok (xAI)
Context——
FeaturesConversation · ThinkingConversation · Tool · Image Recognition · Thinking
API formatsOpenAI Chat CompletionsAnthropic Messages · OpenAI Chat Completions
Long-context tiersYesYes

Which one to choose

  • Lower cost: grok-4.7 is cheaper — about $23.53 vs $68.40 for glm-5.1 in the monthly example above.
  • Need the Anthropic Messages format (/v1/messages, e.g. tools like Claude Code): choose grok-4.7.
  • Need Tool, Image Recognition: grok-4.7 supports it.
  • Not sure? Send a small share of real traffic to each and compare quality and cost — switching only changes the model parameter.

Quick start

Base URL: https://api.openlux.ai/v1. The example uses glm-5.1; change model to grok-4.7 to call the other model.

curl · /v1/chat/completions
curl https://api.openlux.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.1",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Full parameters in the API docs

FAQ

Which is cheaper, glm-5.1 or grok-4.7?

At build time, the lowest public prices were: glm-5.1 (Self-Deployed-1 group) input $0.42, output $1.32 per 1M tokens; grok-4.7 (Cli-Grok-1 group) input $0.1471, output $0.4412 per 1M tokens. For 100M input + 20M output tokens a month, glm-5.1 costs about $68.40 and grok-4.7 about $23.53.

Can I use one API key for both glm-5.1 and grok-4.7?

Yes. Sign up for OpenLux, create an API key in the console, set the base URL to https://api.openlux.ai/v1 and set model to glm-5.1 or grok-4.7. Usage of both models is billed from the same balance.

Which API formats do glm-5.1 and grok-4.7 support?

glm-5.1: OpenAI Chat Completions. grok-4.7: Anthropic Messages, OpenAI Chat Completions.

Is there a Batch API?

Not at the moment. OpenLux has no Batch API; all requests are real-time calls billed as such. For bulk jobs, send concurrent requests to the regular endpoints.

More

  • glm-5.1 pricing & access
  • grok-4.7 pricing & access

More glm-5.1 comparisons

  • glm-5.1 vs gemini-4-carbon
  • glm-5.1 vs gpt-5.5-pro
  • glm-5.1 vs gemini-3.1-pro-preview
  • glm-5.1 vs grok-4.3
  • glm-5.1 vs gpt-6.2-astra
  • glm-5.1 vs kimi-k3.1-pro
  • glm-5.1 vs claude-opus-5-5
  • glm-5.1 vs mimo-v2.6-pro

More grok-4.7 comparisons

  • grok-4.7 vs gemini-4-carbon
  • grok-4.7 vs gpt-5.5-pro
  • grok-4.7 vs gemini-3.1-pro-preview
  • grok-4.7 vs grok-4.3
  • grok-4.7 vs gpt-6.2-astra
  • grok-4.7 vs kimi-k3.1-pro
  • grok-4.7 vs claude-opus-5-5
  • grok-4.7 vs mimo-v2.6-pro
  • Model directory
  • All model pricing
  • Sign up and get an API key

Other languages: 中文 · 日本語 · 한국어

New API

Models

  • Text
  • Image
  • Media
  • Retrieval

Company

  • About
  • Partners
  • PersonalHot

Legal

  • Terms
  • Privacy
  • Usage
  • Disclaimer
  • Refunds
  • DPA
  • Compliance
  • Imprint

Docs

  • API
  • AI News
  • From OpenRouter
  • Announcements

More

  • Agent

One API for mainstream AI models

OpenLux©2026COGNIS AI PTE. LTD. All rights reserved

New API

One API for mainstream AI models

Models

  • Text
  • Image
  • Media
  • Retrieval

Company

  • About
  • Partners
  • PersonalHot

Docs

  • API
  • AI News
  • From OpenRouter
  • Announcements

More

  • Agent

OpenLux©2026COGNIS AI PTE. LTD. All rights reserved

Privacy | Terms | Usage | Disclaimer | Refunds | DPA | Compliance | Imprint |