Skip to main content
POST
m-optimus prediction

Body

application/json

Payload sent to the model endpoint for a single tile.

The tile image is base64-encoded for JSON transport. Bulk RNA counts can optionally be included for multimodal models.

Attributes: image_data: Base64-encoded tile image (PNG). bulk_rna: Optional bulk RNA counts vector. slide_name: Stem of the source slide filename. x: Tile x-coordinate in the slide. y: Tile y-coordinate in the slide. width: Tile width in pixels. height: Tile height in pixels. tissue_ratio: Fraction of tissue in the tile. patch_idx: Index of this tile in the extraction plan.

height
integer
required
image_data
string
required
patch_idx
integer
required
slide_name
string
required
width
integer
required
x
integer
required
y
integer
required
bulk_rna
number[] | null
resolution
number | null
tissue_ratio
number | null

Response

Successful Response

Payload returned by the model endpoint for a single tile.

Carries the model output together with the full tile metadata from the originating request, so that downstream writers can persist everything without needing a separate schema.

Attributes: output: Model output vector for this tile. slide_name: Stem of the source slide filename. x: Tile x-coordinate in the slide. y: Tile y-coordinate in the slide. width: Tile width in pixels. height: Tile height in pixels. tissue_ratio: Fraction of tissue in the tile. patch_idx: Index of this tile in the extraction plan. resolution: Extraction resolution (MPP) if available. embedding: The tile embedding, returned alongside output only for the prediction_with_embedding mode (both come from the same forward pass). None for the single-output modes.

height
integer
required
output
number[]
required
patch_idx
integer
required
slide_name
string
required
width
integer
required
x
integer
required
y
integer
required
embedding
number[] | null
resolution
number | null
tissue_ratio
number | null