Z.ai GLM · LLM API pricing

GLM-5.2 API pricing: cheapest provider

13 providers sell GLM-5.2. DeepInfra is cheapest; the most expensive charges 2.6× as much for the same model.

  • Cheapest$1.16per 1M · DeepInfra
  • Input · output$0.75 / $2.40per 1M tokens
  • Price gap2.6×across 13 providers
  • Accuracy91.9%GPQA · max reasoning
  • Context1Mmax tokens
$1.16 DeepInfra2.6× spread$3.04 Scaleway
Already paying for GLM-5.2? Check if you overpay →

Standard list prices in USD from each provider's pricing page · last price change Sep 28, 2026 · How we collect and rank prices

Ranked for your volume

GLM-5.2 monthly cost by provider

Change the monthly tokens and the ranking updates instantly, using each provider's standard list price.

More requirements: caching, context, features, provider

Share this page URL to keep your scenario. 13 of 13 providers meet these assumptions.

ProviderEstimated / monthInput / 1MOutput / 1MCached input / 1MContext
1
DeepInfraInference provider - lowest for your volumePricing page
$12.30$0.75$2.40$0.141,048,576
$12.44$0.76$2.42$0.14262,000
3
SiliconFlowInference providerPricing page
$21.20$1.30$4.09$0.261,049,000
4
Alibaba Cloud Model StudioAI platformSingapore (International) list price; other regions differ.Pricing page
$22.80$1.40$4.40$0.281,000,000
5
BasetenInference providerPricing page
$22.80$1.40$4.40$0.141,048,576
$22.80$1.40$4.40$0.26262,144
7
FriendliAIInference providerPricing page
$22.80$1.40$4.40$0.261,048,576
$22.80$1.40$4.40$0.141,048,576
$22.80$1.40$4.40Not listed1,048,576
10
Novita AIInference providerPricing page
$22.80$1.40$4.40$0.261,048,576

Order depends on listed price for your volume only. No provider pays for its position.

Input volume includes the cached share, not an additional token volume. This is a list-price estimate, not a quote: cache-write charges, cache eligibility/TTL, batch discounts, long-context surcharges, regional pricing and taxes are excluded. Check the provider's terms for your workload before switching.

Accuracy: GPQA Diamond (graduate-level science questions) measured by Epoch AI (CC BY 4.0) on glm-5.2_max, run Jun 24, 2026. The model is the same at every provider, though quantized deployments can score lower.

Price history

The cheapest price has not changed since tracking started on Sep 28, 2026: $1.16 per 1M tokens at DeepInfra. All price changes

Switch to the cheapest provider

Switch to DeepInfra

Already using the OpenAI SDK? Change the base URL, key and model name:

from openai import OpenAI
import os

client = OpenAI(
    base_url="https://api.deepinfra.com/v1/openai",
    api_key=os.environ["DEEPINFRA_API_KEY"],
)
response = client.chat.completions.create(
    model="zai-org/GLM-5.2",
    messages=[{"role": "user", "content": "Hello"}],
)
Base URL from DeepInfra's API docs, model name from the open pricing datasets. Check the model page in DeepInfra's docs before you switch production traffic.

Compare GLM-5.2 with another model

Or pick any model

Before you pick a provider

DeepInfra lists GLM-5.2 46% below the developer's own API (Z.ai) on a blended basis. Check rate limits, data retention and model quantization before switching.

Context windows differ by provider, from 256K to 1M tokens. A cheaper host may not accept your longest prompts.

11 of 13 providers list a cached-input price. Repeated system prompts or documents can cost much less there than the standard input rate shown above.