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.
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.
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.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AI21 Labs","colors":{"primary":"#F098B5","light":"#EE87A7","dark":"#F098B5"},"logo":{"light":"https://mintcdn.com/ai21-demo/ae4eOvPS_ZOlDCYT/images/AI21_Logo_black.png?fit=max\u0026auto=format\u0026n=ae4eOvPS_ZOlDCYT\u0026q=85\u0026s=ff9840432b0d2e9ebcbadc46ee2b5b8f","dark":"https://mintcdn.com/ai21-demo/ae4eOvPS_ZOlDCYT/images/AI21_Logo_white.png?fit=max\u0026auto=format\u0026n=ae4eOvPS_ZOlDCYT\u0026q=85\u0026s=8a9b3dd3ba0831a3431f51d792cef4c3","href":"https://www.ai21.com/"},"favicon":"https://mintcdn.com/ai21-demo/oHuzynnpYbW6Dt6q/favicon.png?fit=max\u0026auto=format\u0026n=oHuzynnpYbW6Dt6q\u0026q=85\u0026s=2b79127bf528ced3b4c82a2245c3977b","appearance":{"default":"light"},"background":{"decoration":"gradient","color":{"dark":"#212121"}},"navbar":{"links":[{"href":"https://studio.ai21.com/v2/workspaces/81189ce4-f4d4-433e-954d-ff17cd040a2a/maestro","label":"Playground"},{"href":"https://studio.ai21.com/v2/account/api-key?source=docs\u0026_gl=1*u1mkxz*_gcl_au*OTIzMDQ5NzU0LjE3NDkyOTE4NjA.","label":"API Key"}],"primary":{"type":"button","label":"Get a Demo","href":"https://www.ai21.com/talk-to-us/"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/ai21","x":"https://twitter.com/AI21Labs","discord":"https://discord.com/invite/cKzg6GEAyB"}},"seo":{"metatags":{"title":"AI21 Labs Documentation","description":"Access full API references, guides, and model capabilities. Learn how to work with AI21's foundation models."}},"fonts":{"heading":{"family":"Polysans","source":"https://www.ai21.com/wp-content/themes/ai21/assets/fonts/polysans/polysans-500.woff2","format":"woff2"},"body":{"family":"Inter"}},"styling":{"codeblocks":"system","latex":false},"integrations":{"amplitude":{"apiKey":"be0223327acdb089744156d19857f1ac"},"intercom":{"appId":"mj4rlz0i"}},"contextual":{"options":["copy","view"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ai21-demo","hasAudioNarration":false,"actualSubdomain":"ai21-demo","customDomains":["docs.ai21.com"],"gitSource":{"type":"github","owner":"ai21labs","repo":"ai21-documentation","deployBranch":"mintlify-migration","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a4a7ebfbaf10c5e1ea335ca","collectionId":"f5badcbb-72bc-4b9d-900b-6960296e389a","schemaVersion":"v3"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6a4f3f9090bb4322727d629c:success","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"Guides","count":39},{"language":"default","tag":"API Reference","count":15},{"language":"default","tag":"AI21 Maestro","count":14},{"language":"default","tag":"Tools","count":11},{"language":"default","tag":"Foundation Models","count":7},{"language":"default","tag":"File Library Management","count":7},{"language":"default","tag":"AI21 Studio","count":6},{"language":"default","tag":"Private AI","count":4},{"language":"default","tag":"User Provided Tools","count":4},{"language":"default","tag":"Getting Started","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"styles/custom.css","content":".tryit-button,button[aria-label=\"Try it\"]{display:none!important}.centered-table{text-align:center}.centered-table table{margin:0 auto!important;display:table!important}div.centered-table>table{margin-left:auto!important;margin-right:auto!important}.dark .hero{color:#fff!important}.category-title,.dark .hero h1,h1{font-weight:500!important}h2{font-size:1.4rem!important;line-height:1.4!important;letter-spacing:-.01em!important;margin-bottom:.6em!important}.category-title{font-size:1.75rem!important;line-height:1.3!important;margin-top:2rem!important;margin-bottom:1rem!important;letter-spacing:normal!important}.card h2,.home-page .box h2,.home-page a.box h2{font-size:1rem!important;font-weight:400!important;line-height:1.2!important;margin-bottom:.4em!important;letter-spacing:-.01em!important}.sidebar .category,.sidebar .group-title,.sidebar a,h2{font-weight:400!important}.sidebar .title{font-weight:300!important}.card h2{font-size:1.125rem!important;font-weight:500!important;line-height:1.5!important}.bg-lightmode{background-image:url(https://mintlify-assets.b-cdn.net/ai21-background.svg)}.bg-darkmode{background-image:url(https://mintlify-assets.b-cdn.net/dark-ai21-background2.svg)}"}],"page":{"pagePath":"docs/create-api-key","slug":"/docs/create-api-key","pageMetadata":{"title":"Create an API key","description":null,"href":"/docs/create-api-key","hidden":false},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,br:`br`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Expandable,Heading,OptimizedImage}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`get-an-api-key`,children:`Get an API key`}),`\n`,_jsxs(_components.p,{children:[`This page explains how to create, view, and manage API keys for your workspace in `,_jsx(_components.a,{href:`https://studio.ai21.com/v2?tab=maestro`,children:`AI21 Studio`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`step-1-sign-in-to-ai21-studio`,children:_jsx(_components.strong,{children:`Step 1: Sign in to AI21 Studio`})}),`\n`,_jsxs(Expandable,{title:`Content`,children:[_jsx(_components.p,{children:`You can sign in using your email address, Google account, GitHub account, or SSO.`}),_jsx(OptimizedImage,{src:`https://mintcdn.com/ai21-demo/T8t9edhnM38stjV6/images/SigninAI21Studio.png?fit=max\u0026auto=format\u0026n=T8t9edhnM38stjV6\u0026q=85\u0026s=2a9c1dbee5a8c5cf9c8543b634c78fb0`,alt:`Signin Ai21studio Pn`,\"data-og-width\":`514`,width:`514`,\"data-og-height\":`400`,height:`400`,\"data-path\":`images/SigninAI21Studio.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ai21-demo/T8t9edhnM38stjV6/images/SigninAI21Studio.png?w=280\u0026fit=max\u0026auto=format\u0026n=T8t9edhnM38stjV6\u0026q=85\u0026s=5dc4894d5cb98bf407a0a8ea4cd227ee 280w, https://mintcdn.com/ai21-demo/T8t9edhnM38stjV6/images/SigninAI21Studio.png?w=560\u0026fit=max\u0026auto=format\u0026n=T8t9edhnM38stjV6\u0026q=85\u0026s=1c49c2ac32e8382cf5edd0195c559523 560w, https://mintcdn.com/ai21-demo/T8t9edhnM38stjV6/images/SigninAI21Studio.png?w=840\u0026fit=max\u0026auto=format\u0026n=T8t9edhnM38stjV6\u0026q=85\u0026s=e019e395c33d6512d512efac93e54d47 840w, https://mintcdn.com/ai21-demo/T8t9edhnM38stjV6/images/SigninAI21Studio.png?w=1100\u0026fit=max\u0026auto=format\u0026n=T8t9edhnM38stjV6\u0026q=85\u0026s=d9830d5b7231b1963de3c31827651ba5 1100w, https://mintcdn.com/ai21-demo/T8t9edhnM38stjV6/images/SigninAI21Studio.png?w=1650\u0026fit=max\u0026auto=format\u0026n=T8t9edhnM38stjV6\u0026q=85\u0026s=04ffc79e4e753613cc5ae2045ab4a89b 1650w, https://mintcdn.com/ai21-demo/T8t9edhnM38stjV6/images/SigninAI21Studio.png?w=2500\u0026fit=max\u0026auto=format\u0026n=T8t9edhnM38stjV6\u0026q=85\u0026s=27ddffc86e963e54d1499c35376ee4de 2500w`})]}),`\n`,_jsx(Heading,{level:`3`,id:`step-2-open-settings`,children:_jsx(_components.strong,{children:`Step 2: Open Settings`})}),`\n`,_jsxs(Expandable,{title:`Content`,children:[_jsxs(_components.p,{children:[`In the bottom-left corner of the AI21 Studio sidebar, click `,_jsx(_components.strong,{children:`Settings`}),`.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/ai21-demo/J5QIdM22i0W2Oi5O/images/choosesettings.png?fit=max\u0026auto=format\u0026n=J5QIdM22i0W2Oi5O\u0026q=85\u0026s=647ff618234fa87058304d449690db80`,alt:`Choosesettings Pn`,\"data-og-width\":`1648`,width:`1648`,\"data-og-height\":`949`,height:`949`,\"data-path\":`images/choosesettings.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ai21-demo/J5QIdM22i0W2Oi5O/images/choosesettings.png?w=280\u0026fit=max\u0026auto=format\u0026n=J5QIdM22i0W2Oi5O\u0026q=85\u0026s=bcf5aa31e48704df801c7ac70fe6cfd2 280w, https://mintcdn.com/ai21-demo/J5QIdM22i0W2Oi5O/images/choosesettings.png?w=560\u0026fit=max\u0026auto=format\u0026n=J5QIdM22i0W2Oi5O\u0026q=85\u0026s=712785c7ea682e53e5e0defd9fb13173 560w, https://mintcdn.com/ai21-demo/J5QIdM22i0W2Oi5O/images/choosesettings.png?w=840\u0026fit=max\u0026auto=format\u0026n=J5QIdM22i0W2Oi5O\u0026q=85\u0026s=2459fdb21332a22abb7d8b78f8950ac7 840w, https://mintcdn.com/ai21-demo/J5QIdM22i0W2Oi5O/images/choosesettings.png?w=1100\u0026fit=max\u0026auto=format\u0026n=J5QIdM22i0W2Oi5O\u0026q=85\u0026s=b27923f259e1033ca700d06dca5151c4 1100w, https://mintcdn.com/ai21-demo/J5QIdM22i0W2Oi5O/images/choosesettings.png?w=1650\u0026fit=max\u0026auto=format\u0026n=J5QIdM22i0W2Oi5O\u0026q=85\u0026s=be0a4a4867886089e27a0be89f7f9d27 1650w, https://mintcdn.com/ai21-demo/J5QIdM22i0W2Oi5O/images/choosesettings.png?w=2500\u0026fit=max\u0026auto=format\u0026n=J5QIdM22i0W2Oi5O\u0026q=85\u0026s=569e123c61bf41643254b539ed24d9d2 2500w`})]}),`\n`,_jsx(Heading,{level:`3`,id:`step-3-open-the-api-keys-tab`,children:`Step 3: Open the API Keys tab`}),`\n`,_jsxs(Expandable,{title:`Content`,children:[_jsxs(_components.p,{children:[`In the Workspace Settings panel, click the `,_jsx(_components.strong,{children:`API Keys`}),` tab in the left-hand sidebar.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/ai21-demo/J5QIdM22i0W2Oi5O/images/Studiosettingscreen.png?fit=max\u0026auto=format\u0026n=J5QIdM22i0W2Oi5O\u0026q=85\u0026s=7797f01b39cc1658c508beec4688d857`,alt:`Studiosettingscreen Pn`,\"data-og-width\":`1627`,width:`1627`,\"data-og-height\":`936`,height:`936`,\"data-path\":`images/Studiosettingscreen.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ai21-demo/J5QIdM22i0W2Oi5O/images/Studiosettingscreen.png?w=280\u0026fit=max\u0026auto=format\u0026n=J5QIdM22i0W2Oi5O\u0026q=85\u0026s=047f44d1285842979b2900abc43021fd 280w, https://mintcdn.com/ai21-demo/J5QIdM22i0W2Oi5O/images/Studiosettingscreen.png?w=560\u0026fit=max\u0026auto=format\u0026n=J5QIdM22i0W2Oi5O\u0026q=85\u0026s=7fd2c01c7f0b296d15314de6cfa5e64c 560w, https://mintcdn.com/ai21-demo/J5QIdM22i0W2Oi5O/images/Studiosettingscreen.png?w=840\u0026fit=max\u0026auto=format\u0026n=J5QIdM22i0W2Oi5O\u0026q=85\u0026s=7fc53cc4ebb29d2a750e3b96f62c6257 840w, https://mintcdn.com/ai21-demo/J5QIdM22i0W2Oi5O/images/Studiosettingscreen.png?w=1100\u0026fit=max\u0026auto=format\u0026n=J5QIdM22i0W2Oi5O\u0026q=85\u0026s=802facb0e8c8e58353a91035b9dfd3dd 1100w, https://mintcdn.com/ai21-demo/J5QIdM22i0W2Oi5O/images/Studiosettingscreen.png?w=1650\u0026fit=max\u0026auto=format\u0026n=J5QIdM22i0W2Oi5O\u0026q=85\u0026s=c1f1eccd8f9106b2b40944b5bbf19dab 1650w, https://mintcdn.com/ai21-demo/J5QIdM22i0W2Oi5O/images/Studiosettingscreen.png?w=2500\u0026fit=max\u0026auto=format\u0026n=J5QIdM22i0W2Oi5O\u0026q=85\u0026s=061999061b68a7b8196e370446afb783 2500w`})]}),`\n`,_jsx(Heading,{level:`3`,id:`step-4-create-a-new-api-key`,children:`Step 4: Create a New API Key`}),`\n`,_jsxs(Expandable,{title:`Content`,children:[_jsxs(_components.p,{children:[`Click the `,_jsx(_components.strong,{children:`Create new key`}),` button at the top-right corner of the Workspace Settings panel.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/ai21-demo/PMZxf8SIh1Gh_FVL/images/Clickonthecreatapikeybutton.png?fit=max\u0026auto=format\u0026n=PMZxf8SIh1Gh_FVL\u0026q=85\u0026s=cb2d20279cfa666f0e796421ce273fb1`,alt:`Clickonthecreatapikeybutton Pn`,\"data-og-width\":`1508`,width:`1508`,\"data-og-height\":`942`,height:`942`,\"data-path\":`images/Clickonthecreatapikeybutton.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ai21-demo/PMZxf8SIh1Gh_FVL/images/Clickonthecreatapikeybutton.png?w=280\u0026fit=max\u0026auto=format\u0026n=PMZxf8SIh1Gh_FVL\u0026q=85\u0026s=d0ec35be089950ba181f4eb9fd1cefca 280w, https://mintcdn.com/ai21-demo/PMZxf8SIh1Gh_FVL/images/Clickonthecreatapikeybutton.png?w=560\u0026fit=max\u0026auto=format\u0026n=PMZxf8SIh1Gh_FVL\u0026q=85\u0026s=d10ad30f6df8098b692656f7ce33fc32 560w, https://mintcdn.com/ai21-demo/PMZxf8SIh1Gh_FVL/images/Clickonthecreatapikeybutton.png?w=840\u0026fit=max\u0026auto=format\u0026n=PMZxf8SIh1Gh_FVL\u0026q=85\u0026s=a3a47f15e001870dd767a386ffd8c158 840w, https://mintcdn.com/ai21-demo/PMZxf8SIh1Gh_FVL/images/Clickonthecreatapikeybutton.png?w=1100\u0026fit=max\u0026auto=format\u0026n=PMZxf8SIh1Gh_FVL\u0026q=85\u0026s=e3085c64df50282407cc110205d202dd 1100w, https://mintcdn.com/ai21-demo/PMZxf8SIh1Gh_FVL/images/Clickonthecreatapikeybutton.png?w=1650\u0026fit=max\u0026auto=format\u0026n=PMZxf8SIh1Gh_FVL\u0026q=85\u0026s=17f5483f6efe056a542fa05e26bd2757 1650w, https://mintcdn.com/ai21-demo/PMZxf8SIh1Gh_FVL/images/Clickonthecreatapikeybutton.png?w=2500\u0026fit=max\u0026auto=format\u0026n=PMZxf8SIh1Gh_FVL\u0026q=85\u0026s=d5bcb92ba0b911545aeef3c8bd9b1bb0 2500w`})]}),`\n`,_jsx(Heading,{level:`3`,id:`step-5-name-your-api-key`,children:`Step 5: Name Your API Key`}),`\n`,_jsxs(Expandable,{title:`Content`,children:[_jsxs(_components.p,{children:[`You may give your new key a name to help organize your workspace keys.`,_jsx(_components.br,{}),`\n`,`If you prefer not to name it, leave the field blank and click `,_jsx(_components.strong,{children:`Create key`}),`.`,_jsx(_components.br,{}),`\n`,`To cancel, click `,_jsx(_components.strong,{children:`Cancel.`})]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/ai21-demo/GgHgtGDdsicBEMfH/images/nameyourapikey.png?fit=max\u0026auto=format\u0026n=GgHgtGDdsicBEMfH\u0026q=85\u0026s=f07ed76ea5bf42a5ea0a895bf733cdea`,alt:`Nameyourapikey Pn`,\"data-og-width\":`1647`,width:`1647`,\"data-og-height\":`937`,height:`937`,\"data-path\":`images/nameyourapikey.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ai21-demo/GgHgtGDdsicBEMfH/images/nameyourapikey.png?w=280\u0026fit=max\u0026auto=format\u0026n=GgHgtGDdsicBEMfH\u0026q=85\u0026s=76c011865683299c18c9c46101a68e5f 280w, https://mintcdn.com/ai21-demo/GgHgtGDdsicBEMfH/images/nameyourapikey.png?w=560\u0026fit=max\u0026auto=format\u0026n=GgHgtGDdsicBEMfH\u0026q=85\u0026s=f05cf99a97059740f4a5b24e03007d7c 560w, https://mintcdn.com/ai21-demo/GgHgtGDdsicBEMfH/images/nameyourapikey.png?w=840\u0026fit=max\u0026auto=format\u0026n=GgHgtGDdsicBEMfH\u0026q=85\u0026s=7f5aa07ce0043207a68f3c7c16e04c14 840w, https://mintcdn.com/ai21-demo/GgHgtGDdsicBEMfH/images/nameyourapikey.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GgHgtGDdsicBEMfH\u0026q=85\u0026s=54bd261ec53fa8c8119d8ce27ac24366 1100w, https://mintcdn.com/ai21-demo/GgHgtGDdsicBEMfH/images/nameyourapikey.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GgHgtGDdsicBEMfH\u0026q=85\u0026s=b37348d3879c902a1a3f2001a2585de4 1650w, https://mintcdn.com/ai21-demo/GgHgtGDdsicBEMfH/images/nameyourapikey.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GgHgtGDdsicBEMfH\u0026q=85\u0026s=d0e36f7caba8739d548390b3bb1a745d 2500w`})]}),`\n`,_jsx(Heading,{level:`3`,id:`step-6-save-your-api-key`,children:`Step 6: Save Your API Key`}),`\n`,_jsxs(Expandable,{title:`Content`,children:[_jsxs(_components.p,{children:[`Your new API key is now visible.`,_jsx(_components.br,{}),`\n`,`Copy and save it in a secure location, `,_jsx(_components.strong,{children:`you won’t be able to view it again`}),`.`,_jsx(_components.br,{}),`\n`,`Anyone with your key can make requests on your behalf, so keep it private.`,_jsx(_components.br,{}),`\n`,`If you lose it, you’ll need to generate a new one.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/ai21-demo/4mnejJF_N2b-EtXj/images/Saveyour.png?fit=max\u0026auto=format\u0026n=4mnejJF_N2b-EtXj\u0026q=85\u0026s=d966bcafb5923673e07bc0e89c4f1a02`,alt:`Saveyour Pn`,\"data-og-width\":`1724`,width:`1724`,\"data-og-height\":`943`,height:`943`,\"data-path\":`images/Saveyour.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ai21-demo/4mnejJF_N2b-EtXj/images/Saveyour.png?w=280\u0026fit=max\u0026auto=format\u0026n=4mnejJF_N2b-EtXj\u0026q=85\u0026s=8efe44c3601030be73483b2bda1c1c82 280w, https://mintcdn.com/ai21-demo/4mnejJF_N2b-EtXj/images/Saveyour.png?w=560\u0026fit=max\u0026auto=format\u0026n=4mnejJF_N2b-EtXj\u0026q=85\u0026s=8c2b314e625f52d295e114af03b666c5 560w, https://mintcdn.com/ai21-demo/4mnejJF_N2b-EtXj/images/Saveyour.png?w=840\u0026fit=max\u0026auto=format\u0026n=4mnejJF_N2b-EtXj\u0026q=85\u0026s=79a8084dcc59a98088ad6cd8d0cdff6e 840w, https://mintcdn.com/ai21-demo/4mnejJF_N2b-EtXj/images/Saveyour.png?w=1100\u0026fit=max\u0026auto=format\u0026n=4mnejJF_N2b-EtXj\u0026q=85\u0026s=994afa8d9a35e1e1c5eb716e47d46921 1100w, https://mintcdn.com/ai21-demo/4mnejJF_N2b-EtXj/images/Saveyour.png?w=1650\u0026fit=max\u0026auto=format\u0026n=4mnejJF_N2b-EtXj\u0026q=85\u0026s=dbf243e08858aaa0d831ae9d670fef90 1650w, https://mintcdn.com/ai21-demo/4mnejJF_N2b-EtXj/images/Saveyour.png?w=2500\u0026fit=max\u0026auto=format\u0026n=4mnejJF_N2b-EtXj\u0026q=85\u0026s=dcb12e579da7a5d6ab5adfa16a72c334 2500w`})]}),`\n`,_jsx(Heading,{level:`3`,id:`step-7-manage-your-api-keys`,children:`Step 7: Manage Your API Keys`}),`\n`,_jsxs(Expandable,{title:`Content`,children:[_jsxs(_components.p,{children:[`You can view and manage all workspace API keys in the `,_jsx(_components.strong,{children:`Workspace API Keys`}),` section.`,_jsx(_components.br,{}),`\n`,`You’ll see each key’s name and the last few characters (full keys are never shown again).`,_jsx(_components.br,{}),`\n`,`From this page, you can rename or delete existing keys at any time.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/ai21-demo/S7itLojru04Ny83y/images/ManageAPIKey.png?fit=max\u0026auto=format\u0026n=S7itLojru04Ny83y\u0026q=85\u0026s=79a492eb1de4676b2142b5e19b88bd07`,alt:`Manage API Key Pn`,\"data-og-width\":`1645`,width:`1645`,\"data-og-height\":`939`,height:`939`,\"data-path\":`images/ManageAPIKey.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ai21-demo/S7itLojru04Ny83y/images/ManageAPIKey.png?w=280\u0026fit=max\u0026auto=format\u0026n=S7itLojru04Ny83y\u0026q=85\u0026s=35d3b847ab93d052a8cae74ea43dc3f6 280w, https://mintcdn.com/ai21-demo/S7itLojru04Ny83y/images/ManageAPIKey.png?w=560\u0026fit=max\u0026auto=format\u0026n=S7itLojru04Ny83y\u0026q=85\u0026s=32e1f11b471dbcecf2798866f21ee224 560w, https://mintcdn.com/ai21-demo/S7itLojru04Ny83y/images/ManageAPIKey.png?w=840\u0026fit=max\u0026auto=format\u0026n=S7itLojru04Ny83y\u0026q=85\u0026s=bae7cbb7e5e057ba5d80decb68af2bed 840w, https://mintcdn.com/ai21-demo/S7itLojru04Ny83y/images/ManageAPIKey.png?w=1100\u0026fit=max\u0026auto=format\u0026n=S7itLojru04Ny83y\u0026q=85\u0026s=294feb6370a8acbd760283ceeb2d60e9 1100w, https://mintcdn.com/ai21-demo/S7itLojru04Ny83y/images/ManageAPIKey.png?w=1650\u0026fit=max\u0026auto=format\u0026n=S7itLojru04Ny83y\u0026q=85\u0026s=a57e908c78486dde990e272b7182e31c 1650w, https://mintcdn.com/ai21-demo/S7itLojru04Ny83y/images/ManageAPIKey.png?w=2500\u0026fit=max\u0026auto=format\u0026n=S7itLojru04Ny83y\u0026q=85\u0026s=3350e5ab21e1c7373773425ac2fecc16 2500w`})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Create an API key","description":null,"href":"/docs/create-api-key","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Get an API key","slug":"get-an-api-key","depth":2,"children":[{"title":"Step 1: Sign in to AI21 Studio","slug":"step-1-sign-in-to-ai21-studio","depth":3,"children":[]},{"title":"Step 2: Open Settings","slug":"step-2-open-settings","depth":3,"children":[]},{"title":"Step 3: Open the API Keys tab","slug":"step-3-open-the-api-keys-tab","depth":3,"children":[]},{"title":"Step 4: Create a New API Key","slug":"step-4-create-a-new-api-key","depth":3,"children":[]},{"title":"Step 5: Name Your API Key","slug":"step-5-name-your-api-key","depth":3,"children":[]},{"title":"Step 6: Save Your API Key","slug":"step-6-save-your-api-key","depth":3,"children":[]},{"title":"Step 7: Manage Your API Keys","slug":"step-7-manage-your-api-keys","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"ai21-demo","siteName":"AI21 Labs","title":"Create an API key - AI21 Labs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-19T12:51:32.793Z","originalFileLocation":"docs/create-api-key.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Access full API references, guides, and model capabilities. Learn how to work with AI21\u0026#x27;s foundation models.\">\u003cmeta data-mint-head name=\"application-name\" content=\"AI21 Labs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create an API key - AI21 Labs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Access full API references, guides, and model capabilities. Learn how to work with AI21\u0026#x27;s foundation models.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AI21 Labs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ai21.com/docs/create-api-key\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ai21-demo.mintlify.app/_mintlify/api/og/v2?division=Getting+Started\u0026amp;title=Create+an+API+key\u0026amp;theme=dbfc61bcb83f296a5fe6daa7\u0026amp;signature=684323d852f41e796eb14459887ac0b9f52d9a105ebdf8880b49c9a18a5d15c8\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create an API key - AI21 Labs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Access full API references, guides, and model capabilities. Learn how to work with AI21\u0026#x27;s foundation models.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ai21-demo.mintlify.app/_mintlify/api/og/v2?division=Getting+Started\u0026amp;title=Create+an+API+key\u0026amp;theme=dbfc61bcb83f296a5fe6daa7\u0026amp;signature=684323d852f41e796eb14459887ac0b9f52d9a105ebdf8880b49c9a18a5d15c8\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ai21-demo/zc4uXZjknsciGHPW/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AI21 Labs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F098B5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ai21.com/docs/create-api-key\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/create-api-key.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ai21.com/#organization\",\"name\":\"AI21 Labs\",\"url\":\"https://docs.ai21.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ai21-demo/ae4eOvPS_ZOlDCYT/images/AI21_Logo_black.png?fit=max\u0026auto=format\u0026n=ae4eOvPS_ZOlDCYT\u0026q=85\u0026s=ff9840432b0d2e9ebcbadc46ee2b5b8f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ai21.com#website\",\"name\":\"AI21 Labs\",\"url\":\"https://docs.ai21.com\",\"publisher\":{\"@id\":\"https://docs.ai21.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ai21.com/docs/create-api-key#webpage\",\"url\":\"https://docs.ai21.com/docs/create-api-key\",\"name\":\"Create an API key\",\"dateModified\":\"2026-02-19T12:51:32.793Z\",\"isPartOf\":{\"@id\":\"https://docs.ai21.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ai21.com/docs/create-api-key#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ai21.com/docs/create-api-key#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Getting Started\",\"item\":\"https://docs.ai21.com/docs/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create an API key\",\"item\":\"https://docs.ai21.com/docs/create-api-key\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.ai21.com/docs/create-api-key#article\",\"headline\":\"Create an API key\",\"name\":\"Create an API key\",\"url\":\"https://docs.ai21.com/docs/create-api-key\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ai21.com/docs/create-api-key#webpage\"},\"dateModified\":\"2026-02-19T12:51:32.793Z\",\"publisher\":{\"@id\":\"https://docs.ai21.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ai21.com#website\"}}]}\u003c/script>","siteName":"AI21 Labs","nav":{"global":null,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/home"}]},{"tab":"Guides","groups":[{"group":"Getting Started","pages":[{"title":"Overview","description":null,"href":"/docs/overview"},{"title":"Create an API key","href":"/docs/create-api-key"},{"title":"SDK","description":"AI21 offers Python and TypeScript libraries that simplify the process of using our LLMs' API.","href":"/docs/sdk"}]},{"group":"AI21 Maestro","pages":[{"title":"Overview","href":"/docs/maestro-overview"},{"group":"Tools","pages":[{"group":"RAG Tools","pages":[{"title":"RAG Overview","href":"/docs/maestro-rag-overview"},{"title":"RAG Quick Start","href":"/docs/maestro-rag-quickstart"},{"title":"RAG Use Cases","href":"/docs/maestro-rag-use-cases"}]},{"group":"User Provided Tools","pages":[{"title":"Overview","href":"/docs/user-provided-tools-overview"},{"title":"MCP Overview","href":"/docs/user-provided-tools-mcp"},{"title":"MCP Server Setup","href":"/docs/mcp-server-setup-guide"},{"title":"HTTP tools","href":"/docs/user-provided-tools-http"}]}]},{"group":"Validated Output","pages":[{"title":"Quick Start","href":"/docs/instruction-following-module"},{"title":"Walkthrough Guide ","href":"/docs/walkthrough-guide"},{"title":"Use Cases","href":"/docs/use-cases-validated-output"}]}]},{"group":"Foundation Models","pages":[{"title":"Jamba","href":"/docs/jamba-foundation-models"},{"title":"Model Availability by Platform","href":"/docs/model-availability-across-platforms"},{"title":"Prompt Engineering for Jamba Models","href":"/docs/prompt-engineering"},{"title":"Function Calling","href":"/docs/function-calling"},{"title":"Batch API","href":"/docs/jamba-batch-api"}]},{"group":"Private AI","pages":[{"title":"vLLM","href":"/docs/vllm"},{"title":"Cloud Platform Deployment","href":"/docs/cloud-platform-deployment"},{"title":"Troubleshooting \u0026 Performance Optimization","href":"/docs/troubleshooting-performance"},{"title":"Local Inference","href":"/docs/local-inference"}]},{"group":"AI21 Studio","pages":[{"title":"File Library","href":"/docs/file-library-studio"},{"title":"Data Connectors","href":"/docs/using-data-connectors"},{"group":"Tools","pages":[{"title":"File Search","href":"/docs/file-search-studio-guide"},{"title":"Web Search","href":"/docs/web-search-studio-guide"},{"title":" MCP","href":"/docs/mcp-studio-guide"},{"title":"HTTP Tools","href":"/docs/http-studio-guide"}]}]},{"group":"Model Preparation","pages":[{"title":"Fine-tuning","href":"/docs/fine-tuning"},{"title":"Quantization","href":"/docs/quantization"},{"title":"Tokenization","href":"/docs/tokenization"}]},{"group":"Usage","pages":[{"title":"Account","href":"/docs/managing-your-account"},{"title":"Pricing","href":"/docs/usage-cost"}]},{"group":"AI Ethics \u0026 Data Transperancy","pages":[{"title":"Responsible Use","href":"/docs/responsible-use-1"},{"title":"Safety Research","href":"/docs/safety-research-1"},{"title":"Training Data","href":"/docs/training-data-1"}]},{"group":"Additional Resources","pages":[{"title":"Status","href":"/status"},{"title":"Community","url":"https://discord.com/invite/cKzg6GEAyB","href":"/community"},{"title":"Blog","url":"https://www.ai21.com/blog/","href":"/blog"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/reference/introduction"}]},{"tab":"Updates","pages":[{"title":"Updates","href":"/changelog"}]}]},"title":"Create an API key - AI21 Labs","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-D7yRe3On.js","lightbox-handle-r17bVUz3.js"]}