GLM-5.4 vs GPT-6.2 Astra pricing

Prices

GLM-5.4 and GPT-6.2 Astra prices, USD per 1M tokens
USD per 1M tokensGLM-5.4GPT-6.2 Astra
Input$1.40$8.00
Output$4.40$40.00
Cache read$0.26$0.40
Cache writeFree$10.00
Batch inputNot publishedNot published
Batch outputNot publishedNot published

GLM-5.4: Z.AI's list price for its own API, as compiled by models.dev and checked Dec 4, 2026, 18:49 UTC. Prices on cloud platforms and resellers can differ. Provider documentation

GPT-6.2 Astra: OpenAI's list price for its own API, as compiled by models.dev and checked Dec 4, 2026, 18:49 UTC. Prices on cloud platforms and resellers can differ. Provider documentation

Monthly cost by workload

WorkloadGLM-5.4GPT-6.2 Astra
Chatbot1,000 in / 500 out tokens, 10,000 requests a day$1,080/mo$8,400/mo
RAG8,000 in / 500 out tokens, 5,000 requests a day$2,010/mo$12,600/mo
Coding agent50,000 in / 2,000 out tokens, 1,000 requests a day, 80% cached input$996.00/mo$5,280/mo

Cost = input tokens × input price + output tokens × output price, 30 days a month. Cached input uses the cache read price. Cache write fees are not included.

Context and capabilities

GLM-5.4GPT-6.2 Astra
Context1,000,000 tokens1,050,000 tokens
Max output131,072 tokens128,000 tokens
Inputtext, image, video, pdftext, image, pdf
Tool callingYesYes
ReasoningYesYes
Structured outputsYesYes

Questions

What is the price difference between GLM-5.4 and GPT-6.2 Astra?
GLM-5.4: $1.40 per 1M input tokens and $4.40 per 1M output tokens. GPT-6.2 Astra: $8.00 per 1M input tokens and $40.00 per 1M output tokens. Base prices apply to prompts up to 272,000 input tokens; longer prompts use separate prices. For the Chatbot workload (1,000 in / 500 out tokens, 10,000 requests a day), that is about $1,080 per month for GLM-5.4 and $8,400 for GPT-6.2 Astra.
Which has the longer context window, GLM-5.4 or GPT-6.2 Astra?
GPT-6.2 Astra has the longer context window: up to 1,050,000 tokens, compared with 1,000,000 for GLM-5.4.
Do GLM-5.4 and GPT-6.2 Astra have prompt caching and batch prices?
GLM-5.4: cached input $0.26 per 1M tokens; no batch price published. GPT-6.2 Astra: cached input $0.40 per 1M tokens; no batch price published. Base prices apply to prompts up to 272,000 input tokens; longer prompts use separate prices.

More comparisons