Introducing Baseten Loops: A Training SDK for Frontier RL. Learn more here
changelog / post

GLM 5.2 available on Baseten

Go back

You can start sending requests to GLM 5.2 today through our Model APIs by calling the OpenAI-compatible endpoint with your Baseten API key. For larger workloads, dedicated deployments are available.

GLM-5.2 is Z.ai's flagship model for agentic engineering is built to perform well on long-horizon coding tasks. GLM-5.2 runs on the Baseten Inference Stack.

  curl -X POST https://inference.baseten.co/v1/chat/completions \
    -H "Authorization: Api-Key $BASETEN_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "zai-org/GLM-5.2",
      "messages": [{"role": "user", "content": "Refactor this function for readability"}]
    }'

For more information and to get started, see our docs.