> ## 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](https://z.ai) API key to TypingMind so you can use [Z.ai](https://z.ai) models directly in your TypingMind workspace.

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

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

![Zai Login 2](https://mintcdn.com/typingmind/VAEWnZbCILQqLxBF/images/zai-login-2.webp?fit=max\&auto=format\&n=VAEWnZbCILQqLxBF\&q=85\&s=5b2f544e85b9349961fe6ed8fd27e701)

## 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.

![Zai Api](https://mintcdn.com/typingmind/VAznm0Uo9H9pR4_5/images/zai-api.webp?fit=max\&auto=format\&n=VAznm0Uo9H9pR4_5\&q=85\&s=4baba1cba8f7eb401b20b47a124f9592)

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**](https://www.typingmind.com/)
* Navigate the Models menu on the left sidebar → Switch to API key tab
* Input the copied API key for Zai.

![Api Key Tab](https://mintcdn.com/typingmind/f18I_2hiObU32xEr/images/api-key-tab.webp?fit=max\&auto=format\&n=f18I_2hiObU32xEr\&q=85\&s=cd0e293a1514cb9d086e8754ac1106ee)

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

![Zai Model](https://mintcdn.com/typingmind/VAznm0Uo9H9pR4_5/images/zai-model.webp?fit=max\&auto=format\&n=VAznm0Uo9H9pR4_5\&q=85\&s=80fb0204ba7a58f2ea1579b984b8e7fd)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.