The official Python client library for Scale AI, the Data Platform for AI. Provides programmatic access to Scale's APIs for creating tasks, managing batches, datasets, and more. Current version is 2.18.4, with active development and a new v2 API client. Release cadence is roughly monthly.
Install & Compatibility
Where this runs
tested against v2.18.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 2.588s · 34MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 4.1s · import 2.424s · 34MB
32MB installed
● package 32MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
The SDK does not provide a direct 'client' import. Use 'scaleapi.ScaleClient'.
import scaleapi
client = scaleapi.ScaleClient('api_key')
Common alias is fine, but be careful not to shadow built-in.
from scaleapi import ScaleClient
client = ScaleClient('api_key')
Initialize client with API key from environment variable and list projects.
import os
import scaleapi
api_key = os.environ.get('SCALE_API_KEY', '')
client = scaleapi.ScaleClient(api_key)
# List your projects
for project in client.get_projects():
print(project.name, project.type)
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.