AI model configuration reference
In this topic you can find details and examples for the AI model configuration settings.
For general information, including prerequisites, see Managing AI models. For instructions on adding AI models, see Adding and configuring AI models using the web administration pages and Adding and configuring AI models using commands.
Choosing the model identifier
This value is specified under
Model identifier if you configure the model on the
AI models page of the web administration pages, or with
--model if you use the
AI model configuration commands.
The model identifier is stored separately from the endpoint.
- OpenAI:
gpt-4o - Anthropic:
claude-3-5-sonnet - Mistral:
mistral-large-latest - Gemini:
gemini-1.5-pro - Azure-hosted providers: Often the deployment name rather than the original catalog name.
- Ollama:
llama3.1,mistral, or another locally available model name.
If your provider distinguishes between a catalog model name and a deployment name, use the value expected by the endpoint that Spotfire is calling.
Specifying the API type
The API type (or provider type) for the model is specified under
API if you configure the model on the AI models
page of the administration pages, or with
--api if you use the
AI model configuration commands.
The table below lists the available provider types, as they are shown on the AI models page, as well as their corresponding command values.
| Option on the AI models page | Command-line value |
|---|---|
| Azure OpenAI |
AzureOpenAi
|
| Azure Anthropic |
AzureAnthropic
|
| Azure Mistral |
AzureMistral
|
| Anthropic |
Anthropic
|
| Gemini | Gemini
|
| Mistral | Mistral
|
| OpenAI | OpenAi
|
| Amazon Bedrock |
AwsBedrock
|
| Ollama | Ollama
|
Choosing the endpoint value
This value is specified under
Endpoint if you configure the model on the AI
models page of the administration pages, or with
--api-base if you use the
AI model configuration commands.
Consider the following when specifying the endpoint value:
- Use the provider base URL, not a full one-off request URL copied from a single HTTP call.
- By default, the client
constructs the full provider path. If no path override is configured, do not
include provider path segments such as
/v1in the endpoint value unless the provider's actual base URL itself includes that segment. - Use an
https://URL unless you are intentionally connecting to a local or internal non-TLS endpoint. - Confirm that the Spotfire Server can resolve DNS and reach the endpoint from the server host.
- If a provider uses a deployment-specific endpoint, use the base URL published for that deployment.
Examples of commonly used endpoint patterns
| Provider | Example endpoint | Notes |
|---|---|---|
| OpenAI |
https://api.openai.com/
|
Use the provider host as the endpoint base. |
| Anthropic |
https://api.anthropic.com/
|
Use the provider endpoint associated with your account. |
| Mistral |
https://api.mistral.ai/
|
Use the provider host as the endpoint base. |
| Gemini |
https://generativelanguage.googleapis.com/
|
Verify the exact base URL required by your Gemini integration. |
| Azure OpenAI | https://<resource-subdomain>.cognitiveservices.azure.com/
|
Use the Azure resource endpoint for the deployment. |
| Amazon Bedrock | https://bedrock-runtime.<region>.amazonaws.com/
|
Use the region-specific runtime endpoint. |
| Ollama | http://localhost:11434/
|
Common local Ollama endpoint. |
Authentication options
The authentication type used to call the AI provider is
specified under
Authentication method if you configure the model
on the AI models page of the administration pages, or with
--auth-type if you use the
AI model configuration commands. Depending
on the method you select, you might need to specify additional settings as
described below.
| Authentication method | Description |
|---|---|
| API key | Use this option for providers that require a secret for each request. You must also specify an API key and Authorization header mode, see below. |
| None | Use this option only for endpoints that do
not require authentication, such as some local Ollama deployments.
Note: If you switch a model to None, any stored API key and
authorization header settings are cleared.
|
API key and Authorization header mode
If you select API key as authentication method for the model, you must also specify which API key to use, and an Authorization header mode. The authorization header mode controls how the authorization header is constructed.
| Authorization header mode | Description |
|---|---|
| Default | Use the convention defined by the selected API type. |
| Authorization Bearer | Select this option to always send
Authorization: Bearer <apiKey>.
|
| Custom | Send
<auth-header>: <apiKey>. Use
this option only when your provider or gateway expects a non-standard header
name.
|
Path override
This value is specified under
Path override if you configure the model on the AI
models page of the administration pages, or with
--path-override if you use the
AI model configuration commands.
Path override is optional. When configured, clients can use this value instead of the default path when they construct gateway requests. The server stores this value for client use; it is not the primary setting used by the server when proxying requests.
Without a path override, the client constructs the full request path for the selected provider. For that reason, endpoint values should normally contain only the scheme, host, and any provider-required base prefix, not a full API path copied from an example request.
Use a path override only when your client-facing path should differ from the default routing behavior.
Example:
/custom/path
Custom headers
Some model endpoints, for example AI gateways, have the ability
to collect and aggregate information about requests. Custom headers can be used
to add contextual Spotfire metadata to the request, and that metadata can then
be captured and processed in the endpoint. On the AI models page of the
administration pages, you can add custom headers after the model is created.
You find it under
Custom headers on the
Settings tab of the details panel after the model is
created. If you use the
add-ai-model or
update-ai-model
commands, it is specified with
-Hkey.
Use custom headers when:
- A provider gateway requires tenant or workspace metadata.
- You need to forward user identity or request context to an intermediate gateway.
- Your organization uses an AI gateway that expects additional routing headers.
Supported placeholder variables in custom header values include the following:
| Variable | Description |
|---|---|
${username}
|
The domain-qualified name of the authenticated user. |
${hashedUsername}
|
SHA-256 hex digest of the username. |
${displayName}
|
The display name of the authenticated user. |
${email}
|
The email address of the authenticated user. |
${hashedEmail}
|
SHA-256 hex digest of the email address. |
${domainName}
|
The domain of the authenticated user. |
${hashedSessionId}
|
SHA-256 hex digest of the internal session identifier. |
${requestId}
|
The unique request identifier. |
${modelId}
|
The AI model GUID. |
${clientType}
|
The connected client type. |
${header:<name>}
|
The value of the client request header with the given name; resolves to an empty string if the header is absent, blocked, or there is no current request. |
| Example header name | Example header values |
|---|---|
| X-Forwarded-User |
${username}
|
| X-Forwarded-User-Hash |
${hashedUsername}
|
| X-Upstream-Request-ID |
${requestId}
|
| x-spot-ai-context | ${header:x-spot-ai-context}
|
| x-spot-ai-sub-context |
${header:x-spot-ai-sub-context}
|
| X-Tenant-ID | analytics-prod
|
Access control
You can restrict a model to specific users or groups. This can be useful, for example, when only a specific department should be allowed to use a certain provider, or when you must separate testing models from production models.
On the AI models page of the administration pages, you can configure access permissions on the User access tab of the details panel. You can also specify access rights using the add-ai-model and update-ai-model commands.
For easier management of access control for users and groups, create a new group per model (or per set of models, if they should have the same access permissions), and then add more groups or users to the model group.
- claude-sonnet-4-5 model group – This is what is configured as the allowed group on the AI model.
-
- AI Models (Production) – Organizational container.
- claude-sonnet-4-7
model group – This is what is configured as the allowed group on the AI model.
- AI Models
(Testing) – Organizational container.
- UserA
- AI Models
(Testing) – Organizational container.
Adapt model priority accordingly to reflect organizational tier or rollout stage.
Import and export
You can export and import model definitions using command-line commands. For details about the commands, see export-ai-models and import-ai-models.
Example export
config export-ai-models
--bootstrap-config="<bootstrap.xml>"
--export-file="ai-models.json"
--force
--user=""
Example import
config import-ai-models
--bootstrap-config="<bootstrap.xml>"
--import-file="ai-models.json"
--api-key-script="set-ai-model-keys.txt"
--user=""
Example of variables in the generated config-run script
BOOTSTRAP_PATH
CONFIG_TOOL_PASSWORD
USER
API_KEY_<MODEL_NAME>
After providing the variables, you can run the script to set API
keys and enable the imported models.