Baseten Python SDK
Python SDK for Baseten. See the API documentation and usage below.
⚠️ SDK may change in incompatible ways between releases until the SDK reaches 1.0.
Install
pip install baseten
Usage
Current SDK only has barebones client. Here is usage example of the barebones underlying client:
from baseten.client import ManagementClient
with ManagementClient(api_key="my-api-key") as client:
for model in client.api.get_models().models:
print(model.name)
Or for async:
from baseten.client import AsyncManagementClient
async with AsyncManagementClient(api_key="my-api-key") as client:
for model in (await client.api.get_models()).models:
print(model.name)
Upgrading from 0.8.2 and earlier
Version 0.9.0 is a rewrite and shares no API with the earlier baseten releases.
Code written against 0.8.2 or earlier will not work. Pin baseten<0.9 to keep it.
Metadata
Release files for baseten 0.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| baseten-0.11.0.tar.gz | 287.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| baseten-0.11.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 386.3 kB
Release files / baseten-0.11.0.tar.gz
| Download URL | baseten-0.11.0.tar.gz |
|---|---|
| Size | 287.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad38641389ae0cc0274d52c4c26fc8ca8ae09799bb06ce38fad647c64eec7225
|
|
BLAKE2b-256 checksum How to use checksums |
40b317b558da9fc5cdb9da879e4fd5ce636bf9ad63a45b451c84e548755a812b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency logRelease files / baseten-0.11.0-py3-none-any.whl
| Download URL | baseten-0.11.0-py3-none-any.whl |
|---|---|
| Size | 99.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d13d8426bc10a2953c8df2788a6d8f6ea8fb8ea5fd2fe5961c2ad621ff6d95ba
|
|
BLAKE2b-256 checksum How to use checksums |
24f290f9d5cd9f417fb56bbcfbcc1ab94d3e2fb2ac63d92fca3a4ccd0510f2b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency log