Perplexity Decide
perplexity_decideAsk typed yes/no, multiple-choice, or scored questions about a text and get calibrated model probabilities for each, letting you set the decision threshold.
Instructions
Put typed questions about a text to the Decisions API and get a calibrated answer for each: a yes probability (noul), the most probable option with every option's probability (choice), or a probability-weighted position on an ordered rubric (score). The answers are model probabilities, not facts: you choose the threshold. Costs about $0.02 per million input tokens (output is free), a few thousandths of a cent per call, however many questions one call holds; a refused call costs nothing. Every request that reaches the API is recorded as spend (see perplexity_usage).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | pplx-decider-v1.1-27b (default) or pplx-decider-v1-27b | pplx-decider-v1.1-27b |
| state | Yes | What to judge: non-blank text, or a non-empty JSON object or list. Images are not supported | |
| project | No | Project to record the call under (default: default) | |
| questions | Yes | 1 to 32 questions by a name you choose. Each is {type, criteria, instructions}: noul (yes/no: criteria {true, false} or instructions), choice (criteria: object of 1 to 255 options) or score (criteria: list of 1 to 10 levels) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | The model that answered | |
| answers | Yes | One answer per question, by your names | |
| project | No | The project the call was recorded under | |
| cost_usd | No | Exact USD cost of the request, as a decimal string | |
| warnings | Yes | Things worth knowing about this result | |
| latency_ms | No | Measured wall time of the upstream call | |
| cost_source | No | computed, or none when the cost is unknown | none |
| input_tokens | No | Input tokens billed | |
| output_tokens | No | Output tokens (free) |