Salesforce Models API

The Salesforce Models API provides Apex classes and REST endpoints that connect applications to large language models (LLMs) from Salesforce partners including Anthropic, Google, and OpenAI. It supports chat conversations, text generation, embeddings, and feedback collection, with all requests going through the Einstein Trust Layer.

API entry from apis.yml

apis.yml Raw ↑
aid: salesforce:salesforce-models-api
name: Salesforce Models API
tags:
- Agentforce
- AI
- Einstein
- GenAI
- LLM
- Machine Learning
image: https://www.salesforce.com/content/dam/sfdc-docs/www/logos/logo-salesforce.svg
humanURL: https://developer.salesforce.com/docs/ai/agentforce/guide/models-api.html
baseURL: https://{instance}.salesforce.com/services/data/v{version}/einstein
properties:
- url: https://developer.salesforce.com/docs/ai/agentforce/guide/models-api.html
  type: Documentation
- url: https://developer.salesforce.com/docs/ai/agentforce/guide/models-get-started.html
  type: GettingStarted
- url: https://developer.salesforce.com/docs/ai/agentforce/guide/access-models-api-with-rest.html
  type: APIReference
- url: https://developer.salesforce.com/docs/ai/agentforce/guide/supported-models.html
  type: Documentation
description: The Salesforce Models API provides Apex classes and REST endpoints that connect applications
  to large language models (LLMs) from Salesforce partners including Anthropic, Google, and OpenAI. It
  supports chat conversations, text generation, embeddings, and feedback collection, with all requests
  going through the Einstein Trust Layer.