--- title: Configure API credentials for OpenAI description: Configure your API credentials to use OpenAI as your LLM provider for Generative AI Controller capabilities. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/intelligent-experiences/generative-ai-controller/configure-api-credentials-for-openai.html release: australia product: Generative AI Controller classification: generative-ai-controller topic_type: task last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Configuring API credentials for generative AI capabilities, Configuring Generative AI Controller, Generative AI Controller, AI Admin Hub, Enable AI experiences] --- # Configure API credentials for OpenAI Configure your API credentials to use OpenAI as your LLM provider for Generative AI Controller capabilities. ## Before you begin To use the OpenAI and Azure OpenAI large language models \(LLMs\), you must configure your credentials to use the Generative AI Controller capabilities. Role required: admin ## About this task To use models with Azure OpenAI as your LLM provider for Generative AI Controller capabilities, you must have an active connection configured. ## Procedure 1. Navigate to **All** > **Connections & Credentials** > **Connections & Credential Aliases**. 2. Open the Generative AI provider record for OpenAI. 3. Select the **Create New Connection & Credential** related link. \[Omitted image "gai-create-new-connection.png"\] Alt text: Create New Connection & Credential related link highlighted on the screen. 4. In the API key field, enter the API key. For OpenAI, see your [OpenAI API keys](https://platform.openai.com/account/api-keys) for the credentials information. 5. Create a connection by selecting **Create**. ## Result You can now use capabilities labeled with OpenAI as your LLM provider for Generative AI Controller capabilities. \[Omitted image "gai-created-connection.png"\] Alt text: Complete connection for OpenAI. ## What to do next If you want to use generative AI capabilities through your MID Server, open the new Connection record, select the **Use MID server** check box, and save the record. Activate generative AI skills in the AI Admin Hub console for your workflow. For more information, see [AI Admin Hub](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/platform-now-assist-landing.md).