/v1/classify/zero-shot
Identical to `POST /classify/zero-shot`.
Identical to POST /classify/zero-shot.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/classify/zero-shot" \ -H "Content-Type: application/json" \ -d '{ "input": "string", "candidate_labels": [ "string" ] }'{ "object": "classification", "model": "string", "labels": [ "string" ], "scores": [ 0.1 ], "usage": { "prompt_tokens": 0, "total_tokens": 0 }}/classify/zero-shot POST
Zero-shot classification (encoder-only NLI). Runs the NLI model against the hypothesis template for each candidate label and returns softmax scores. A single input returns a single object; a list returns an object with `results` per input.
/classify/true-false POST
True/false judgement (NLI entailment of an assertion). Either pass a `question` (auto-reworded into an assertion) or give the `assertion` directly. Returns the probability that each `input` entails the assertion, plus a boolean `is_true` at the given `threshold` (default 0.5).
RS Infer