Z.AI · glm-5.4

GLM-5.4

1M tokens
Text, Image, Video, PDF → Text
Starting price
421,400 Toman
Billing
Pay as you go
Service status
Active

About GLM-5.4

Z.AI's GLM flagship for coding and agentic work, with text, image, video and PDF input and a 1M-token context window.

GLM-5.4 by Z.AI is a language model, with a 1M-token context window, priced on CupAI at $1.4 per 1M input tokens and $4.4 per 1M output tokens. Call it through CupAI's OpenAI-compatible API with the model ID glm-5.4 and pay in toman.

GLM-5.4 is available through CupAI with the standard API format. Set the base URL and your key, and put the model ID in the request.

GLM-5.4 pricing

Per one million tokens
Input421,400 Toman
Output1,324,400 Toman
Cache (read)78,260 Toman
Cache (write)421,400 Tomansame as input

On /v1/messages, cache is billed at Anthropic’s multiples (0.1× read, 1.25× write).

Technical details

Model IDglm-5.4
ProviderZ.AI
TypeText
Context window1M tokens
Max output131,072 tokens
InputsText, Image, Video, PDF
OutputsText
Billing basisInput and output tokens
Release year2026
StatusActive
Share modelcupai.ir/models/glm-5.4

Sample code and API for GLM-5.4

Change the base URL to CupAI and add your API key. The rest of the request stays the same in compatible clients. Full API documentation

curl 'https://api.cupai.ir/v1/chat/completions' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer $CUPAI_API_KEY' \
  -d '{
    "model": "glm-5.4",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }'

Replace CUPAI_API_KEY with your own key. Base URL: https://api.cupai.ir/v1

Endpoints

POST
/v1/chat/completions
POST
/v1/responses
POST
/v1/messages

Capabilities

Capabilities supported by this model’s API.

Streaming
System prompt
Vision
text-to-text
image-to-text
video-to-text
pdf-to-text

Common questions about GLM-5.4

Similar and other models

Z.AI
GLM-5.3-Flash
Z.AI
GLM-5.3
Z.AI
GLM-4.5-Air
Z.AI
GLM-5.2
Z.AI
GLM-5
Z.AI
GLM-5.1
Z.AI
GLM-4.6
Z.AI
GLM-4.7