# Connect an OpenAI Key This guide walks you through creating an API key directly on OpenAI's platform and connecting it as Automix's language-model provider. It is designed for workspace owners who want Automix's AI features to run directly on OpenAI's models. _Takes About 10 minutes._ ## Before you start > **You'll need an OpenAI account** > > Sign up or sign in at OpenAI's platform to create an API key. > > [Open OpenAI API keys](https://platform.openai.com/api-keys) > **Read this guide's overview first** > > This guide assumes you already know what the LLM & Providers setting is for. > > [LLM & Provider Settings overview](/docs/platform/guides/llm-and-provider-settings) ## 1. Create an OpenAI API key Sign in to OpenAI's platform dashboard using the specific account you want to be billed for this usage. Navigate to the API keys page within the dashboard and generate a new secret key for your workspace. Copy the key immediately after creation, as OpenAI will not display the full value again for security reasons. ## 2. Set the provider and paste the key Open Settings → Providers and connect the OpenAI API key using its provider card. Then select OpenAI API key in the AI model options and enter a model ID supported by your OpenAI account. The key connection and the model choice are separate steps; this guide does not assume a default model is prefilled. Environment variables: `LLM_PROVIDER`, `LLM_API_KEY` ## 3. Optional: choose a specific OpenAI model Enter the exact model ID your OpenAI account can use. Automix requires a model ID for the BYOK option and does not guess one when the field is blank. Environment variables: `LLM_MODEL` ## After connecting - After you select the OpenAI BYOK option, supported AI actions use your connected key and selected model. Your provider bills its usage directly; Automix credits do not cover that provider bill. - Billing for that usage happens directly on your OpenAI account under OpenAI's own terms, without any additional markup from Automix. ## Next - [LLM & Provider Settings overview](/docs/platform/guides/llm-and-provider-settings) - [Connect an OpenRouter key instead](/docs/platform/guides/openrouter-key) ## Provider links - [OpenAI API keys](https://platform.openai.com/api-keys) --- Status: reviewed · reviewed by codex Author: qwen3.8-27b