Notice
Wan3.0 Officially Launched: Wan3.0 is a native large-scale model for generating 30-second videos, seamlessly orchestrating all audiovisual elements and supporting multi-modal references, delivering viOriginal Manufacturer Authorized · Genuine and TraceableEnterprise‑grade large‑model intelligent gateway platform—provides enterprises with compliant, controllable, stable, and efficient AI model API aggregation and governance services; one‑stop access to⚡️This site has been integrated with the official versions of GLM 5.3 and DeepSeek V4❗️

Text generation / 智谱

glm-5.2

Deep thinkingText generation

Overview

GLM-5.2 is the latest flagship model launched by Zhipu AI, designed for long-horizon tasks and supporting an ultra-long context of 1 million tokens. It boasts robust logical reasoning, advanced long‑text understanding, and powerful code‑generation capabilities, while balancing performance with inference efficiency. It excels across multiple task benchmarks and is well suited for applications such as intelligent interaction, enterprise solutions, and development assistance.

  • Model type: Text generation
  • Input: Text
  • Output: Text
  • Endpoints: chat / chat_completion
Tiered billing details
TierInputOutputCache hit
Fallback tier$0.0014/1K$0.0044/1K$0.0003/1K

Billed bylen (input context token count). Coefficient is the $ / 1M tokens price. Default group price (other groups converted by discount).

Use cases

  • Project-level engineering handover: enabling the model to understand an entire project in one go
  • Long‑range refactoring execution: entrusting it with real‑world transformation tasks to run to completion
  • Production‑grade specification stress testing: assessing whether it can uphold stringent R&D constraints
  • Mobile‑device real‑device debugging closed loop: from code implementation to device validation
  • WeChat mini‑program development: migrating from web applications to WeChat mini‑programs
  • Mini‑game development: from game mechanics and rules to a fully playable closed loop
  • Research replication: turning paper‑based data into a runnable project
  • Code‑generation video closed loop: transforming natural‑language ideas into a demonstrable, executable video

Code example

Call with glm-5.2 :

curl https://www.starunion.net/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.2",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'