Please send the HTML fragment.
GLM API · Ace Data Cloud

GLM API
GLM Series Large Language Models

Use GLM series models through an OpenAI-compatible format. GLM-5.3 is ideal for complex reasoning, GLM-3-Turbo is suitable for general text tasks, and GLM-4.5V supports text and image input.

🤖 10 Models 🧠 Advanced Reasoning 🔌 OpenAI Compatible 🌐 Chinese and English
🤖
10
Model Versions
🧠
GLM-5.3
Latest Flagship Model
💰
Credits
Billed Based on Token Usage
⚡
SSE
Streaming Output

Why Use GLM Through Ace Data Cloud?

GLM is a comprehensive family of large language models developed by Zhipu AI. GLM-5.3 supports deep reasoning (Thinking), GLM-4.5v supports multimodal visual understanding, and GLM-3-Turbo is suitable for everyday text conversations.

Ace Data Cloud uses an OpenAI-compatible format. When compatibility routing is enabled, the platform can process requests using compatible models in the same tier. Responses and billing both use the public GLM model specified in the request.

Core Capabilities of the GLM API

Unlock the full potential of Zhipu AI GLM through an OpenAI-compatible API

🔌

OpenAI-Compatible Format

Call GLM through /v1/chat/completions, fully compatible with the OpenAI SDK. Switch seamlessly with zero code changes.

🧠

Advanced Reasoning (Thinking)

GLM-5.3 features built-in advanced reasoning capabilities, enabling the model to perform structured thinking before answering and significantly improving performance on mathematical, programming, and logical tasks.

🌐

Optimized for Chinese and English

Excellent native Chinese comprehension alongside strong English performance. Ideal for Chinese-language scenarios, cross-language translation, and multilingual application development.

👁️

Multimodal Vision

GLM-4.5v supports image understanding and can handle visual tasks such as image description, OCR, and chart analysis, combining language comprehension with multimodal interaction.

⚡

Lightweight Text Conversations

GLM-3-Turbo is suitable for short-form Q&A, classification, and field extraction.

📄

Streaming

Supports SSE streaming for real-time, token-by-token output. Set stream: true to enable streaming responses.

Python
from openai import OpenAI
client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.acedata.cloud/v1"
)
response = client.chat.completions.create(
    model="glm-4.7",
    messages=[
        {"role": "user", "content": "用 Python 实现一个快速排序算法"}
    ],
    stream=True
)
for chunk in response:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="")
Response
{
  "id": "chatcmpl-glm-20250718120000",
  "object": "chat.completion",
  "created": 1752825600,
  "model": "glm-4.7",
  "choices": [{
    "index": 0,
    "message": {
      "role": "assistant",
      "content": "def quicksort(arr):\n    if len(arr) <= 1:\n        return arr\n    pivot = arr[len(arr) // 2]\n    left = [x for x in arr if x < pivot]\n    middle = [x for x in arr if x == pivot]\n    right = [x for x in arr if x > pivot]\n    return quicksort(left) + middle + quicksort(right)"
    },
    "finish_reason": "stop"
  }],
  "usage": {
    "prompt_tokens": 12,
    "completion_tokens": 85,
    "total_tokens": 97
  }
}

Switch with a Single Line of Code Using the OpenAI SDK

Simply change base_url and model to use GLM in your existing OpenAI project—no code refactoring required.

1

Get an API Key

Sign up for Ace Data Cloud and obtain your Bearer Token from the dashboard.

2

Modify base_url

Set base_url to https://api.acedata.cloud/v1

3

Select a GLM Model

Set model to a GLM model name, such as glm-5.3 or glm-4.7

What Can You Build with the GLM API?

From Chinese NLP to multimodal vision—developers are using GLM to build these applications

💬

Chinese Conversational Assistants

Build high-quality Chinese customer service bots, knowledge-based Q&A systems, and personal AI assistants with native Chinese understanding that far surpasses general-purpose models

💻

Code Generation and Review

The GLM-5 series excels on programming benchmarks, supporting code generation, bug fixes, code reviews, and architectural recommendations

👁️

Multimodal Visual Understanding

GLM-4.5v supports image understanding, enabling visual AI applications such as OCR, chart analysis, and image captioning

🔬

Advanced Reasoning and Analysis

Math problem-solving, logical reasoning, and data analysis—the GLM-5.3 Thinking mode delivers advanced reasoning capabilities

Get Started in 3 Easy Steps

From registration to sending your first GLM message in less than 3 minutes

01

Sign Up and Get Your API Key

Create a free account on Ace Data Cloud and generate your Bearer Token from the console.

02

Make Calls Using the OpenAI SDK

Set base_url to Ace Data Cloud, choose any GLM model, and you're ready to go.

03

Integrate and Scale

Embed GLM into your application. The OpenAI-compatible format makes switching between models effortless.

Why Choose Ace Data Cloud Instead of Using the Zhipu API Directly?

Comprehensive advantages in format compatibility, global availability, and unified interfaces

Comparison Criteria Ace Data Cloud Direct Zhipu API
OpenAI-Compatible Format ✓ ✗ Proprietary API Format
Global Availability ✓ Ready to Use Out of the Box ✗ Restricted in Some Regions
Streaming ✓ ✓
Unified Multi-Model Interface ✓ GPT / Claude / Gemini / GLM ✗ GLM Only
Pay-as-You-Go ✓ Flexible Top-Ups ✓
No Chinese Phone Number Required for Registration ✓ ✗ Chinese Phone Number Required
Advanced Reasoning Models ✓ ✓

Choose the Right GLM Model

Select a flagship reasoning, general-purpose text, or multimodal model based on your task

Recommended

GLM-5.3

Advanced Reasoning

The latest flagship model, designed for complex software engineering, coding, and Agent tasks. Supports a 1M context window and up to 128K output tokens.

  • ✓ Reasoning always enabled
  • ✓ 1M context window
  • ✓ Up to 128K output tokens
  • ✓ Best choice for complex coding and Agent tasks

GLM-4.7

Balanced Choice

The best balance between performance and cost. Supports reasoning capabilities and is suitable for most general-purpose conversations and programming scenarios.

  • ✓ Excellent value for money
  • ✓ Excellent for general-purpose conversations
  • ✓ Supports reasoning capabilities
  • ✓ Suitable for production environments

GLM-3-Turbo

Lightweight Text

Suitable for text classification, field extraction, and short conversations.

  • ✓ Billed based on input and output usage
  • ✓ Text input and output
  • ✓ Suitable for high-volume tasks
  • ✓ Classification / extraction / simple conversations
glm-5.3 glm-5.2 glm-5.1 glm-5-turbo glm-5 glm-4.7 glm-4.6 glm-4.5v glm-4.5 glm-3-turbo

GLM API Pricing

Pay based on Token usage. No subscription fees, no hidden charges.

Enjoy greater discounts with bulk packages

Pay As You Go
Token Billing
Low Cost Billed per Token

Pay based on actual Token usage, with separate pricing for input and output

  • ✓ Choose from 10 GLM models on demand
  • ✓ GLM-3-Turbo text conversations
  • ✓ Ready-to-use GLM-5.3 advanced reasoning
  • ✓ Separate input and output pricing
  • ✓ Streaming — Free
View Detailed Pricing View API Documentation
Enterprise
Custom

Tailored solutions for high-volume teams

  • ✓ Tiered discounts based on usage
  • ✓ Priority support and dedicated account manager
  • ✓ Custom rate limits
  • ✓ SLA guarantees
  • ✓ Private deployment solutions
Contact Sales
Please send the HTML fragment you'd like translated.

Frequently Asked Questions

Everything you need to know about using the GLM API

What is GLM? How is it different from other models? ▾

GLM is a series of large language models developed by Zhipu AI, built by a technical team from Tsinghua University. GLM excels at native Chinese language understanding while also delivering excellent English performance. GLM-5.3 is the current flagship model, supporting advanced reasoning; GLM-4.5v supports multimodal vision; and GLM-3-Turbo is suitable for general text generation.

Does it support the OpenAI SDK? ▾

Yes! It is fully compatible with the OpenAI SDK (Python, Node.js, Go, etc.). Simply change base_url to https://api.acedata.cloud/v1 and set model to any GLM model name. You can switch your existing OpenAI code to GLM with virtually no modifications.

How does GLM-5.3's advanced reasoning differ from standard models? ▾

GLM-5.3 features built-in Thinking reasoning capabilities. The model reasons through a problem based on its complexity before providing a final answer. This delivers stronger performance in mathematical proofs, complex logic, programming, and Agent tasks. Reasoning tokens are billed according to the output token pricing rules.

How can I compare the costs of different models? ▾

Select a model on the service pricing page to view its Credits rates per million input and output tokens. Models that support discounted cache reads also list their cache pricing. The actual cost depends on usage and the package purchased.

How does the pricing work? ▾

Pricing is based on token usage, with separate rates for input and output tokens. The rates for each model are listed on the service pricing page. There are no subscription fees or monthly charges—you only pay for what you use. Your balance is available immediately after topping up and never expires.

Can I use GPT, Claude, Gemini, and GLM at the same time? ▾

Absolutely! Ace Data Cloud provides access to multiple LLMs, including GPT, Claude, Gemini, and GLM, through a unified OpenAI-compatible interface. Simply change the model parameter to switch between different models. The API format remains exactly the same, so there is no need to maintain multiple sets of code. A single API Key gives you access to all models.

Please send the HTML fragment you want translated.

Get Started with the GLM API Today

Access the GLM series of large language models through an OpenAI-compatible format. Pay as you go — no subscription fees, no commitments.

Please send the HTML fragment you'd like translated into English.