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.
tree
text
The text to decide about.
texts
Batch form: one result per text.
Response
Result, or { results } for a batch
ClassifyTreeResult
OR
Errors
400
Bad Request Error
502
Bad Gateway Error