[{"data":1,"prerenderedAt":124},["ShallowReactive",2],{"doc-key-en-get-openai-key":3},{"id":4,"title":5,"body":6,"description":112,"extension":113,"meta":114,"navigation":119,"path":120,"seo":121,"stem":122,"__hash__":123},"pages\u002Fen\u002Fdoc\u002Fget-key\u002Fget-openai-key.md","Get an OpenAI API Key",{"type":7,"value":8,"toc":105},"minimark",[9,13,22,27,74,78,86,90],[10,11,5],"h1",{"id":12},"get-an-openai-api-key",[14,15,16,17,21],"p",{},"ChatGPT chat login is not enough—keys live on ",[18,19,20],"strong",{},"OpenAI Platform",".",[23,24,26],"h2",{"id":25},"steps","Steps",[28,29,30,41,54,61],"ol",{},[31,32,33,34,21],"li",{},"Sign in at ",[35,36,40],"a",{"href":37,"rel":38},"https:\u002F\u002Fplatform.openai.com\u002F",[39],"nofollow","platform.openai.com",[31,42,43,44,49,50,53],{},"Open ",[35,45,48],{"href":46,"rel":47},"https:\u002F\u002Fplatform.openai.com\u002Fapi-keys",[39],"API keys"," → ",[18,51,52],{},"Create new secret key"," → copy and store it (shown once).",[31,55,56,57,60],{},"Under ",[18,58,59],{},"Billing",", add a payment method and confirm quota. Wrong org\u002Fproject permissions also cause 401\u002F403.",[31,62,63,64,49,67,70,71,21],{},"WriteX → ",[18,65,66],{},"Settings → Model \u002F Provider",[18,68,69],{},"OpenAI"," → paste key → pick a model → ",[18,72,73],{},"Test & save",[23,75,77],{"id":76},"network-note","Network note",[14,79,80,81,85],{},"Some networks can’t reach OpenAI. Use a company gateway or another ",[35,82,84],{"href":83},"\u002Fdoc\u002Fget-key\u002Fget-other-key","OpenAI-compatible endpoint"," if needed.",[23,87,89],{"id":88},"related-reading","Related reading",[91,92,93,99],"ul",{},[31,94,95],{},[35,96,98],{"href":97},"\u002Fguides\u002Fconfigure-byok","Configure BYOK in WriteX",[31,100,101],{},[35,102,104],{"href":103},"\u002Fdoc\u002Fget-key","All API Key tutorials",{"title":106,"searchDepth":107,"depth":107,"links":108},"",2,[109,110,111],{"id":25,"depth":107,"text":26},{"id":76,"depth":107,"text":77},{"id":88,"depth":107,"text":89},"Create a secret key on OpenAI Platform, confirm billing, then configure WriteX.","md",{"seoTitle":115,"summary":116,"provider":117,"order":118},"Get an OpenAI API Key | WriteX Tutorials","Official GPT API—requires Platform access and billing.","openai",5,true,"\u002Fen\u002Fdoc\u002Fget-key\u002Fget-openai-key",{"title":5,"description":112},"en\u002Fdoc\u002Fget-key\u002Fget-openai-key","FR6Us88KPYwWLGTup3qlvoo4aNK4HUfO4daLz5BNFms",1785483021073]