GLM-5.2
8折GLM-5.2PricingDetails
$ / 1M TokensInput
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
APIaddress
POST https://www.gk2.com/v1/chat/completionscURL
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
ModelID
GLM-5.2Billing MethodPer Token
InputPrice$1.20 / 1M
OutputPrice$4.00 / 1M
CacheLoading$0.30 / 1M
CacheCreate$1.20 / 1M