--- title: Configure API credentials for a generic large language model \(LLM\) connector description: Use a generic LLM connector to connect an external AI provider to Generative AI Controller to use generative AI capabilities in your instance. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/intelligent-experiences/generative-ai-controller/configure-api-credentials-for-a-generic-large-language-model-llm.html release: australia product: Generative AI Controller classification: generative-ai-controller topic_type: task last_updated: "2026-03-12" reading_time_minutes: 2 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 a generic large language model \(LLM\) connector Use a generic LLM connector to connect an external AI provider to Generative AI Controller to use generative AI capabilities in your instance. ## Before you begin You must have access to the API of an external LLM to configure the credentials. Role required: admin ## About this task You can connect an external LLM to the ServiceNow AI Platform by creating a connection alias to the model, create a model record that points to the alias, create a prompt record for the model, and then create a transformer record to transform the request or response from the LLM. ## Procedure 1. Navigate to **All** > **Connections & Credentials** > **Credentials**. 2. Select **API Key Credentials** 3. In the **Name** field, give your API credential a name. Including the name of the model in the API Key Credential makes it easier to identify later. 4. In the **API Key** field, enter your model's API key. \[Omitted image "gai-create-new-connection-custom-api.png"\] Alt text: API Key Credentials form filled with name and API key. 5. Select **Submit** to create the Credential. At this step, you have the API key information for the external LLM configured. 6. Navigate to **All** > **Connections & Credentials** > **Connections & Credential Aliases**. 7. Select **New**. 8. In the **Name** field, enter a name for the credential alias. You do not need to change any other field values. \[Omitted image "gai-create-new-connection-custom-alias.png"\] Alt text: Connection & Credentials Alias record with name filled in. 9. Select **Submit.** 10. After you are redirected to the List view, find and open the record you just created. 11. Select **New** in the Connections related list to create a new Connection record. 12. Enter the name of the connection in the Name field. 13. In the **Credential** field, select the Credential record you created with the model's API key. You can search the list of Credentials by typing the name of the Credential in the field. You can also select the lookup icon \(\[Omitted image "na-list-lookup-icon.png"\] Alt text: Lookup icon.\) to open a modal with the full list. 14. In the **Connection alias** field, select the alias record you created. 15. For the Connection URL, enter the endpoint URL for the model. For example, a model from Hugging Face might start with "https://api-inference.huggingface.co". You can leave the remaining fields as they are. \[Omitted image "gai-create-new-connection-custom.png"\] Alt text: HTTP\(s\) Connection record filled in with My Model credential, alias, and connection URL. 16. Select **Submit**. ## Result You have the connection and credential alias to use for connecting a generic LLM to use generative AI capabilities on the ServiceNow AI Platform. You can confirm this by navigating to **All** > **Connections & Credentials** > **Connections & Credential Aliases** and confirming that the connection appears in the related list. \[Omitted image "gai-created-connection-custom.png"\] Alt text: Finished credentials and alias for custom LLM. ## What to do next For more information on configuring a generic LLM, see [configure a generic LLM connector](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/generative-ai-controller/configure-a-generic-llm-connector.md) To build custom skills with this LLM, see [AI Skill Kit](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/now-assist-skill-kit/now-assist-skill-kit-landing.md). 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).