Z.ai: GLM-4-32B-0414-128K

zai/glm-4-32b-0414-128k

Z.ai GLM-4-32B-0414-128K API pricing

GLM-4-32B-0414-128K costs $0.040 per million input tokens and $0.040 per million output tokens on Oxyy. These are the pay-as-you-go prices after the current 60% discount (Launch Promo; standard price $0.100 input and $0.100 output). It accepts text and returns text, with a 128K-token context window. A cheaper Z.ai option is GLM-OCR at $0.012 / $0.012 per 1M tokens; for every model and rate, see GLM API pricing.

32-billion-parameter GLM-4 model with a 128K context window, flat-priced on input and output.
ModalitiesTextText
Price$0.040 / $0.040 per 1M tokens in / outAll GLM API pricing
Context128K

Providers

Where this model runs, and what each route costs. Requests are sent to a healthy provider automatically; if one errors, the gateway retries against another serving the same model.

ProviderInput /MOutput /MCache read /M
Z.ai$0.040$0.040—

Capabilities (2)

StreamingTool calling

Supported parameters (1)

tools

A parameter not listed here may be removed before the request reaches the model. When it is, the request still succeeds and the response names it, with the reason, in provider_specific_fields.dropped_params.

Pricing

What this model costs on Oxyy, pay as you go. "Charged" is the rate a request is billed at; the standard price is shown beside it for reference.

Input price
$0.040
per 1M input tokens · standard price $0.100
Output price
$0.040
per 1M output tokens · standard price $0.100
RateStandard priceChargedUnit
Input$0.100$0.040per 1M input tokens
Output$0.100$0.040per 1M output tokens

Discount. Charged rates include the current "Launch Promo" discount of 60% on every rate.

UTC

Specifications

Model ID
glm-4-32b-0414-128k
Developer
Z.ai
Type
Text
Input
Text
Output
Text
Context window
128,000 tokens
Series
GLM-4
Endpoint
/v1/chat/completions

Best for

Low costOpen weightsLong context

Quickstart

Call glm-4-32b-0414-128k with a POST to /v1/chat/completions on https://api.oxyy.ai, using your Oxyy API key from the OXYY_API_KEY environment variable. The same key works for every model in the catalog.

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.oxyy.ai/v1",
    api_key=os.environ["OXYY_API_KEY"],
)

response = client.chat.completions.create(
    model="glm-4-32b-0414-128k",
    messages=[
        {"role": "user", "content": "Explain unified AI APIs in one sentence."},
    ],
)
print(response.choices[0].message.content)

Availability

The share of requests to this model that completed successfully over the last 30 days. Requests the caller cancelled, and requests still in flight, are not counted. When an upstream provider errors, the gateway retries against another provider serving the same model, so a single provider incident does not necessarily show up here.

Success rate (30 days)
0.00%
over 122 completed requests
Days with traffic
6
of the last 30 days

Days are UTC days. Days with no completed requests are omitted rather than drawn at 100% — no traffic is not evidence of availability.

Activity

Token volume and request traffic to this model over time. Daily totals, UTC.

Prompt20.8K
Completion0

Prompt tokens measure input size. Completion tokens reflect total output length. Reasoning is not priced separately for this model, so it is not itemised here.

Frequently asked questions

What is GLM-4-32B-0414-128K?
32-billion-parameter GLM-4 model with a 128K context window, flat-priced on input and output.
How much does GLM-4-32B-0414-128K cost?
GLM-4-32B-0414-128K costs $0.040 per million input tokens and $0.040 per million output tokens on Oxyy. These are the pay-as-you-go prices after the current 60% discount (Launch Promo; standard price $0.100 input and $0.100 output). You pay per request, with no subscription.
What is the context length of GLM-4-32B-0414-128K?
GLM-4-32B-0414-128K has a context window of 128,000 tokens.
Does GLM-4-32B-0414-128K support tool calling and structured outputs?
GLM-4-32B-0414-128K supports tool calling. Structured outputs are not listed among its capabilities.
What inputs and outputs does GLM-4-32B-0414-128K support?
GLM-4-32B-0414-128K accepts text as input and returns text.
Which API endpoint does GLM-4-32B-0414-128K use?
Send a POST request to https://api.oxyy.ai/v1/chat/completions with "model": "glm-4-32b-0414-128k", authenticated with your Oxyy API key. It is also served on /v1/responses (Responses API).
What other models does Z.ai have?
Z.ai also offers GLM-4.5, GLM-4.5-Air, GLM-4.5-AirX and GLM-4.5-Flash through Oxyy.

Alternatives to GLM-4-32B-0414-128K

Models of the same kind from other vendors, closest in price first. Prices are pay-as-you-go on Oxyy, through the same API key.

Explore more models

More models from Z.ai