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

# Create an API key

## Get an API key

This page explains how to create, view, and manage API keys for your workspace in [AI21 Studio](https://studio.ai21.com/v2?tab=maestro).

### **Step 1: Sign in to AI21 Studio**

<Expandable title="Content">
  You can sign in using your email address, Google account, GitHub account, or SSO.

  <img src="https://mintcdn.com/ai21-demo/T8t9edhnM38stjV6/images/SigninAI21Studio.png?fit=max&auto=format&n=T8t9edhnM38stjV6&q=85&s=2a9c1dbee5a8c5cf9c8543b634c78fb0" alt="Signin Ai21studio Pn" width="514" height="400" data-path="images/SigninAI21Studio.png" />
</Expandable>

### **Step 2: Open Settings**

<Expandable title="Content">
  In the bottom-left corner of the AI21 Studio sidebar, click **Settings**.

  <img src="https://mintcdn.com/ai21-demo/J5QIdM22i0W2Oi5O/images/choosesettings.png?fit=max&auto=format&n=J5QIdM22i0W2Oi5O&q=85&s=647ff618234fa87058304d449690db80" alt="Choosesettings Pn" width="1648" height="949" data-path="images/choosesettings.png" />
</Expandable>

### Step 3: Open the API Keys tab

<Expandable title="Content">
  In the Workspace Settings panel, click the **API Keys** tab in the left-hand sidebar.

  <img src="https://mintcdn.com/ai21-demo/J5QIdM22i0W2Oi5O/images/Studiosettingscreen.png?fit=max&auto=format&n=J5QIdM22i0W2Oi5O&q=85&s=7797f01b39cc1658c508beec4688d857" alt="Studiosettingscreen Pn" width="1627" height="936" data-path="images/Studiosettingscreen.png" />
</Expandable>

### Step 4: Create a New API Key

<Expandable title="Content">
  Click the **Create new key** button at the top-right corner of the Workspace Settings panel.

  <img src="https://mintcdn.com/ai21-demo/PMZxf8SIh1Gh_FVL/images/Clickonthecreatapikeybutton.png?fit=max&auto=format&n=PMZxf8SIh1Gh_FVL&q=85&s=cb2d20279cfa666f0e796421ce273fb1" alt="Clickonthecreatapikeybutton Pn" width="1508" height="942" data-path="images/Clickonthecreatapikeybutton.png" />
</Expandable>

### Step 5: Name Your API Key

<Expandable title="Content">
  You may give your new key a name to help organize your workspace keys.\
  If you prefer not to name it, leave the field blank and click **Create key**.\
  To cancel, click **Cancel.**

  <img src="https://mintcdn.com/ai21-demo/GgHgtGDdsicBEMfH/images/nameyourapikey.png?fit=max&auto=format&n=GgHgtGDdsicBEMfH&q=85&s=f07ed76ea5bf42a5ea0a895bf733cdea" alt="Nameyourapikey Pn" width="1647" height="937" data-path="images/nameyourapikey.png" />
</Expandable>

### Step 6:  Save Your API Key

<Expandable title="Content">
  Your new API key is now visible.\
  Copy and save it in a secure location, **you won’t be able to view it again**.\
  Anyone with your key can make requests on your behalf, so keep it private.\
  If you lose it, you’ll need to generate a new one.

  <img src="https://mintcdn.com/ai21-demo/4mnejJF_N2b-EtXj/images/Saveyour.png?fit=max&auto=format&n=4mnejJF_N2b-EtXj&q=85&s=d966bcafb5923673e07bc0e89c4f1a02" alt="Saveyour Pn" width="1724" height="943" data-path="images/Saveyour.png" />
</Expandable>

### Step 7: Manage Your API Keys

<Expandable title="Content">
  You can view and manage all workspace API keys in the **Workspace API Keys** section.\
  You’ll see each key’s name and the last few characters (full keys are never shown again).\
  From this page, you can rename or delete existing keys at any time.

  <img src="https://mintcdn.com/ai21-demo/S7itLojru04Ny83y/images/ManageAPIKey.png?fit=max&auto=format&n=S7itLojru04Ny83y&q=85&s=79a492eb1de4676b2142b5e19b88bd07" alt="Manage API Key Pn" width="1645" height="939" data-path="images/ManageAPIKey.png" />
</Expandable>
