POST https://api.pinference.ai/api/v1/classify runs Qwen3 Reranker 0.6B on prompts you format yourself. For each prompt it returns the model’s probability of answering “yes” over “no”, and the logit behind it. The Rerank API builds the same prompts from one query and a list of documents. Use classify to score pairs with different queries in one request, to write your own question, or to work with logits.
Prompt format
Qwen publishes this prompt for the model.{instruction}, {query} and {document} are your text:
</think>. The Rerank API uses exactly this template, with the default instruction below. This function builds the same string:
<|im_start|>assistant\n<think>\n\n</think>\n\n, gets a meaningful score. Before the suffix you can change the system message, the field labels and the instruction. A prompt without the suffix still returns a score, but that score has no defined meaning.
Classify prompts
Send one prompt as a string, or up to 1,000 as an array. This example usesformat_pair from above:
-H "X-Prime-Team-ID: your-team-id" to each request. See team billing.
Request body
The whole request body can be at most 16 MiB.
Response
Pick your own threshold for decisions. At a probability of 0.5 the model is undecided between “yes” and “no”. When two probabilities both round to 1.0, compare their logits to order them.
Usage and billing
Classification is billed on input tokens,usage.prompt_tokens, at $0.20 per million. There is no output charge.
Errors
Most errors return anerror object with message, type and code, as the Chat Completions API does. A 401, a 404, or a 503 while authentication is unavailable returns a detail message instead.
vLLM compatibility
The request and response follow vLLM’s classification API, withlogit added.