Skip to Content

Set Up Tools to Connect With and Operate SAP AI Core

Use SAP AI Launchpad, Postman or python to connect with SAP AI Core.
You will learn
  • How to create a connection between SAP AI Core and your tool of choice (SAP AI Launchpad, Postman, python)
  • How to look explore the tools for SAP AI Core
dhrubpaulDhrubajyoti PaulNovember 14, 2022
Created by
helenaaaaaaaaaa
May 17, 2022
Contributors
helenaaaaaaaaaa
helenaaaaaaaaaa
maximilianone

Prerequisites

  • You have created an SAP AI Core instance.

If you want to use SAP AI Core with python, select the tab for SAP AI Core SDK or AI API client SDK.

  • Step 1

    Using your SAP Business Technology Platform (BTP), to generate keys for the SAP AI Core instance, using Provision SAP AI Core

    The following is a set of keys for example reference only. Please generate keys for your own SAP AI Core instance.

    JSON
    Copy
    {
      "clientid": "ss-2222-aaa-4444-888-8555!bbb|aicore!bbb",
      "appname": "2222-aaa-4444-888-8555!bbb|aicore!bbb",
      "identityzone": "tutorial",
      "identityzoneid": "11111-dddd-444-888-888888",
      "clientsecret": "qwertyuiop",
      "serviceurls": {
      "AI_API_URL": "https://api.ai.prod.us-east-1.aws.ml.hana.ondemand.com"
      },
      "url": "https://tutorial.authentication.us10.hana.ondemand.com"
    }
    
  • Step 2
  • Step 3
  • Step 4
  • Step 5

    [OPTION BEGIN [Postman]]

    List all the resource groups. Check that there is a resource group named default in the response.

    image
  • Step 6

    If you receive the error: RBAC: Access Denied:

    1. Click on the collection named AI Core, click the Authorization tab, and check whether a token is being used or not. It might be that you generated a token but forgot to click Use Token in the process.
    2. Click the Variables tab and check if the value for baseUrl matches the value of AI_API_URL and you have the suffix /v2 at the end.

    [OPTION END]

    Where would you find help regarding API usage of SAP AI Core?

  • Step 7

    Which modules/functions are missing from the dir function on the AI API client SDK but present on SAP AI Core SDK? (HINT: Use the screenshots from this step to find out, these are SAP AI Core specific components)

  • Step 8

    For support, look at the Troubleshooting Guide for SAP AI Core. If this does not help resolve your issue, please raise a ticket.

Back to top