Bring your own key for third-party AI provider integration
The bring your own key (BYOK) feature enables you to use your own API credentials from supported cloud AI providers, such as Azure OpenAI, Amazon Bedrock, and Google Gemini, to run Now Assist skills and AI agents.
When BYOK is enabled, Now Assist sends model requests through your cloud AI provider account instead of ServiceNow AI Platform infrastructure. This approach lets you maintain ownership of your AI configuration, security controls, and data processing environment while continuing to use Now Assist capabilities.
ServiceNow integrated model providers
- Azure OpenAI
- Anthropic Claude on AWS, which is accessible through Amazon Bedrock
- Google Gemini
Configuring a BYOK connection with a cloud AI provider
- Create connection and credentials for the provider, such as endpoint, API key, and region.
- Enable BYOK for the provider in Now Assist Admin.
- Map ServiceNow model aliases to provider model versions. For example, map
gemini_large→ 2.5 Pro. - Optionally, override variants in each skill in Version Management.
- Validate that requests are using your AI provider account by reviewing outbound HTTPS logs.
For step-by-step instructions for each supported cloud AI provider, see Configure Bring Your Own Key (BYOK) for Now Assist and AI Agents [KB2666298] article in the Now Support Knowledge Base.
High-level BYOK configuration for Azure OpenAI
- Set up Azure OpenAI connection with your own key to use Azure OpenAI within your ServiceNow instance.
For more information, see Configure API credentials for Azure OpenAI.
- Configure your Azure OpenAI model and deployment name in Generative AI Controller so your ServiceNow instance can recognize and use it.
For more information, see Create a custom embedding model.
- Modify the prompt configuration to write your own prompts to send to the Azure OpenAI LLMs.
For more information, see Configure a generic large language model (LLM) connector.
- Switch providers to use BYOK for AI processing.
For more information, see .