SAP Business Technology Platform Scenario API
Access to scenarios
Operations 4
GET
/lm/scenarios/{scenarioId}/models
Get information about all models available in LLM global scenario
#
Access to scenarios
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/sap-btp:sap-btp-scenario-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Sap Btp Scenario API
version: 2.42.0
description: 'Operations tagged Scenario across 2 of this provider''s published API definitions: ai-core.yaml, sap-btp-ai-core-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.ai.{region}.ml.hana.ondemand.com/v2
description: Production endpoint for SAP AI Core
variables:
region:
enum:
- prod.eu-central-1.aws
- prodeuonly.eu-central-1.aws
- prod.us-east-1.aws
- prod.ap-northeast-1.aws
- prod-ap11.ap-southeast-1.aws
- prod-ap20.australiaeast.azure
- prod.ap-southeast-2.aws
- prod-eu20.westeurope.azure
- prod-ap30.australia-southeast1.gcp
- prod-in30.asia-south1.gcp
- prod-sa30.me-central2.gcp
- prod-us21.eastus.azure
- prod-eu30.europe-west3.gcp
- prod-us30.us-central1.gcp
- prod-br10.sa-east-1.aws
default: prod.eu-central-1.aws
security:
- Oauth2: []
tags:
- name: Scenario
description: Access to scenarios
paths:
/lm/scenarios:
parameters:
- $ref: '#/components/parameters/AiresourceGroupHeader'
get:
tags:
- Scenario
summary: Get list of scenarios
description: Retrieve a list of all available scenarios.
operationId: scenario.query
responses:
'200':
description: A list of scenarios
content:
application/json:
schema:
$ref: '#/components/schemas/AiScenarioList'
servers:
- url: https://api.ai.{region}.ml.hana.ondemand.com/v2
description: Production endpoint for SAP AI Core
variables:
region:
enum:
- prod.eu-central-1.aws
- prodeuonly.eu-central-1.aws
- prod.us-east-1.aws
- prod.ap-northeast-1.aws
- prod-ap11.ap-southeast-1.aws
- prod-ap20.australiaeast.azure
- prod.ap-southeast-2.aws
- prod-eu20.westeurope.azure
- prod-ap30.australia-southeast1.gcp
- prod-in30.asia-south1.gcp
- prod-sa30.me-central2.gcp
- prod-us21.eastus.azure
- prod-eu30.europe-west3.gcp
- prod-us30.us-central1.gcp
- prod-br10.sa-east-1.aws
default: prod.eu-central-1.aws
/lm/scenarios/{scenarioId}:
parameters:
- $ref: '#/components/parameters/AiresourceGroupHeader'
- $ref: '#/components/parameters/AiscenarioId'
get:
tags:
- Scenario
summary: Get scenario by id
description: Retrieve details for a scenario specified by scenarioId.
operationId: scenario.get
responses:
'200':
description: A scenario
content:
application/json:
schema:
$ref: '#/components/schemas/AiScenario'
'400':
$ref: '#/components/responses/AiBadRequest'
'404':
$ref: '#/components/responses/AiNotFound'
servers:
- url: https://api.ai.{region}.ml.hana.ondemand.com/v2
description: Production endpoint for SAP AI Core
variables:
region:
enum:
- prod.eu-central-1.aws
- prodeuonly.eu-central-1.aws
- prod.us-east-1.aws
- prod.ap-northeast-1.aws
- prod-ap11.ap-southeast-1.aws
- prod-ap20.australiaeast.azure
- prod.ap-southeast-2.aws
- prod-eu20.westeurope.azure
- prod-ap30.australia-southeast1.gcp
- prod-in30.asia-south1.gcp
- prod-sa30.me-central2.gcp
- prod-us21.eastus.azure
- prod-eu30.europe-west3.gcp
- prod-us30.us-central1.gcp
- prod-br10.sa-east-1.aws
default: prod.eu-central-1.aws
/lm/scenarios/{scenarioId}/versions:
parameters:
- $ref: '#/components/parameters/AiresourceGroupHeader'
- $ref: '#/components/parameters/AiscenarioId'
- $ref: '#/components/parameters/AilabelSelector'
get:
tags:
- Scenario
summary: Get list of versions for scenario
description: 'Retrieve a list of scenario versions based on the versions of executables
available within that scenario.'
operationId: scenario.query_versions
responses:
'200':
description: A list of versions for the scenario
content:
application/json:
schema:
$ref: '#/components/schemas/AiVersionList'
'400':
$ref: '#/components/responses/AiBadRequest'
servers:
- url: https://api.ai.{region}.ml.hana.ondemand.com/v2
description: Production endpoint for SAP AI Core
variables:
region:
enum:
- prod.eu-central-1.aws
- prodeuonly.eu-central-1.aws
- prod.us-east-1.aws
- prod.ap-northeast-1.aws
- prod-ap11.ap-southeast-1.aws
- prod-ap20.australiaeast.azure
- prod.ap-southeast-2.aws
- prod-eu20.westeurope.azure
- prod-ap30.australia-southeast1.gcp
- prod-in30.asia-south1.gcp
- prod-sa30.me-central2.gcp
- prod-us21.eastus.azure
- prod-eu30.europe-west3.gcp
- prod-us30.us-central1.gcp
- prod-br10.sa-east-1.aws
default: prod.eu-central-1.aws
/lm/scenarios/{scenarioId}/models:
parameters:
- $ref: '#/components/parameters/AiscenarioId'
- $ref: '#/components/parameters/AiresourceGroupHeader'
get:
tags:
- Scenario
summary: Get information about all models available in LLM global scenario
description: Retrieve information about all models available in LLM global scenario
operationId: scenario.query_models
responses:
'200':
description: The request was successful and information of all LLM models will be returned.
content:
application/json:
schema:
$ref: '#/components/schemas/AiModelList'
'400':
$ref: '#/components/responses/AiBadRequest'
servers:
- url: https://api.ai.{region}.ml.hana.ondemand.com/v2
description: Production endpoint for SAP AI Core
variables:
region:
enum:
- prod.eu-central-1.aws
- prodeuonly.eu-central-1.aws
- prod.us-east-1.aws
- prod.ap-northeast-1.aws
- prod-ap11.ap-southeast-1.aws
- prod-ap20.australiaeast.azure
- prod.ap-southeast-2.aws
- prod-eu20.westeurope.azure
- prod-ap30.australia-southeast1.gcp
- prod-in30.asia-south1.gcp
- prod-sa30.me-central2.gcp
- prod-us21.eastus.azure
- prod-eu30.europe-west3.gcp
- prod-us30.us-central1.gcp
- prod-br10.sa-east-1.aws
default: prod.eu-central-1.aws
components:
schemas:
AiVersionId:
description: Version ID
type: string
AiScenarioLabel:
type: object
required:
- key
- value
properties:
key:
$ref: '#/components/schemas/AiScenarioLabelKey'
value:
$ref: '#/components/schemas/AiLabelValue'
AiScenarioId:
type: string
pattern: ^[\w.-]{4,64}$
example: aa97b177-9383-4934-8543-0f91a7a0283a
description: ID of the scenario
AiVersionList:
type: object
properties:
count:
type: integer
description: Number of the resource instances in the list
resources:
type: array
items:
$ref: '#/components/schemas/AiVersion'
required:
- count
- resources
AiVersionDescription:
type: string
maxLength: 5000
example: This is version v1
description: Version description
AiLabelValue:
type: string
maxLength: 5000
AiModelList:
type: object
properties:
count:
type: integer
description: Number of the resource instances in the list
resources:
type: array
items:
$ref: '#/components/schemas/AiModelBaseData'
required:
- count
- resources
AiModelVersionList:
type: array
description: List of model versions that the model object has
items:
$ref: '#/components/schemas/AiModelVersion'
AiScenarioList:
type: object
properties:
count:
type: integer
description: Number of the resource instances in the list
resources:
type: array
items:
$ref: '#/components/schemas/AiScenario'
required:
- count
- resources
AiApiError:
type: object
required:
- code
- message
properties:
code:
type: string
description: Descriptive error code (not http status code)
message:
type: string
description: Plaintext error description
requestId:
type: string
description: ID of the individual request
target:
type: string
description: Invoked URL
details:
description: Optional details of the error message
type: object
AiModelVersion:
type: object
description: Model version information including whether it is latest version, its deprecation status and optional retirement date
required:
- name
- isLatest
- deprecated
properties:
name:
type: string
description: Name of model version
isLatest:
type: boolean
description: Displays whether it is the latest version offered for the model
deprecated:
type: boolean
description: Deprecation status of model
retirementDate:
type: string
description: Retirement date of model in ISO 8601 timestamp
contextLength:
type: integer
description: Context length of the model
inputTypes:
type: array
description: List of input types supported by the model
items:
type: string
capabilities:
type: array
description: List of capabilities supported by the model
items:
type: string
metadata:
type: array
description: List of metadata supported by the model
items:
type: object
additionalProperties:
type: string
cost:
type: array
description: List of costs associated with the model
items:
type: object
additionalProperties:
type: string
suggestedReplacements:
type: array
description: List of suggested replacements for the model
items:
type: string
streamingSupported:
type: boolean
description: Streaming support status of the model
orchestrationCapabilities:
type: array
description: List of model capabilities supported by orchestration service
items:
type: string
AiScenarioLabelList:
type: array
description: Arbitrary labels as meta information
items:
$ref: '#/components/schemas/AiScenarioLabel'
AiScenarioLabelKey:
type: string
example: scenarios.ai.sap.com/s4hana-version
maxLength: 256
pattern: ^(scenarios|ext)\.ai\.sap\.com\/[\w\.-]+$
AiVersion:
type: object
required:
- id
- createdAt
- modifiedAt
properties:
description:
$ref: '#/components/schemas/AiVersionDescription'
id:
$ref: '#/components/schemas/AiVersionId'
scenarioId:
$ref: '#/components/schemas/AiScenarioId'
createdAt:
type: string
description: Timestamp of resource creation
format: date-time
modifiedAt:
type: string
format: date-time
description: Timestamp of latest resource modification
AiExecutableId:
type: string
pattern: ^[\w.-]{4,64}$
example: aa97b177-9383-4934-8543-0f91a7a0283a
description: ID of the executable
AiScenario:
type: object
description: 'An ML Scenario consists of a number of executables. E.g., there can be one or several training executables, an inference (deployment) executable. An ML Scenario is versioned.
'
required:
- name
- id
- createdAt
- modifiedAt
properties:
name:
type: string
maxLength: 256
description: Name of the scenario
description:
type: string
maxLength: 5000
description: Description of the scenario
labels:
$ref: '#/components/schemas/AiScenarioLabelList'
id:
$ref: '#/components/schemas/AiScenarioId'
createdAt:
type: string
description: Timestamp of resource creation
format: date-time
modifiedAt:
type: string
format: date-time
description: Timestamp of latest resource modification
AiModelBaseData:
type: object
required:
- model
- executableId
- description
- versions
properties:
model:
type: string
description: Name of the model
executableId:
$ref: '#/components/schemas/AiExecutableId'
description:
type: string
description: Description of the model and its capabilities
versions:
$ref: '#/components/schemas/AiModelVersionList'
displayName:
type: string
description: Display name of the model
accessType:
type: string
description: Access type of the model
provider:
type: string
description: Provider of the model
allowedScenarios:
type: array
description: List of scenarioId:executableId pair where the model supported
items:
type: object
required:
- scenarioId
- executableId
properties:
scenarioId:
$ref: '#/components/schemas/AiScenarioId'
executableId:
$ref: '#/components/schemas/AiExecutableId'
responses:
AiBadRequest:
description: The specification of the resource was incorrect
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/AiApiError'
AiNotFound:
description: The specified resource was not found
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/AiApiError'
parameters:
AiresourceGroupHeader:
in: header
name: AI-Resource-Group
description: Specify a resource group id
schema:
type: string
required: true
AiscenarioId:
name: scenarioId
description: Scenario identifier
in: path
required: true
schema:
type: string
pattern: ^[\w.-]{4,64}$
example: aa97b177-9383-4934-8543-0f91a7a0283a
AilabelSelector:
in: query
name: labelSelector
description: 'filter by labels. Pass in expressions in the form of "key=value" or "key!=value" separated by commas and the result will be filtered to only those resources that have labels that match all provided expressions (i.e. logical AND)
'
schema:
type: array
minItems: 1
items:
type: string
pattern: ^ext\.ai\.sap\.com\/[\w\.-]+!?=[^ =,]+$
maxLength: 5000
example: ext.ai.sap.com/key1=value1,ext.ai.sap.com/key2!=value2
style: form
explode: false
required: false
securitySchemes:
Oauth2:
type: oauth2
description: OAuth client credentials (client ID and secret) are required. These can be requested from SAP BTP cloud cockpit.
flows:
clientCredentials:
tokenUrl: https://{subdomain_identity_zone}.authentication.{host}/oauth/token
scopes: {}
externalDocs:
description: Documentation for SAP AI Core
url: https://help.sap.com/docs/AI_CORE?version=CLOUD
x-refined-from:
- ai-core.yaml
- sap-btp-ai-core-openapi.yml
x-sap-shortText: Create and manage AI scenarios, trainings, deployments, and artifacts in SAP AI Core.