Model API Names
To access an LLM with the Models API, you must know its API name.
Most endpoints for the Models API require the model’s API name in the URL path. For example, to use the OpenAI GPT-4o mini model with the /generations
endpoint, the URL looks like this:
The API name is also required in the modelName
property when making a Models API request using Apex. For example:
The API name is a string made up of substrings:
- Namespace:
sfdc_ai
- Separator:
__
- Configuration name:
Default
- Provider name:
OpenAI
(not used with most geo-aware models) - Model name:
GPT4OmniMini
(not used with BYOLLM and custom-configured models)
To find the API name for a supported model, see Supported Models.
To find the model version, such as gpt-4o-2024-05-13
, for a supported model, see Large Language Model Support in Salesforce Help.
To look up the API name of any custom or standard model configuration in Einstein Studio:
- Go to the Models page.
- Click the Generative tab.
- Click the name of a configured model.
- The API name is shown in the configured model details.