GLM Made Crystal Clear · chapter 4: Your First API Call

Your First API Call

2026-11-04

Below: the paragraph from the book that builds this idea, then the diagram itself, and a recap. About a minute of reading.

For a standard pay-as-you-go account, the OpenAI Chat Completion base URL is https://api.z.ai/api/paas/v4/. Z.ai's GLM-5.3 model page separately documents an OpenAI Responses base URL at https://api.z.ai/api/v1, and an Anthropic Messages base URL at https://api.z.ai/api/anthropic. That Anthropic Messages address is the same one whether you are calling the pay-as-you-go API or the GLM Coding Plan (Chapter 7 covers what that endpoint unlocks for Claude Code specifically).

Recap

  • The idea:
  • The picture: The diagram above, from chapter 4 ("Your First API Call") of GLM Made Crystal Clear.
  • Go deeper: the chapter builds this step by step, with recipes and sources at the end.

This diagram is one of many in GLM Made Crystal Clear.

Every chapter opens with the gist, draws the hard ideas, and ends with recipes and sources.

Get the book

More from this book

All diagrams