Skip to content
MRI-one

Integrations

Use one service from the web app, a notebook, a terminal or 3D Slicer. Every client gets the same plan, job and record.

API …

Quickstart

Python and the CLI need a workspace token. Ask the team for one; the web app's public workspace is separate.

# pip install "https://mri-one.namankundra.com/downloads/mrione_client-1.0.0-py3-none-any.whl"
# export MRIONE_URL=https://mri-one.namankundra.com  MRIONE_TOKEN=<workspace token>
from mrione_client import Client

mr = Client.from_env()
ds = mr.create_dataset(name="Breast MRI training")
mr.add_files(ds.id, "./training-scans", csv="scans.csv")
check = mr.validate(ds.id)
plan = mr.plan(ds.id, validation_id=check.id,
               recipe="augment", target={"field_strength_t": 3.0})
preview = mr.start_job(plan.id, mode="preview")   # one slice first
mr.wait_for_job(preview.id)
job = mr.start_job(plan.id, mode="batch")
mr.wait_for_job(job.id)
mr.export(job.id, "./mri-one-dataset.zip")

Explore the API

  • GET/v1/capabilities
  • POST/v1/datasets
  • POST/v1/datasets/{id}/items
  • POST/v1/datasets/{id}/validations
  • POST/v1/datasets/{id}/plans
  • POST/v1/jobs
  • GET/v1/jobs/{job_id}
  • POST/v1/jobs/{job_id}/exports

The OpenAPI contract lists every route, schema and typed error. Reusing an Idempotency-Key with the same body returns the same response.

Runs where your data lives
The service is one FastAPI process, a worker and a folder. A lab can run it on its own machine or inside a hospital research network with its own token and storage.