Use this file to discover all available pages before exploring further.
By the end of this guide you’ll have signed in, minted an API key, installed
the Python SDK, and submitted a prediction against a slide.
For research use only. Strand AI predictions are model outputs intended
for research and hypothesis generation. They are not validated for, and must
not be used in, clinical diagnosis, treatment selection, or patient care
decisions.
The Strand AI platform is currently invite-only. If you have access, sign
in at app.strandai.com. Otherwise email
support@strandai.com and we’ll get you
onboarded.
Go to app.strandai.com/settings/api-keys
and click Create key. Copy the value. It starts with sk-strand- and
is shown only once.Set it in your environment:
from strand import Clientclient = Client() # reads STRAND_API_KEY from env# Upload the slide, submit a prediction, and download results.upload = client.uploads.upload_file("biopsy.svs")job = client.predict.submit(upload.id, markers=["CD8", "PanCK", "Ki67"])job.wait() # blocks until terminal statusadata = job.download_results() # AnnData with one channel per marker
That’s it. adata (Python) / spe (R) holds one channel per requested
marker, aligned to the slide’s pixel grid.