Skip to main content
POST
M-Optimus spatial gene expression prediction

Body

application/json
image_data
string
required

Base64-encoded PNG tile. (The SDK also accepts a PIL Image or raw bytes.)

slide_name
string
required

Stem of the source slide filename.

x
integer
required

Tile x-coordinate in the slide.

y
integer
required

Tile y-coordinate in the slide.

width
integer
required

Tile width in pixels.

height
integer
required

Tile height in pixels.

patch_idx
integer
required

Index of this tile in the extraction plan.

bulk_rna
number[] | null

Optional bulk RNA counts vector (M-Optimus prediction only).

tissue_ratio
number | null

Fraction of tissue in the tile.

resolution
number | null

Extraction resolution in microns per pixel.

Response

Prediction result

output
number[]

Model output vector: embeddings (1536), gene predictions, or a flattened mask.

slide_name
string
x
integer
y
integer
width
integer
height
integer
tissue_ratio
number | null
patch_idx
integer
resolution
number | null