Skip to content
AnswerWell geo Documentation

Research · 9 min read · Answerwell

Decision API: Probabilities, Question Types, and Models

How Perplexity’s Decisions API returns yes/no, choice, and rubric scores as probabilities—and when to use each model.

This page summarizes Perplexity documentation for the Decisions API: a hosted way to get typed answers with probabilities about text, JSON, or images, instead of generated prose. The same platform also offers the Agent API for web-grounded chat and tools, the Search API for raw ranked web results, the Orchestrator API for OpenAI- or Anthropic-shaped calls to open-weight models, and the Embeddings API. Use Decisions when your code needs a threshold, a label, or a route—not a paragraph to parse.

Decisions API vs chat models: when to call POST /v1/decisions

Section titled “Decisions API vs chat models: when to call POST /v1/decisions”

The Decisions API answers questions about your content with probabilities instead of text: yes or no, one of your options, or a level on your rubric.

The Decisions API answers questions about your content with probabilities instead of text: yes or no, one of your options, or a level on your rubric.

— Perplexity, Decisions API

Perplexity describes a decision model as a separate class from a general chat model:

A decision model is a class of model built to make fast, structured decisions that software can use directly. It reads natural-language text and images the way a multimodal language model does, but instead of writing text it returns typed answers with probabilities: yes or no, one of your options, or a level on your rubric. It does not write replies, generate code, or explain its reasoning; your code does the reasoning with the numbers it returns.

— Perplexity, Decisions API

The platform’s overview maps the choice simply: if you need a classification or a probability, not prose, use Decisions; if you need a hosted model that searches, reasons, and uses tools, use the Agent API.

You need API What you get
Probabilities for yes/no, multiple choice, or rubric levels Decisions API Calibrated probabilities; output tokens are not billed
Finished answers with citations and tools Agent API Generated text, tools, multi-provider models
Ranked web JSON without a model answer Search API Results per successful request

Question types (noul, choice, score): what you send and what you get back

Section titled “Question types (noul, choice, score): what you send and what you get back”

You send content as state (string, object, or array), attach named questions, and receive one answer per name. The Answer questions reference and the quickstart use the same shape:

Question type You ask You get back
noul A yes/no question, or a statement to check Probability of yes, from 0 to 1
choice Pick one of the options you define Probability for every option, plus the most likely one
score Rate content on an ordered rubric Probability for every level, plus an expected score

You may mix types in one request. The reference example evaluates a product review for defect (noul), sentiment (choice), and severity (score) in a single call—see Answer questions.

Use noul when a single probability is enough—for example, “does this review report a defect?” Your application compares noul to a cutoff you choose.

choice: routing and labeling with up to 255 options

Section titled “choice: routing and labeling with up to 255 options”

A choice question accepts 1 to 255 options. The API returns the top choice plus probabilities and confidence. This fits support routing (“billing”, “shipping”, “technical”) as in Decider for Mac.

score questions use an ordered list of levels (for example “Cosmetic”, “Inconvenient”, “Product unusable”). The response includes per-level probabilities, an aggregate score, and a legend mapping indices to labels—illustrated in Answer questions.

Models: pplx-decider-v1.2 vs pplx-decider-flash-v1.2

Section titled “Models: pplx-decider-v1.2 vs pplx-decider-flash-v1.2”

Both models accept the same request and response; switching is a one-line change to model.

pplx-decider-v1.2 pplx-decider-flash-v1.2
Alias pplx-decider-latest pplx-decider-flash-latest
Size 27B 4B
Input price $0.02 / 1M tokens $0.01 / 1M tokens
Output tokens Free Free
Input modalities Text and images Text and images
Context 256K tokens 256K tokens

Pricing and aliases are also on Pricing and in the Models section of the quickstart.

Perplexity’s guidance:

pplx-decider-v1.2: the larger model and the default. Start here, especially for nuanced judgments, such as grading against a detailed rubric or checking a claim against long source text, or where a wrong answer is costly.

pplx-decider-flash-v1.2: consider it for high-volume decisions with clear criteria, such as routing, labeling, or filtering, where half the input price matters.

— Perplexity, Decisions API

Set model on every request. Aliases track the newest version; if you threshold probabilities in production, revalidate thresholds when aliases move to a new version—see Model names. Legacy names pplx-decider-v1.1-27b and pplx-decider-v1-27b still route to pplx-decider-v1.2. Unknown models return 400; permitted models are listed in Perplexity model documentation (linked from API error messages in Answer questions).

Grouping multiple questions: billing and accuracy trade-offs

Section titled “Grouping multiple questions: billing and accuracy trade-offs”

pplx-decider-v1.2 groups questions. All questions in one request are answered together; state is billed once. Grouping helps when questions are facets of one decision (multi-attribute labeling, related routing steps). It can hurt when each question is an independent competitor (one question per document or tool)—then Perplexity recommends one candidate per request.

If state plus all questions exceeds the input limit, v1.2 splits into consecutive groups; each group counts state again in usage.input_tokens, takes longer, and may hit timeouts.

pplx-decider-flash-v1.2 is built for one question per request. If you send several questions, each is answered alone; state is sent and billed again per question. For three questions on a 10K-token state, docs cite roughly 30K input tokens on Flash. For three or more questions on the same state, v1.2 is usually cheaper despite the higher per-token rate—see Grouping questions in one request.

Decider for Mac notes Flash answers each question on its own and suggests sending one question per request when using the local server.

Endpoint, authentication, limits, and errors

Section titled “Endpoint, authentication, limits, and errors”

POST https://api.perplexity.ai/v1/decisions

Section titled “POST https://api.perplexity.ai/v1/decisions”

Send JSON in the body and authenticate with:

Send the key as Authorization: Bearer <PERPLEXITY_API_KEY> and the body as JSON. A key in an x-api-key header is not read, so the request returns 401.

— Perplexity, Decisions API

Full HTTP details and multi-language examples: Answer questions. SDK usage: Quickstart (client.decisions.create).

Limit Value
Questions per request 1–128, each with a non-empty name
Options per choice 1–255
Levels per score 1–10
Input tokens Under 256K for state, images, and each question
Request body 32 MiB (also cited as max body size in Answer questions)
Images per question Up to 8
Image size Up to 2,048 tiles of 32×32 px per image

state must be a string, object, or array; null returns 400. Unknown top-level fields return 400.

Default organization limit: 10 requests per second shared across both decision models, plus per-model token caps (15M TPM / 900M TPH for v1.2; 4M / 240M for Flash)—Rate limits. Successful responses can include x-ratelimit-* headers; 429 responses include Retry-After.

Latency grows with input size; large inputs can return 504. Docs recommend client timeouts that fit your state size (examples often use 30 seconds)—Timeouts.

  • Using x-api-key instead of Authorization: Bearer → 401 (Decisions API).
  • Typos in model (for example pplx-decidr-latest) → 400 (Answer questions).
  • Body larger than 32 MiB → 400 “request body exceeds the maximum allowed size” (Answer questions).
  • Many choice questions grouped incorrectly on v1.2 → worse accuracy or extra cost when groups split.

Billing is input tokens only; compute cost from usage.input_tokens in the response—Pricing.

Decider for Mac: local pplx-decider-flash-v1.2 without an API key

Section titled “Decider for Mac: local pplx-decider-flash-v1.2 without an API key”

When content must not leave the machine, Decider for Mac runs pplx-decider-flash-v1.2 locally and exposes the same JSON API at http://127.0.0.1:8080/v1/decisions (default port 8080, configurable in the menu).

Some of the content you want to classify can’t leave your Mac: customer exports, meeting notes, screenshots of internal tools, logs with tokens in them. Decider for Mac runs pplx-decider-flash-v1.2 … on your Mac and serves the Decisions API at http://127.0.0.1:8080/v1/decisions. The model reads your content on your machine. There’s no API key and no usage bill.

— Perplexity, Decider for Mac

Example local routing request (from the same doc):

curl -sS http://127.0.0.1:8080/v1/decisions \
-H 'Content-Type: application/json' \
-d '{
"model": "pplx-decider-flash-v1.2",
"state": "I was charged twice for my order last week.",
"questions": {
"route": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {"billing": null, "shipping": null, "technical": null}
}
}
}'

For production scale or the 27B model, keep the same JSON and switch the URL to https://api.perplexity.ai/v1/decisions plus Authorization—see Move the same code to the hosted API. Local weights are a q8_0 GGUF build; re-check thresholds against the hosted model before relying on them in production.

How Agent API and Search API fit the same workflows

Section titled “How Agent API and Search API fit the same workflows”

Search API (per the models page) returns ranked web results without a generated answer—useful when your model reads snippets. The quote-finder pattern uses Search plus Decisions: rank sentences with choice, gate with noul, then compare top quotes in a second request so probabilities are comparable.

The Agent API remains the path for tool use, citations, and multi-provider chat:

The Agent API is a multi-provider, interoperable API specification for building LLM applications. Access models from multiple providers with integrated real-time web search, tool configuration, reasoning control, and token budgets—all through one unified interface.

— Perplexity, Agent API

That API bills per token (plus tools) and is documented separately on Agent API Models; it is not a substitute when you only need a probability.

  1. Create or copy a Perplexity API key from the API Console (invalid keys return 401 per Answer questions).

  2. Send a minimal noul request to POST https://api.perplexity.ai/v1/decisions with Authorization: Bearer and model set to pplx-decider-latest, following Answer questions or the Quickstart.

  3. Confirm the response includes answers for each question name, usage.input_tokens, and that output token charges are zero per Pricing.

  4. If you use thresholds, run the same state and questions on both pplx-decider-latest and pplx-decider-flash-latest on a labeled sample, as recommended in When to use each.

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page does not match the official docs or your API results, email yimasynthetic@gmail.com with the page URL, the statement you are questioning, and (if possible) the request id or error body from your call.