How do you use ZCode with an OpenAI-compatible API key?

Updated: 2026-07-05

ZCode and GLM-5.2 make developers think about custom model providers, API keys, Base URLs, and coding-agent cost control.

Short answer

If your tool supports a custom provider or OpenAI-compatible endpoint, set the Base URL to https://lizh.ai/v1, use your lizh.ai API key, and choose a model name from lizh.ai.

Steps

  • Create an API key in lizh.ai.
  • Find custom provider or API endpoint settings in the tool.
  • Set Base URL to https://lizh.ai/v1.
  • Use Authorization: Bearer YOUR_API_KEY.
  • Choose GLM-5.2 or another model from lizh.ai.

Recommended models

  • GLM-5.2 for ZCode and coding workflows.
  • Kimi for long-context project reading.
  • DeepSeek for coding with lower cost.

Cost and reliability notes

  • Start with a small voucher to test the setup.
  • Check model names carefully if requests fail.
  • Long-context tasks can increase input token cost.

How to do it with lizh.ai

Create an API key in lizh.ai and use it as a Bearer token in clients that support an OpenAI-compatible API.

Use Base URL: https://lizh.ai/v1

Related resources