Seedance 2.0 15% 할인 | Video Generator에서 만들기 →
chatglm
z-ai/glm-5.2

z-ai/glm-5.2

출시일: 2026-06-17

1,048,576 context · $1.40/M input tokens · $4.40/M output tokens

GLM 5.2 is Z.ai’s most advanced reasoning model, built for long-context, agentic, and engineering-intensive workloads. With support for a 1M-token context window and configurable High/XHigh reasoning modes, it delivers state-of-the-art performance in coding, tool use, and complex task execution.From requirements gathering and architecture design to implementation, testing, and multi-platform deployment, GLM 5.2 can maintain project-level context and consistently follow engineering best practices throughout the entire software development lifecycle.

가격

사용량 기반 과금

선결제 없이 사용한 만큼만 지불

입력$1.40 / M Tokens
출력$4.40 / M Tokens
Cache Read$0.26 / M Tokens

모델 사용해 보기

z-ai/glm-5.2
온라인
chatglm
안녕하세요! 도움이 되는 AI 어시스턴트입니다. 무엇을 도와드릴까요?

API 사용법

다음 코드 예시를 사용해 API와 연동하세요:

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

response = client.chat.completions.create(
    model="z-ai/glm-5.2",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

모델 소개

Z.ai: GLM 5.2

GLM 5.2 is Z.ai’s latest large-scale reasoning model, designed for long-context understanding, advanced coding, and complex agent workflows. With support for a 1M-token context window and configurable reasoning levels, it can maintain project-scale context across extended interactions, making it well-suited for software engineering, research, automation, and multi-step problem solving.

The model supports both High and XHigh reasoning modes, with XHigh enabling its maximum reasoning capability. GLM 5.2 excels at code generation, tool use, structured outputs, and long-horizon task execution, allowing developers to build sophisticated AI agents and automation systems that operate reliably over large amounts of context.

This model is available through the WaveSpeed AI OpenAI-compatible API and can be integrated into existing applications with minimal changes.


Why Choose GLM 5.2

  • Massive 1M-token context window for large documents, repositories, and long-running workflows
  • Strong reasoning performance for coding, planning, and complex multi-step tasks
  • Optimized for agentic applications with function calling and tool-use support
  • Structured output generation for JSON-based workflows and schema-constrained responses
  • Flexible reasoning controls for balancing speed, cost, and reasoning depth
  • Competitive pricing for large-context production workloads

Key Features

  • Context Window: 1,048,576 tokens
  • Max Input: 786,432 tokens
  • Max Output: 262,144 tokens
  • Architecture: Text → Text
  • Function Calling: Supported
  • Structured Outputs: Supported
  • Reasoning Controls: Supported
  • Vision: Not listed
  • Audio Input: Not listed
  • Image Generation: Not listed

Specifications

SpecificationValue
Providerchatglm
Model TypeChat Completions
ArchitectureText → Text
Context Window1,048,576 tokens
Max Input786,432 tokens
Max Output262,144 tokens
InputText
OutputText
Function CallingSupported
Structured OutputsSupported

API Integration

Base URL

https://llm.wavespeed.ai/v1

Endpoint

POST /chat/completions

Model ID

z-ai/glm-5.2

Common Use Cases

  • AI coding assistants
  • Software engineering agents
  • Large-scale codebase analysis
  • Research and document intelligence
  • Workflow automation
  • Multi-agent systems
  • Structured data extraction
  • Long-context reasoning applications

Notes

  • Model ID: z-ai/glm-5.2
  • Provider: chatglm

정보

제공자chatglm
유형llm

지원 기능

입력
텍스트
출력
텍스트
컨텍스트1,048,576
최대 출력262,144
Vision-
Function Calling✓ 지원

API 접근 가이드

Base URLhttps://llm.wavespeed.ai/v1
API 엔드포인트chat/completions
모델 IDz-ai/glm-5.2

GLM 5.2 API

z-ai/glm-5.2

GLM 5.2 is Z.ai’s most advanced reasoning model, built for long-context, agentic, and engineering-intensive workloads. With support for a 1M-token context window and configurable High/XHigh reasoning modes, it delivers state-of-the-art performance in coding, tool use, and complex task execution.From requirements gathering and architecture design to implementation, testing, and multi-platform deployment, GLM 5.2 can maintain project-level context and consistently follow engineering best practices throughout the entire software development lifecycle.

입력

$1.4 /M

출력

$4.4 /M

컨텍스트

1049K

최대 출력

262K

도구 사용

지원

WaveSpeedAI에서 GLM 5.2 체험

통합 API를 통해 GLM 5.2 액세스 — OpenAI 호환, 콜드 스타트 없음, 투명한 가격.

GLM 5.2에 대해 자주 묻는 질문

GLM 5.2 API 비용은 얼마인가요?+

WaveSpeedAI 가격: 입력 토큰 100만 개당 $1.40, 출력 토큰 100만 개당 $4.40. 프롬프트 캐싱과 배치 처리는 별도로 청구되며 긴 반복 작업에서 실질 비용을 줄여 줍니다.

GLM 5.2의 컨텍스트 윈도우는 얼마나 되나요?+

GLM 5.2은 요청당 최대 1049K 컨텍스트 토큰과 최대 262K 출력 토큰을 지원합니다.

GLM 5.2은 OpenAI 호환인가요?+

네. WaveSpeedAI는 OpenAI 호환 엔드포인트 https://llm.wavespeed.ai/v1을 통해 GLM 5.2을 제공합니다. 공식 OpenAI SDK의 base URL을 이 주소로 변경하고 WaveSpeedAI API 키를 사용하면 코드 변경 없이 사용할 수 있습니다.

GLM 5.2을 어떻게 시작하나요?+

WaveSpeedAI에 로그인하고 Access Keys에서 API 키를 만든 다음, 위에 표시된 모델 ID로 https://llm.wavespeed.ai/v1/chat/completions에 요청을 보내세요. 신규 계정은 GLM 5.2을 평가할 수 있는 무료 크레딧을 받습니다.

관련 LLM API