---
schema_version: "1"
id: 1d7f0fb960977845587e0d0aa3b11d887029e6c9f49ac643b15d8237865c48e5
title: Model API Names
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/genai/agentforce/guides/models/models-api/models-api-names.md
canonical_url: https://developer.salesforce.com/docs/ai/agentforce/guide/models-api-names.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 382fb841ad845d95d79972eb77911e87db78bf4397bc13f72b29d5897abd382f
products:
  - Agentforce Developer Guide
  - Agentforce and Einstein Generative AI
---
# 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:

```bash
https://api.salesforce.com/einstein/platform/v1/models/sfdc_ai__DefaultOpenAIGPT4OmniMini/generations
```

The API name is also required in the `modelName` property when making a Models API request using Apex. For example:

```apex
aiplatform.ModelsAPI.createGenerations_Request request = new aiplatform.ModelsAPI.createGenerations_Request();
request.modelName = 'sfdc_ai__DefaultOpenAIGPT4OmniMini';
```

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](https://developer.salesforce.com/docs/ai/agentforce/supported-models.md#salesforce-managed-models).

To find the model version, such as `gpt-4o-2024-11-20`, for a supported model, see [Large Language Model Support](https://help.salesforce.com/s/articleView?id=ai.generative_ai_large_language_model_support.htm) in Salesforce Help.

## Look Up the API Name

To look up the API name of any custom or standard model configuration in AI Models:

1. Go to the **Models** page.
2. Click the **Generative** tab.
3. Click the name of a configured model.
4. The API name is shown in the configured model details.

![AI Models API Name](https://developer.salesforce.com/media/model-support-studio-2b.webp '{"class": "image-lg"}')

## See Also

- [Supported Models](https://developer.salesforce.com/docs/ai/agentforce/supported-models.md)
