AllModel

GLM-5.2

8折
GLM-5.2

PricingDetails

$ / 1M Tokens

Input

Input

$1.20

Output

Output

$4.00

Cache Write

CacheCreate

$1.20

Cache Read

CacheLoading

$0.30

CurrentEnjoy 8折 discount, Save 19.999999999999996% Cost.

Quick Start

APIaddressPOST https://www.gk2.com/v1/chat/completions
cURL
curl https://www.gk2.com/v1/chat/completions \
  -H "Authorization: Bearer sk-your-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "GLM-5.2",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
Python (OpenAI SDK)
import openai

client = openai.OpenAI(
    api_key="sk-your-key",
    base_url="https://www.gk2.com/v1"
)

response = client.chat.completions.create(
    model="GLM-5.2",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)

Modelinfo

ModelIDGLM-5.2
Billing MethodPer Token
InputPrice$1.20 / 1M
OutputPrice$4.00 / 1M
CacheLoading$0.30 / 1M
CacheCreate$1.20 / 1M

StartUse GLM-5.2

RegisterFree Quota, replaceAPIaddressIntegrate