---
sourceDocument: Australia Enable AI
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/intelligent-experiences

 Release :

    - australia

ft:locale :

    - pt-BR

ft:publication_title :

    - Australia Enable AI

ft:clusterId :

    - platai

bundleId :

    - platai

workflow :

    - Platform


---

# Configure API credentials for a generic large language model (LLM) connector

# Configure API credentials for a generic large language model (LLM) connector {#ariaid-title1}

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 min. de leitura

Use a generic LLM connector to connect the ServiceNow AI Platform with an external AI provider to use generative AI capabilities in custom Virtual Agent topics, Flows, or scripts, like background and business rule scripts.

## Antes de Iniciar

You must have access to the API of an external LLM in order to configure the credentials.

Role required: admin

## Por Que e Quando Desempenhar Esta Tarefa

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.

## Procedimento

1. Navigate to AllConnections \& CredentialsCredentials.
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.  
5. Select Submit to create the Credential.  
   At this step, you have the API key information for the external LLM configured.
6. Navigate to AllConnections \& CredentialsConnections \& 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.
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 (![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.
16. Select Submit.

## Resultado

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 AllConnections \& CredentialsConnections \& Credential Aliases and confirming that the connection appears in the related list.

## O que Fazer Depois

For more information on configuring a generic LLM, see [configure a generic LLM connector](https://servicenow-prod.fluidtopics.net/nFM6XhFSRJt5I21WqaomLg "Connect an external LLM to the ServiceNow AI Platform by using a generic LLM connector. With a connector, you can write your own prompts to send to the LLM and create your own generative AI capabilities.")

