Supported providers
CLI Reference
- Importing from a file
- Using the CLI only
orchestrate models import command.Define the model specification file
Create an API key connection
Add the model
--file(-f): File path of the spec file containing the model configuration.--app-id(-a): The app ID of akey_valueconnection containing provider configuration details. These will be merged with the values provided in theprovider_configsection of the spec.
Examples using the supported providers
The following sections contain examples and the supported schemas for each model provider.OpenAI
OpenAI
provider_config field of the model. Values from
a connection will be merged with the provider_config.Define the model specification file
Create an API key connection
Add the model
watsonx.ai
watsonx.ai
provider_config field of the model. Values from
a connection will be merged with the provider_config.Define the model specification file
Create an API key connection
Add the model
- Provide one of:
watsonx_space_id,watsonx_project_id, orwatsonx_deployment_id. - Include
watsonx_cpd_url,watsonx_cpd_username,watsonx_cpd_passwordonly for on-prem (CPD) setups. - When deploying Deploy on Demand (DoD) models, you need to explicitly provide the model configuration during registration. Set these configuration values according to the model’s requirements, since they don’t automatically transfer during inference from the watsonx Orchestrate side.
Groq
Groq
provider_config field of the model. Values from
a connection will be merged with the provider_config.Define the model specification file
Create an API key connection
Add the model
Anthropic
Anthropic
provider_config field of the model. Values from
a connection will be merged with the provider_config.Define the model specification file
Create an API key connection
Add the model
Google
provider_config field of the model. Values from
a connection will be merged with the provider_config.Define the model specification file
Create an API key connection
Add the model
Azure
Azure
provider_config field of the model. Values from
a connection will be merged with the provider_config.Define the model specification file
Create an API key connection
Add the model
Azure OpenAI
Azure OpenAI
provider_config field of the model. Values from
a connection will be merged with the provider_config.Define the model specification file
Create an API key connection
Add the model
AWS Bedrock
AWS Bedrock
provider_config field of the model. Values from
a connection will be merged with the provider_config.Define the model specification file
Create an API key connection
Add the model
- You must provide either the
api_key,aws_secret_access_key, oraws_access_key_id. - You must provide the model name in the
namefield. - When deploying Deploy on Demand (DoD) models, you need to explicitly provide the model configuration during registration. Set these configuration values according to the model’s requirements, since they don’t automatically transfer during inference from the watsonx Orchestrate side.
Mistral
Mistral
provider_config field of the model. Values from
a connection will be merged with the provider_config.Define the model specification file
Create an API key connection
Add the model
OpenRouter
OpenRouter
provider_config field of the model. Values from
a connection will be merged with the provider_config.Create an API key connection
Define the model specification file
Add the model
x.ai
x.ai
provider_config field of the model. Values from
a connection will be merged with the provider_config.Create an API key connection
Define the model specification file
Add the model
Ollama
Ollama
provider_config field of the model. Values from
a connection will be merged with the provider_config.Start ollama
ollama might run under the systemctl, so you need to stop it before you run the Ollama server:Get your IP address
Testing your connection
- Use the following curl command to test your connection, replacing
198.51.100.42with the IP address that you obtained in the previous step:
- Enter the watsonx Orchestrate Developer Edition gateway container:
- Run the curl command again from within the container shell.
Define the model specification file
ollama as an API key.You must use your current local network IP address as your URL. Ollama will not work if you use localhost or 0.0.0.0 in the model specification file.http://198.51.100.42:11434 with the IP address that you have obtained in the previous step.Add the model
List all LLMs
Run theorchestrate models list command to see all available LLMs in your active environment.
--raw (-r) flag.Removing custom LLMs
Run theorchestrate models remove command and use the --name (-n) flag to specify the LLM you want to remove.
Updating custom LLM
To update a custom LLM, first remove it, then add it again:Additional configuration options
Setting a default LLM in the UI
If you use an on-premises installation with models provisioned only through the AI gateway, you can choose which model appears as the default in the user interface. To do this, add thedefault tag under the tags section of a model with the type set to chat.
Setting a default LLM for knowledge bases
If you use an on-premises installation with models provisioned only through the AI gateway, you can also set a default model for knowledge bases. To do this, add thedefault tag under the tags section of a model with the type set to embedding.
Registering a watsonx model by using your watsonx credentials
You can also register a watsonx model that uses your watsonx credentials supplied in your.env file when you start the watsonx Orchestrate Developer Edition.
For that, your .env file must contain either:
- Your watsonx.ai credentials with the
WATSONX_APIKEYandWATSONX_SPACE_IDenvironment variables. - Or, your watsonx Orchestrate credentials with the
WO_INSTANCEandWO_API_KEYenvironment variables.
.env file with these credentials, see Installing the watsonx Orchestrate Developer Edition.
To register the watsonx model using this method, set the api_key credential value to “gateway”. You do not need to specify a space_id when you add the model. See the following example:

