{"id":240,"date":"2026-03-21T22:47:24","date_gmt":"2026-03-21T14:47:24","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/providers-zai\/"},"modified":"2026-03-21T23:08:57","modified_gmt":"2026-03-21T15:08:57","slug":"providers-zai","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/providers-zai\/","title":{"rendered":"Z.AI"},"content":{"rendered":"<h1>Z.AI<\/h1>\n<p>Z.AI \u662f <strong>GLM<\/strong> \u6a21\u578b\u7684 API \u5e73\u53f0\u3002\u5b83\u4e3a GLM \u63d0\u4f9b REST API\uff0c\u5e76\u4f7f\u7528 API key<br \/>\n\u8fdb\u884c\u8ba4\u8bc1\u3002\u8bf7\u5728 Z.AI \u63a7\u5236\u53f0\u4e2d\u521b\u5efa\u4f60\u7684 API key\u3002OpenClaw \u4f7f\u7528 <code>zai<\/code> \u63d0\u4f9b\u5546<br \/>\n\u914d\u5408 Z.AI API key\u3002<\/p>\n<h2>CLI \u8bbe\u7f6e<\/h2>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<\/p>\n<h1>Coding Plan Global\uff0c\u63a8\u8350\u7ed9 Coding Plan \u7528\u6237<\/h1>\n<p>openclaw onboard &#8211;auth-choice zai-coding-global<\/p>\n<h1>Coding Plan CN\uff08\u4e2d\u56fd\u533a\u57df\uff09\uff0c\u63a8\u8350\u7ed9 Coding Plan \u7528\u6237<\/h1>\n<p>openclaw onboard &#8211;auth-choice zai-coding-cn<\/p>\n<h1>\u901a\u7528 API<\/h1>\n<p>openclaw onboard &#8211;auth-choice zai-global<\/p>\n<h1>\u901a\u7528 API CN\uff08\u4e2d\u56fd\u533a\u57df\uff09<\/h1>\n<p>openclaw onboard &#8211;auth-choice zai-cn<\/p>\n<pre><code>\n## \u914d\u7f6e\u7247\u6bb5\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  env: { ZAI_API_KEY: &quot;sk-...&quot; },\n  agents: { defaults: { model: { primary: &quot;zai\/glm-5&quot; } } },\n}\n<\/code><\/pre>\n<h2>\u8bf4\u660e<\/h2>\n<ul>\n<li>GLM \u6a21\u578b\u53ef\u7528\u4f5c <code>zai\/&lt;model&gt;<\/code>\uff08\u4f8b\u5982\uff1a<code>zai\/glm-5<\/code>\uff09\u3002<\/li>\n<li><code>tool_stream<\/code> \u9ed8\u8ba4\u542f\u7528\uff0c\u7528\u4e8e Z.AI \u5de5\u5177\u8c03\u7528\u6d41\u5f0f\u4f20\u8f93\u3002\u82e5\u8981\u7981\u7528\uff0c\u8bf7\u8bbe\u7f6e<br \/>\n  <code>agents.defaults.models[\"zai\/&lt;model&gt;\"].params.tool_stream<\/code> \u4e3a <code>false<\/code>\u3002<\/li>\n<li>\u5173\u4e8e\u6a21\u578b\u5bb6\u65cf\u6982\u89c8\uff0c\u8bf7\u53c2\u9605 <a href=\"\/providers\/glm\">\/providers\/glm<\/a>\u3002<\/li>\n<li>Z.AI \u4f7f\u7528\u5e26\u6709\u4f60\u7684 API key \u7684 Bearer \u8ba4\u8bc1\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Z.AI Z.AI \u662f GLM \u6a21\u578b\u7684 API \u5e73\u53f0\u3002\u5b83\u4e3a GLM \u63d0\u4f9b REST API\uff0c\u5e76\u4f7f\u7528 API k [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-240","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/comments?post=240"}],"version-history":[{"count":1,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/240\/revisions"}],"predecessor-version":[{"id":535,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/240\/revisions\/535"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}