> ## Documentation Index
> Fetch the complete documentation index at: https://docs.typingmind.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Z.ai

This guide shows you how to connect your [Z.ai](http://Z.ai) API key to TypingMind so you can use [Z.ai](http://Z.ai) models directly in your TypingMind workspace.

## Step 1: Log in to [Z.ai](http://Z.ai) API

Log in to your [Z.ai](http://Z.ai) account at [**https://z.ai/subscribe**](https://z.ai/subscribe).

<Frame>
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/typingmind/images/zai-login-2.webp" alt="Zai Login 2" />
</Frame>

## Step 2: Create an API key

After logging in, go to the API Key page: [**https://z.ai/manage-apikey/apikey-list**](https://z.ai/manage-apikey/apikey-list) → Create a new API key, then copy it.

<Frame>
  <img src="https://mintcdn.com/typingmind/VAznm0Uo9H9pR4_5/images/zai-api.webp?fit=max&auto=format&n=VAznm0Uo9H9pR4_5&q=85&s=4baba1cba8f7eb401b20b47a124f9592" alt="Zai Api" width="2958" height="1658" data-path="images/zai-api.webp" />
</Frame>

Keep this key private. Do not share it publicly or expose it in client-side code.

## Step 3: Add the API key to TypingMind

* Go to [**typingmind.com**](http://typingmind.com)
* Navigate the Models menu on the left sidebar → Switch to API key tab
* Input the copied API key for Zai.

<Frame>
  <img src="https://mintcdn.com/typingmind/f18I_2hiObU32xEr/images/api-key-tab.webp?fit=max&auto=format&n=f18I_2hiObU32xEr&q=85&s=cd0e293a1514cb9d086e8754ac1106ee" alt="Api Key Tab" width="2342" height="1764" data-path="images/api-key-tab.webp" />
</Frame>

After entering the API key for Zai, switch back to Models tab → select Zai → enable Zai models you want to chat with.

<Frame>
  <img src="https://mintcdn.com/typingmind/VAznm0Uo9H9pR4_5/images/zai-model.webp?fit=max&auto=format&n=VAznm0Uo9H9pR4_5&q=85&s=80fb0204ba7a58f2ea1579b984b8e7fd" alt="Zai Model" width="2358" height="1740" data-path="images/zai-model.webp" />
</Frame>
