sap-ai-sdk-gen
SAP Cloud SDK for AI (Python): generative AI SDK
What it is and what it does
This is SAP's official Python SDK for accessing generative AI models hosted in SAP AI Core. It abstracts away the complexity of connecting to multiple model providers—OpenAI, Amazon, and Google—by offering a single interface, with optional LangChain integration for seamless embedding into larger AI workflows. The SDK wraps native provider SDKs and an orchestration service, so you can switch between models or providers without rewriting your application code.
The package is designed for developers building generative AI applications on SAP infrastructure. It handles authentication, request routing, and response parsing. Installation is flexible: a minimal install includes OpenAI support by default, while extras like `[all]` or `[google, amazon]` add provider-specific dependencies. Configuration and usage details are documented on help.sap.com.
Use it for:
- Build chatbots or question-answering systems that route requests to SAP-hosted generative models.
- Integrate multiple LLM providers into a single application without provider-specific code.
- Use LangChain agents and chains with SAP AI Core models as the underlying inference engine.
- Prototype generative AI features on SAP infrastructure before deploying to production.
- Orchestrate complex AI workflows that combine multiple model providers through SAP's service.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Access generative AI models from SAP AI Core through a unified Python SDK that wraps OpenAI, Amazon, and Google model providers via LangChain or direct orchestration.
Yes, if you are building on SAP AI Core infrastructure and need Python access to generative models. The SDK is actively maintained, has low install friction, and supports current Python versions. The proprietary license requires verification of terms for your use case. No known security vulnerabilities as of the fact sheet date.
Install
sap-ai-sdk-gen on PyPI
pip
pip install sap-ai-sdk-genuv
uv add sap-ai-sdk-genpoetry
poetry add sap-ai-sdk-genInstalling sap-ai-sdk-gen
Before you install
Low friction installation with a pure-Python wheel. Actively maintained with a recent release. Supports current Python versions (3.9–3.14).
License in practice
Licensed under SAP DEVELOPER LICENSE AGREEMENT (proprietary, not SPDX-identified). Verify terms directly with SAP before use in production or distribution.
Quickstart
pip install sap-ai-sdk-gen
# or with all model provider support:
pip install "sap-ai-sdk-gen[all]"
from sap_ai_sdk_gen import GenerativeAIHub
# Configure via SAP AI Core credentials and call model methods
Requires SAP AI Core credentials and configuration; see help.sap.com documentation for setup details.
Verify before relying
- Exact scope of model providers and orchestration service capabilities beyond OpenAI, Amazon, Google.
- Whether LangChain integration is automatic or requires additional configuration steps.
- Support for streaming, batch processing, or other advanced generative patterns.
- Rate limits, quota management, or cost tracking features within the SDK.
Package facts
| License | SAP DEVELOPER LICENSE AGREEMENT (unclear) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 16 — h11, langchain-community, pandas, click, langchain, setuptools, httpx, dacite, pydantic, sap-ai-sdk-core, packaging, overloading, langchain-classic, langchain-openai, openai, langcodes |
| Maintenance | actively maintained — 22 days since the last release |
| First released | |
| Downloads | 430,863/month — #6,724 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: sap_ai_sdk_gen-7.2.0-py3-none-any.whl
Keywords: SAP AI Core, SAP generative AI SDK, SAP Generative AI Hub
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
generative-ai-hub-sdkProvides Python access to generative AI models…
unclear · top 15,000 on PyPI
sap-ai-sdk-baseA Python client library for accessing SAP's AI…
unclear · top 15,000 on PyPI
sap-cloud-sdkProvides a unified Python SDK for interacting…
permissive · top 15,000 on PyPI
langchain-google-vertexaiConnects LangChain applications to Google…
permissive · top 1,000 on PyPI
ai-api-client-sdkProvides Python methods and data structures to…
unclear · top 15,000 on PyPI
hana-mlConnects Python to SAP HANA to build machine…
unclear · top 15,000 on PyPI
ai-core-sdkProvides Python methods to manage scenarios,…
unclear · top 15,000 on PyPI
oci-openaiProvides OpenAI-compatible Python clients for…
unclear · top 15,000 on PyPI
sap-ai-sdk-coreProvides Python client access to SAP AI Core…
unclear · top 15,000 on PyPI
openrouterA Python SDK for accessing 400+ AI models…
permissive · top 5,000 on PyPI