Skip to main content
POST
Classify a batch inline

Overview

Classifies a batch of rows in one request and blocks until every row is scored. For workloads too large to wait on, use the asynchronous batch flow instead. Single-row realtime prediction is POST /v1/reflex/predict.

Authorizations

Authorization
string
header
required

Morph API key, passed as Authorization: Bearer sk-.... Create keys at https://www.morphllm.com/dashboard/api-keys.

Body

application/json

Up to 300 rows, each with a correlation id, its models, and its text.

Inline batch of rows classified on the realtime engine.

requests
object[]
required

Up to 300 rows.

Example:

Response

Per-row results.

Per-row results for an inline batch.

results
object[]
required

One entry per row. A completed row carries predictions (one per model) and prefill_tokens; a validation-failed row carries error instead.

Example: