AI Settings
By configuring authentication for an AI provider, CAST Imaging users will be able to send snippets of source code to an AI provider, via the CAST Imaging interface. CAST Imaging does not provide any specific governance of this, therefore you must ensure that your organization’s internal policies around AI authorize this usage.
Overview
CAST Imaging integrates with AI technology to provide an automated AI driven explanation of objects materialized during an application analysis. You can find out more details about using AI services in Leverage AI services.
CAST supports the following AI providers:
- OpenAI
- Azure OpenAI
- Ollama AI - local or cloud deployments
- Google Vertex AI
- AWS Bedrock - allows you to access various LLMs, including Claude AI from Anthropic, Amazon Titan, Cohere, and others
- Google Gemini
Available in ≥ 3.6.4-funcrel
Configuring a provider
CAST Imaging supports two methods of authenticating with an AI provider:
- API key / provider configuration - the default method, described below, where you enter an API key and/or the configuration data required by your chosen provider.
- OAuth 2.0 -
Available in ≥ 3.6.4-funcrelan alternative method, for connecting to an LLM endpoint (for example, your organization’s LLM gateway) that requires OAuth 2.0 authentication. See Authenticating with OAuth 2.0.

Authenticating with API key
Choose the provider and enter the required configuration values, then click Save Configuration:

The following is required:
| Provider | Required |
|---|---|
| OpenAI |
|
| Azure OpenAI |
|
| Ollama AI |
|
| Vertex AI |
|
| AWS Bedrock |
When invoking Claude AI models through AWS Bedrock, you’re subject to model-specific invocation limits. Below are the minimum recommended starting quotas for Claude 3.5 Sonnet, suitable for most general-purpose integrations:
ThrottlingException), it’s likely due to hitting one of the above thresholds. Additionally, AWS allows for short burst rates beyond the standard quotas. However, sustained traffic above these values will trigger throttling unless higher limits are granted. |
| Google Gemini |
|
An internet connection is required when inputting the configuration details for third-party cloud providers.
Authenticating with OAuth 2.0
Support for OAuth 2.0 authentication is currently provided in beta.
Instead of an API key, you can choose to authenticate with OAuth 2.0. This method uses the OAuth 2.0 client credentials flow to obtain a bearer token, and is intended for connecting CAST Imaging to an LLM endpoint - for example, your organization’s LLM gateway - that requires OAuth 2.0 authentication.

The following is required:
OAuth 2.0 Credentials
| Field | Required | Description |
|---|---|---|
| Token Endpoint URL | ✅ | The OAuth 2.0 token URL used to obtain the bearer token, for example https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token . |
| Client ID | ✅ | The OAuth 2.0 client identifier. |
| Client Secret | ✅ | The OAuth 2.0 client secret. This value is masked on input and stored encrypted in the backend, in the same way as an API key. |
| Scopes | ❌ | One or more OAuth 2.0 scopes, entered as a comma-separated list. |
| Audience | ❌ | The intended audience of the token, where required by your authorization server. |
LLM Endpoint Configuration
| Field | Required | Description |
|---|---|---|
| LLM Endpoint URL | ✅ | The target LLM API endpoint that CAST Imaging will call with the bearer token. |
| Custom Headers | ❌ | One or more additional HTTP headers, entered as key/value pairs, that CAST Imaging will include on each request to the LLM Endpoint URL. Use this when your LLM gateway requires extra headers - for example a routing, version or subscription header such as X-Gateway-Route or api-version - in addition to the OAuth 2.0 bearer token. |
An internet connection is required when inputting the OAuth 2.0 configuration details.
Enabling AI features
When a valid API key or configuration data is defined, the various AI feature toggles will become available. Use the check boxes to enable the features you require:

| Option | Description |
|---|---|
| Explain code with AI | Enables right click contextual menu options when consulting results and working at Object level - with options providing explanations directly in the source code:![]() |
| Assistant chatbot | Enables the Ask me anything feature within the Imaging Assistant located in the lower right corner when consulting results (note that the Summarize with AI option will remain disabled - it is enabled via the AI Summary option explained below):![]() |
| AI Summary | Enables two features that can generate an AI driven explanation of items in your application, displayed in a Post-It:
|
- You can find out more details about using AI in Leverage AI services.
- Configuring an AI API key will automatically enable LLM input for the Module Assistant feature.
Ensure your source code is accessible
The AI-driven features are all based on the source code of objects in your application, therefore, CAST Imaging must be able to display source code for these feature to function correctly. The only exception to this is the Summarize with AI feature specifically on the Application scope.
- For applications that have been fully analyzed with CAST Imaging, source code will be available by default in the right panel. You do not need to do anything else.
- For applications whose results have been imported into CAST Imaging (i.e. the application has not been fully analyzed), you will need to ensure that a datasource is configured. See Managing data source configuration




