Get started /Install the SDK

Install the SDK

pip install, two keys from your profile, one config. Five minutes to a working session.

1. Install

Shell
pip install resontech

Python 3.11+. Your machine needs only httpx and boto3; PyTorch runs on the workers.

2. Get your keys

KeyWhereUsed for
Platform API keyProfile → Developer → Create API key. Starts with rsk_, shown onceEvery SDK call: submit, list, stop
Bucket keysProfile → Storage → Provision Bucket. Secret shown once; Rotate Key mints a new pairUploading datasets and scripts, reading outputs
Predict keyReturned by rt_submit_inference(), one per runtimeCalls to that endpoint, in the X-API-Key header

3. Connect and check

setup.py
from resontech import ResonTech, ResonTechConfig

sdk = ResonTech(ResonTechConfig(
    base_url="https://api.beta.reson.tech",
    s3_endpoint="https://s3.beta.reson.tech",
    platform_api_key="rsk_live_...",   # or set RESON_API_KEY
    s3_access_key_id="...",
    s3_secret_access_key="...",
))

print(sdk.worker_stats())               # lists workers: you're connected

There is no login(): each request carries the platform key as a bearer token. A bad, revoked or expired key raises ResonAuthError. Every config field: SDK client config.

If something’s off

SituationDo this
worker_stats() returns no workersYour setup works; no public GPUs are free right now. Retry later
Lost the platform keyRevoke it in Profile → Developer and create a new one. Revocation takes effect within seconds
Lost the bucket secretProfile → Storage → Rotate Key. The old pair stops working at once
Keys in a repo or CIOmit platform_api_key and set RESON_API_KEY
Self-hosted (Private Fabric)Override base_url and s3_endpoint

Next