SAP Cloud SDK for AI is the official Software Development Kit (SDK) for SAP AI Core, SAP Generative AI Hub, and Orchestration Service.
This repository contains three packages, formerly known as the AI API Client SDK (sap-ai-sdk-base), AI Core SDK (sap-ai-sdk-core), and Generative AI Hub SDK (sap-ai-sdk-gen).
Install the SDK with support for all model providers:
pip install "sap-ai-sdk-gen[all]"Install the default package (OpenAI support):
pip install sap-ai-sdk-genInstall selected extras:
pip install "sap-ai-sdk-gen[google,amazon]"This project uses uv for dependency management and provides a Makefile for common tasks.
Install all packages and extras:
make installmake format # auto-format code with Ruff
make format-check # check formatting without modifying files
make lint # run Pylint (errors only) across all packages
make license-check # list third-party license informationRun unit tests for all packages:
make testRun integration tests for all packages:
make test-integrationRun tests for a single package (base, core, or gen):
make test-pkg pkg=core
make test-pkg-integration pkg=coreStart the local sample-code server (requires a sample-code/.env file):
make sample-code-serverFor user-facing documentation, see the AI SDK docs.
To generate API reference docs locally:
make docsThis project is open to feature requests, suggestions, and bug reports via GitHub issues.
Contribution and feedback are welcome. For contribution details, see CONTRIBUTING.md.
If you find a potential security issue, please follow the process in Security Policy.
Please do not create public GitHub issues for security-related reports.
By participating in this project, you agree to abide by the Code of Conduct.
Copyright 2026 SAP SE or an SAP affiliate company and ai-sdk-python contributors.
See LICENSE for license information. Detailed third-party licensing information is available via the REUSE tool.