Walk a label tree

Runs classify once per level of a nested label tree, on the same text, descending into the winning label each time. Returns the path, the deepest label, the compound probability and confidence (products over the levels), and one entry per level with its scores, the input it sent to the model and its inference time. Send `text` for one result, or `texts` for a batch wrapped as `{ results: [...] }`. The response carries `x-input-chars` (input characters) and `x-input-tokens` (input tokens billed for this call) headers. Each level re-sends the text, so latency grows with depth.

Authentication

AuthorizationBearer

A milliseconds API key, sk-ms-{namespace}-{entropy}. Every /v1 route requires it.

Request

This endpoint expects an object.
treestring or objectRequired
textstringOptional1-20000 characters
The text to decide about.
textslist of stringsOptional

Batch form: one result per text.

Response

Result, or { results } for a batch

ClassifyTreeResultobject
OR
object

Errors

400
Bad Request Error
502
Bad Gateway Error