[{"data":1,"prerenderedAt":73},["ShallowReactive",2],{"help-article-get-an-openai-key":3},{"data":4},{"title":5,"excerpt":6,"content":7,"help_category":8,"seo":11},"Get an OpenAI API Key","Generate an OpenAI API key, fund the account, and wire it into m18t encrypted in the Vault. One key serves every brand in the workspace.","\u003Cp>\u003Cstrong>What you&#39;ll learn\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>How to generate an API key in OpenAI&#39;s developer platform.\u003C\u002Fli>\n\u003Cli>How to wire it into m18t through the connection wizard, encrypted in the \u003Ca href=\"\u002Fhelp\u002Fthe-secret-vault\">Vault\u003C\u002Fa>.\u003C\u002Fli>\n\u003Cli>How to confirm it works.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>Why you need this\u003C\u002Fh2>\n\u003Cp>m18t uses OpenAI for AI-driven work like image generation in the \u003Ca href=\"\u002Fhelp\u002Fthe-graphics-generator\">Graphics Generator\u003C\u002Fa> and text drafting. Because m18t is \u003Ca href=\"\u002Fhelp\u002Fbyok-why-we-do-this\">BYOK\u003C\u002Fa>, it doesn&#39;t supply the tokens — you bring your own key and pay OpenAI directly, with no markup. Until a key is in place, the AI surfaces stay disabled with a tooltip.\u003C\u002Fp>\n\u003Ch2>Step 1 — Generate the key at OpenAI\u003C\u002Fh2>\n\u003Cp>The provider&#39;s dashboard changes over time, so these steps are described by intent rather than exact pixels:\u003C\u002Fp>\n\u003Col>\n\u003Cli>Sign in at \u003Ca href=\"https:\u002F\u002Fplatform.openai.com\">platform.openai.com\u003C\u002Fa>.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Fund the account.\u003C\u002Fstrong> OpenAI&#39;s API is prepaid — find the billing section and add a payment method or balance. With a zero balance, API calls fail regardless of m18t setup. While you&#39;re there, set a hard monthly spend cap; m18t does not throttle your usage for you.\u003C\u002Fli>\n\u003Cli>Open the \u003Cstrong>API keys\u003C\u002Fstrong> area and create a new secret key. Give it a recognisable name like \u003Ccode>m18t-studio\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>Copy the key the moment it appears (it usually starts with \u003Ccode>sk-\u003C\u002Fcode>). OpenAI shows the full value once — if you lose it, you generate a new one.\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Ch2>Step 2 — Add it to m18t\u003C\u002Fh2>\n\u003Cp>In m18t, you don&#39;t paste keys into scattered config boxes — you go through the connection wizard, which stores the key in the encrypted \u003Ca href=\"\u002Fhelp\u002Fthe-secret-vault\">Vault\u003C\u002Fa> and links it to a brand in one pass.\u003C\u002Fp>\n\u003Col>\n\u003Cli>Go to \u003Cstrong>Business Settings → Connections\u003C\u002Fstrong> (\u003Ccode>\u002Fstudio\u002Fbusiness\u002Fconnections\u003C\u002Fcode>).\u003C\u002Fli>\n\u003Cli>Click \u003Cstrong>Add Connection\u003C\u002Fstrong>. The wizard opens.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Pick a brand.\u003C\u002Fstrong> The connection record is filed under a brand, which is how it appears in that brand&#39;s connection list and health checks.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Pick a provider\u003C\u002Fstrong> — under AI Providers, choose \u003Cstrong>OpenAI\u003C\u002Fstrong>.\u003C\u002Fli>\n\u003Cli>On the setup step, set the \u003Cstrong>Environment\u003C\u002Fstrong> (Production\u002FDevelopment\u002FLocal), confirm the \u003Cstrong>Label\u003C\u002Fstrong>, and leave the \u003Cstrong>Base URL\u003C\u002Fstrong> at its default unless you proxy OpenAI. Read the Purpose note below before setting one.\u003C\u002Fli>\n\u003Cli>On the \u003Cstrong>Authentication\u003C\u002Fstrong> step, choose \u003Cstrong>+ Add new vault key\u003C\u002Fstrong>. The wizard suggests the name \u003Ccode>OPENAI_API_KEY\u003C\u002Fcode>; paste your \u003Ccode>sk-\u003C\u002Fcode> value. It&#39;s encrypted before it touches the database and saved as \u003Ccode>vault:OPENAI_API_KEY\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>Finish with \u003Cstrong>Create connection\u003C\u002Fstrong>.\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>\u003Cstrong>One key serves the whole workspace.\u003C\u002Fstrong> Unlike a Facebook Page or a CMS, which really are wired per brand, m18t&#39;s AI features read a single workspace-level \u003Ccode>OPENAI_API_KEY\u003C\u002Fcode> from the Vault. Whichever brand you file the connection under, every brand uses that same key, so you do not need to repeat this for your other brands.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Careful with Purpose.\u003C\u002Fstrong> Purpose filters which features can see a connection, but it does not select between keys: text and image generation both read the same \u003Ccode>OPENAI_API_KEY\u003C\u002Fcode>. Setting Purpose to text therefore hides the connection from image features without giving them another key to use. Leave it unset unless you are deliberately splitting work across providers.\u003C\u002Fp>\n\u003Ch2>Step 3 — Confirm it works\u003C\u002Fh2>\n\u003Cp>On the \u003Cstrong>Connections\u003C\u002Fstrong> tab, find the OpenAI card and run its test action.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Read the result carefully.\u003C\u002Fstrong> The test asks OpenAI to list the models your key can see, which proves the key is real and accepted. It is not proof that your account can actually generate, since listing models and generating are billed differently. If the test passes but AI features still fail, check your OpenAI balance before touching the key. The honest end-to-end check is to use one real AI feature and see it return something.\u003C\u002Fp>\n\u003Ch2>Variations\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Already stored the key?\u003C\u002Fstrong> Skip the inline add — on the Authentication step, pick the existing \u003Ccode>OPENAI_API_KEY\u003C\u002Fcode> from the list.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Separate keys for text and images?\u003C\u002Fstrong> Not supported today. Both paths read \u003Ccode>OPENAI_API_KEY\u003C\u002Fcode>, so a second key on another connection is never reached.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Multiple brands, one OpenAI account?\u003C\u002Fstrong> Nothing extra to do. The AI key is workspace-wide, so one setup covers every brand.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>FAQ\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>My key isn&#39;t working — the test fails.\u003C\u002Fstrong>\nThe two usual causes: the OpenAI account has a zero balance (top it up and set a cap), or the pasted value was truncated. Re-copy the key at OpenAI, rotate it on the \u003Ca href=\"\u002Fhelp\u002Fthe-secret-vault\">Vault\u003C\u002Fa> tab, and test again.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>The AI buttons are still greyed out.\u003C\u002Fstrong>\nThe AI gate is workspace-wide, so filing another connection under a different brand will not change it. Check that the connection exists and shows as healthy, and that its Purpose isn&#39;t restricting it to a kind of task the feature doesn&#39;t want.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Where did my raw key go? I can&#39;t see it anymore.\u003C\u002Fstrong>\nThat&#39;s by design. The \u003Ca href=\"\u002Fhelp\u002Fthe-secret-vault\">Vault\u003C\u002Fa> shows only the reference name; the value is encrypted and never displayed again.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Do I have to use OpenAI?\u003C\u002Fstrong>\nNo. m18t also supports \u003Ca href=\"\u002Fhelp\u002Fget-a-gemini-key\">Gemini\u003C\u002Fa> and \u003Ca href=\"\u002Fhelp\u002Fget-an-anthropic-key\">Anthropic\u003C\u002Fa>. Pick whichever you have an account with, or wire several.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>What&#39;s next\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Generate imagery: \u003Ca href=\"\u002Fhelp\u002Fthe-graphics-generator\">The Graphics Generator\u003C\u002Fa>.\u003C\u002Fli>\n\u003Cli>Prefer Google or Anthropic? \u003Ca href=\"\u002Fhelp\u002Fget-a-gemini-key\">Get a Gemini Key\u003C\u002Fa> · \u003Ca href=\"\u002Fhelp\u002Fget-an-anthropic-key\">Get an Anthropic Key\u003C\u002Fa>.\u003C\u002Fli>\n\u003Cli>Understand the model behind this: \u003Ca href=\"\u002Fhelp\u002Fbyok-why-we-do-this\">Why m18t uses BYOK\u003C\u002Fa> and \u003Ca href=\"\u002Fhelp\u002Fthe-secret-vault\">The Secret Vault\u003C\u002Fa>.\u003C\u002Fli>\n\u003C\u002Ful>\n",{"slug":9,"title":10},"connections-and-keys","Connections & API Keys",{"meta_title":12,"meta_description":6,"keywords":13,"canonical_url":14,"og_title":5,"og_description":15,"og_image":16,"robots":17,"json_ld":18},"Get an OpenAI API Key | m18t Help","openai api key, get openai key, sk- key, connection wizard, vault key, BYOK openai, m18t ai setup","https:\u002F\u002Fm18t.com\u002Fhelp\u002Fget-an-openai-key","Generate a key at OpenAI, fund the account, and wire it into m18t's connection wizard, encrypted in the Vault.","https:\u002F\u002Fm18t.com\u002Fog-default.png","index, follow",{"@context":19,"@graph":20},"https:\u002F\u002Fschema.org",[21,36,57],{"@type":22,"headline":5,"description":23,"articleSection":10,"inLanguage":24,"datePublished":25,"dateModified":26,"image":16,"author":27,"publisher":31,"mainEntityOfPage":34},"Article","Generate an OpenAI API key, fund the account, and wire it into m18t encrypted in the Vault. One key serves every brand.","en","2026-06-25","2026-08-02",{"@type":28,"name":29,"url":30},"Organization","m18t","https:\u002F\u002Fm18t.com",{"@type":28,"name":29,"url":30,"logo":32},{"@type":33,"url":16},"ImageObject",{"@type":35,"@id":14},"WebPage",{"@type":37,"mainEntity":38},"FAQPage",[39,45,49,53],{"@type":40,"name":41,"acceptedAnswer":42},"Question","My key isn't working — the test fails.",{"@type":43,"text":44},"Answer","The two usual causes: the OpenAI account has a zero balance (top it up and set a cap), or the pasted value was truncated. Re-copy the key at OpenAI, rotate it on the Vault tab, and test again.",{"@type":40,"name":46,"acceptedAnswer":47},"The AI buttons are still greyed out.",{"@type":43,"text":48},"The AI gate is workspace-wide, so filing another connection under a different brand will not change it. Check that the connection exists and shows as healthy, and that its Purpose isn't restricting it to a kind of task the feature doesn't want.",{"@type":40,"name":50,"acceptedAnswer":51},"Where did my raw key go? I can't see it anymore.",{"@type":43,"text":52},"That's by design. The Vault shows only the reference name; the value is encrypted and never displayed again.",{"@type":40,"name":54,"acceptedAnswer":55},"Do I have to use OpenAI?",{"@type":43,"text":56},"No. m18t also supports Gemini and Anthropic. Pick whichever you have an account with, or wire several.",{"@type":58,"itemListElement":59},"BreadcrumbList",[60,64,68,71],{"@type":61,"position":62,"name":63,"item":30},"ListItem",1,"Home",{"@type":61,"position":65,"name":66,"item":67},2,"Help","https:\u002F\u002Fm18t.com\u002Fhelp",{"@type":61,"position":69,"name":10,"item":70},3,"https:\u002F\u002Fm18t.com\u002Fhelp\u002Fcategories\u002Fconnections-and-keys",{"@type":61,"position":72,"name":5,"item":14},4,1786312168933]