必看

由于资源紧张,网站正在卸载和退款昂贵的gpu,并购入更多4090和5090,以至于更好的为大家免费提供服务,请耐心等待

请每天都签到再使用api否则会报错

GLM-4.6 api for free

🤯 Stop settling for less! GLM-4.6 is here with a GIGANTIC LEAP in performance that will blow your mind! ⚡️ Speed? Blazing fast! You won't even see it coming. 🔬 Intelligence? Next-level reasoning, flawless logic, and insane attention to detail. Pure Genius. 🖼️ Multimodal? It understands images, it connects the dots—this model is the ULTIMATE AI SWISS ARMY KNIFE! ✅ The Bottom Line: Choose GLM-4.6 and watch your productivity go FULL THROTTLE! The future is now!

🤖
你好!我是 GLM-4.6 api for free。有什么我可以帮你的吗?

API 调用示例

您可以在自己的应用中使用以下代码调用此模型。

curl http://pumpkinai.it.com/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY_PLACEHOLDER" \
  -d '{
    "model": "zai-org/GLM-4.6",
    "messages": [
      {"role": "user", "content": "Hello!"}
    ],
    "stream": true,
    "max_tokens": 512
  }'
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY_PLACEHOLDER",
    base_url="http://pumpkinai.it.com/api/v1"
)

response = client.chat.completions.create(
    model="zai-org/GLM-4.6",
    messages=[
        {"role": "user", "content": "Hello!"}
    ],
    stream=True,
    max_tokens=512
)

for chunk in response:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="")