{"id":22333,"library":"sap-ai-sdk-core","title":"SAP AI SDK Core","description":"Core library for the SAP Cloud SDK for AI (Python), providing client and base classes for interacting with SAP AI Core services. Current version: 3.3.0, requires Python >=3.9. Released approximately quarterly.","status":"active","version":"3.3.0","language":"python","source_language":"en","source_url":"https://github.com/SAP/ai-sdk-python","tags":["sap","ai","core","cloud-sdk","ai-core"],"install":[{"cmd":"pip install sap-ai-sdk-core","lang":"bash","label":"Default install"}],"dependencies":[],"imports":[{"wrong":"from ai_core_sdk import AICoreClient","symbol":"AICoreClient","correct":"from ai_core_sdk import AICoreClient"}],"quickstart":{"code":"import os\nfrom sap_ai_sdk_core import AICoreClient, AIAPIVersion\n\nclient = AICoreClient(\n    base_url=os.environ.get(\"AI_CORE_BASE_URL\", \"\"),\n    auth_url=os.environ.get(\"AI_CORE_AUTH_URL\", \"\"),\n    client_id=os.environ.get(\"AI_CORE_CLIENT_ID\", \"\"),\n    client_secret=os.environ.get(\"AI_CORE_CLIENT_SECRET\", \"\"),\n    resource_group=os.environ.get(\"AI_CORE_RESOURCE_GROUP\", \"default\"),\n    api_version=AIAPIVersion.V4\n)\nprint(\"Client created\")","lang":"python","description":"Initializes the AICoreClient using environment variables for authentication and default API version V4."},"warnings":[{"fix":"Update instantiation: pass `base_url` (required) and remove old `ai_core_url`.","message":"In version 2.x, the client was instantiated directly with credentials. In 3.x, the constructor parameters changed: `base_url` is now required instead of `ai_core_url`.","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Use `AIAPIVersion.V4` as the default API version.","message":"The `AICoreClient` constructor parameter `api_version` with `AIAPIVersion.V3` is deprecated and will be removed in a future release.","severity":"deprecated","affected_versions":"<4.0.0"},{"fix":"Always set `resource_group` to an existing resource group from your AI Core instance (e.g., `os.environ.get(\"AICORE_RESOURCE_GROUP\", \"default\")`).","message":"The `resource_group` parameter defaults to `\"default\"` which may not be valid for all SAP AI Core instances. Not providing a valid resource group leads to 403 errors.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'3.3.0':29 '3.9':32 'ai':2,13,24,37,43 'ai-cor':42 'approxim':34 'base':18 'class':19 'client':16 'cloud':10,40 'cloud-sdk':39 'core':4,5,25,38,44 'current':27 'interact':21 'librari':6 'provid':15 'python':14,31 'quarter':35 'releas':33 'requir':30 'sap':1,9,23,36 'sdk':3,11,41 'servic':26 'version':28","created_at":"2026-04-27T17:04:36.550130+00:00","updated_at":"2026-04-27T17:04:36.550130+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'AICoreClient' from 'ai_core_sdk' (/tmp/tmpbqtvon4j/venv/lib/python3.12/site-packages/ai_core_sdk/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"3.3.0","cli_name":"","cli_version":null,"type":"library","homepage":"https://www.sap.com/","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/sap-ai-sdk-core/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}