Skip to navigation

Evaluate ordered classification questions against shared text evidence.

Evaluates independent Predicate, Choice and Score questions against the same text and returns answers in question order. Input may be a string or user messages containing strings or input_text parts. Parts are concatenated verbatim within a message; messages are separated by two newlines. Images, files, audio, other roles and item references are unsupported. The JSON body is limited to 8 MiB; combined input must be nonblank and at most 4 MiB. At most 4096 questions and expanded binary branches are allowed, with at most 16 KiB per expanded question. A predicate uses one branch; choices and scores use one per option or level. Unknown request fields are rejected. This endpoint uses Jini’s independent-option scoring policy: choice and score probabilities normalize conditional yes probabilities in log space, and confidence is not calibrated model confidence. Refusal detection is not implemented. No output tokens are generated.

Authentication

AuthorizationBearer
Mixlayer API key or console user session supplied as a Bearer token.

Request

This endpoint expects an object.
inputstring or list of objectsRequired

Text evidence supplied directly or as ordered user messages; images are unsupported.

modelstringRequired>=1 character

Classification model identifier; nonblank and at most 256 UTF-8 bytes.

questionslist of objectsRequired
safety_identifierstring or nullOptional

Accepted for compatibility and ignored; never used as the authenticated identity.

Response

Ordered typed answers with input token usage
answerslist of objects

One answer per question; names are echoed, or null for unnamed questions.

modelstring
usageobject

Shared-prefix input tokens plus every branch suffix; no compute_units field is returned.

Errors

401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error