Skip to content
  • Available now
  • Text
  • Tools

GLM 5.2

GLM 5.2 is a language model by Zhipu AI with a context window of 1M tokens. It supports function calling and streaming.

Not on the API yet

curl https://api.useunbound.ai/v1/chat/completions \
  -H "Authorization: Bearer $UNBOUND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "zai-org-glm-5-2",
    "messages": [{
      "role": "user",
      "content": "Explain quantum tunnelling simply."
    }]
  }'

Model IDzai-org-glm-5-2

API reference

Developer
Zhipu AI
Context
1M tokens
Input / 1M tokens
$1.33
Output / 1M tokens
$4.18

Overview

What is GLM 5.2?

GLM 5.2 is a language model by Zhipu AI with a context window of 1M tokens. It supports function calling and streaming.

How it runs here

Anonymized. Sent to the provider without your identity. The provider may retain the request under its own policy.

What it allows

This model keeps the safeguards its developer built in, and may decline some requests. Unbound’s acceptable-use rules apply to every model.

  • In the app
  • API not open yet
  • Anonymized

API quickstart

How a call looks.

The API speaks the OpenAI format. Change the address and the model id, and the code you already have keeps working.

GLM 5.2 is not open on the API yet. It works in the app today. The endpoint below is live; a call with this id is refused until its API access opens. Models on the API

Words arrive as they are written, as server-sent events.

curl https://api.useunbound.ai/v1/chat/completions \
  -H "Authorization: Bearer $UNBOUND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "zai-org-glm-5-2",
    "stream": true,
    "messages": [
      { "role": "user", "content": "Explain quantum tunnelling simply." }
    ]
  }'

API reference API quickstart

Technical specifications

In detail.

On Unbound

In the app
Available
On the API
Not available yet
Context window
1,048,576 tokens
Longest answer
4,096 tokens
Reads
Text
Writes
Text
Capabilities
Function calling, Streaming
Privacy
Anonymized. Sent to the provider without your identity. The provider may retain the request under its own policy.
Content policy
This model keeps the safeguards its developer built in, and may decline some requests.
Model id
zai-org-glm-5-2

Strengths and limitations

What it does well, and what it does not.

Strengths

  • 1M tokens of context

    Long documents and long conversations fit in a single request.

  • Calls your tools

    It chooses a function and writes the arguments for it.

  • You pay for what you use

    $1.33 per million input tokens and $4.18 per million output tokens. No subscription is needed, and a request that fails is not charged.

Limitations

  • Not on the API yet

    It can be used in the app. Calls to the API with its id are refused until its API access opens.

  • Answers stop at 4,096 tokens

    A longer piece of work has to be asked for in parts.

  • Anonymized, not end-to-end encrypted

    Sent to the provider without your identity. The provider may retain the request under its own policy.

  • Standard safeguards

    This model keeps the safeguards its developer built in, and may decline some requests.

Use cases

Where it earns its place.

  1. 01

    Writing and editing

    Drafts, rewrites and summaries in the tone you ask for.

    Try it
  2. 02

    Questions and explanations

    An answer at the level you choose, with room for the next question.

    Try it
  3. 03

    Long documents

    Paste a report or a transcript and ask across all of it.

    Try it
  4. 04

    Assistants that act

    Connect functions and let the model decide when to call them.

Opens a chat with this model and the first words written for you. Nothing is sent until you send it.

Prompting guide

How to ask.

  1. Say what a good answer looks like

    Length, format and reader, in one sentence.

    “Three paragraphs, plain words, for someone who has never managed a budget.”

  2. Material first, question last

    With long text, put the document at the top and end with one clear question.

  3. Ask for its doubts

    It helps you decide what to check.

    “Answer, then list what you are least sure about.”

Model comparison

Next to the others.

Read from the live registry. A dash means it is not recorded, not that it is missing.
  • GLM 5.2Available

    Context
    1M tokens
    Reasoning
    —
    Tools
    Yes
    Input / 1M
    $1.33
    Output / 1M
    $4.18
  • GLM 4.7Available

    Context
    131K tokens
    Reasoning
    —
    Tools
    Yes
    Input / 1M
    $0.38
    Output / 1M
    $1.6625
  • GLM 5Available

    Context
    198K tokens
    Reasoning
    —
    Tools
    Yes
    Input / 1M
    $0.95
    Output / 1M
    $3.04
  • GLM 5.1Available

    Context
    203K tokens
    Reasoning
    —
    Tools
    Yes
    Input / 1M
    $1.2635
    Output / 1M
    $3.971
  • GLM 5.3Available

    Context
    1M tokens
    Reasoning
    —
    Tools
    Yes
    Input / 1M
    $1.6625
    Output / 1M
    $5.225
  • GLM 4.6Not available yet

Pricing

What it costs.

Charged by what you use, from one balance for the app and the API. A request that fails is not charged.
Input
$1.33per 1M tokens
Output
$4.18per 1M tokens
Cached input
$0.247per 1M tokens
A short question: 500 tokens in, 500 out
$0.002755
A long document: 100,000 tokens in, 1,500 out
$0.1393

Getting an API key

From nothing to a first call.

  1. 01

    Log in

    Sign-up is not open yet. An existing account is enough.

  2. 02

    Create a key

    In API settings. Give it a spending limit if you want one.

  3. 03

    Export it

    The examples on this page read it from here.

    export UNBOUND_API_KEY="<your key>"
  4. 04

    Point your client at Unbound

    Any OpenAI client works with this address.

    https://api.useunbound.ai/v1
  5. 05

    Choose a model your key can call

    This one is not on the API yet. The list shows the ones that are.

    GET /v1/models

FAQ

Questions people ask.

What is GLM 5.2?

GLM 5.2 is a language model by Zhipu AI with a context window of 1M tokens. It supports function calling and streaming.

How much does GLM 5.2 cost?

$1.33 per million input tokens and $4.18 per million output tokens. It is charged from your balance, and a request that fails is not charged.

Can I call GLM 5.2 from my own code?

Not yet. It can be used in the app today, and the API refuses its id until its API access opens. GET /v1/models lists what your key can call.

Does GLM 5.2 support tools and images?

It can call functions. Image input is not recorded for it.

How private is GLM 5.2 on Unbound?

Anonymized. Sent to the provider without your identity. The provider may retain the request under its own policy.

Start with GLM 5.2.

One account, one balance, every model on Unbound.