Integrate Aurora into a pipeline¶
Submit samples, follow jobs and retrieve results through HTTP or agent tools.
Use the client¶
The Python client handles uploads, polling and downloads. Start with one prediction, then use the API reference when your integration needs direct HTTP access.
Agent tools¶
An agent calls the same client through MCP tools. Install the mcp extra,
start the server over standard input and output, and point a client at it:
The server announces itself with these instructions:
Predict spatial gene expression from H&E images. Submit a prediction with
submit, follow it withget_jobuntil it ends, and write the result to a file withdownload_result.
Each tool is a plain function over the client, so an agent can do what a person can with the same key.
| Tool | What it does |
|---|---|
list_models |
List the models this deployment serves, with what each one accepts. |
submit |
Submit a prediction and return the job it created, without waiting. |
get_job |
Read one job: its state, queue position, ETA and events. |
download_result |
Write a finished job's result to path and report where it went. |
resolve_genes |
Resolve symbols and aliases to the Ensembl ids every result is keyed by. |
list_workspaces |
List the workspaces you belong to and your role in each. |
get_workspace |
Read one of your workspaces. |
list_datasets |
List a workspace's datasets. |
get_dataset |
Read one dataset of a workspace. |
list_slides |
List a dataset's slides and whether each has a prediction. |
get_slide |
Read one slide of a dataset. |
list_workspace_models |
List the models a workspace can use: those everyone can use, and its own. |
get_workspace_model |
Read one of a workspace's own models. |
How a job runs and ends¶
A job leaves the in-flight states once and does not return.
| State | Kind |
|---|---|
queued |
in flight |
validating |
in flight |
running |
in flight |
succeeded |
terminal |
failed |
terminal |
canceled |
terminal |
expired |
terminal |
A job that ends in failed carries the error code that says why.
Re-send an identical request with the same Idempotency-Key, under the same API key, for as long as the job exists, and you get the same job back. No second job is created.
A retry after a timeout is safe.
A result expires after a bounded time, so treat the file you downloaded as the copy of record. Privacy and retention says how long it is kept.
Conventions every caller needs¶
GET https://api.auroraomics.org/v1/ needs no key and returns access_request, api_version, docs, lanes, llms_txt, models, openapi, qc, retention, service. lanes is empty while no runtime is accepting work.
| Header | When | What to do with it |
|---|---|---|
X-Request-Id |
on every response | quote it when reporting a problem |
RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset |
on every response | the bucket's limit, what remains, and when it resets |
Retry-After |
on 429 and 503 |
the number of seconds to wait; it is an instruction, not a hint |
Idempotency-Key |
on every POST you send |
a retried request returns the same result instead of acting twice |
application/problem+json |
on every refusal | a body with a stable code, the param at fault and a hint written for a reader who cannot ask |
| What | Where |
|---|---|
| This site | https://docs.auroraomics.org |
| API | https://api.auroraomics.org/v1/ |
| Website | https://auroraomics.org |
| Whole site in one fetch | https://docs.auroraomics.org/llms.txt, https://docs.auroraomics.org/llms-full.txt |