ERPClimb logoERPClimb
Generative AI Hub and SAP AI Core
BTP & Integrationintermediate 5 min read

Generative AI Hub Part 2: Deployments, Prompts and Consuming Models

Preview · a free account unlocks the full lesson

Key takeaway

Get hands-on: create an orchestration deployment, call it with the SAP Cloud SDK for AI (Python, Java or JavaScript), understand prompt templating, model configuration, and how a single orchestration deployment lets you swap models without redeploying — plus restricting which models are allowed.

In this lessonShow sections

Visual overview

ORCHESTRATION DEPLOYMENTFrom deployment to a working callOne deployment, swappable models1Create deploymentIn a resource groupDeploy?Status Running?Wait before callingNo → wait, don't call yetYes2Restrict allowed modelsCompliance and cost controlRestrict3Test in playgroundIterate prompts quicklyPlaygroundCall via SDKFrom your CAP or Python appSDKTip: prototype in the AI Launchpad playground before writing integration code.

Explanation

Part 1 explained how AI Core and generative AI hub relate to each other; this lesson covers deployments, prompts and actually consuming models. A single orchestration deployment is enough to configure and consume models — there's no need to deploy each model individually.

That orchestration pipeline has some modules that are mandatory, namely templating and model configuration, and others that are optional and can be shown or hidden through the Edit function, such as grounding, data masking and content filtering.

To create a deployment, you pick a resource group, set its configuration, deploy it, and then wait for it to reach Running status — calling a deployment that's still in progress will either fail or return a stale configuration, so that wait matters.

The recommended way to call the orchestration service from custom code is the SAP Cloud SDK for AI, available for Python, Java and JavaScript, though a REST call via the AI_API_URL is also possible.

One control worth using deliberately is model restriction: a deployment can be explicitly limited to only certain LLMs, which matters for compliance and cost control, because skipping that restriction means any allowed model could later be swapped in, silently changing behavior, cost or compliance posture.

Before wiring a deployment into application code, it's faster to test prompts directly in the AI Launchpad playground.

Putting it together in practice: create an orchestration deployment in a resource group, wait for it to show Running, and then call it from the SDK with a simple prompt template — the real milestone being a response that comes back through your own code, not just through the playground.

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.